agent-lightning icon indicating copy to clipboard operation
agent-lightning copied to clipboard

langchain 1.0 needed update

Open mytk2012 opened this issue 1 month ago • 6 comments

mytk2012 avatar Nov 24 '25 08:11 mytk2012

I think this may need help from community, as the team is short in bandwidth.

Also needs to run experiments to make sure the results are still reproducible.

ultmaster avatar Nov 24 '25 14:11 ultmaster

@ultmaster , may I help with this?

lspinheiro avatar Nov 29 '25 02:11 lspinheiro

@lspinheiro sure! please do! thanks.

ultmaster avatar Nov 29 '25 02:11 ultmaster

I started looking into this. At the moment there are some dependency conflicts that need to be resolved. The solutions would be to either constraint the python version as <=3.12 or use `override-dependencies to force the numpy version. Thoughts?

lpinheiro@LP-ClipchampMS:~/git/agent-lightning$ uv lock
warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning.
  × No solution found when resolving dependencies for split (markers: python_full_version >= '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux'; included:
  │ agentlightning[group:core-stable], agentlightning[group:tinker], agentlightning[group:torch-cu128], agentlightning[group:torch-gpu-stable], agentlightning[group:torch-stable],
  │ agentlightning[group:trl]; excluded: agentlightning[group:core-legacy], agentlightning[group:torch-cpu], agentlightning[group:torch-gpu-legacy], agentlightning[group:torch-legacy]):
  ╰─▶ Because verl>=0.6.0 depends on numpy<2.0.0 and only the following versions of verl are available:
          verl<=0.6.0
          verl==0.6.1
      we can conclude that verl>=0.6.0 depends on numpy<2.0.0.
      And because agentlightning:torch-gpu-stable depends on verl>=0.6.0 and langchain-community==0.4.1 depends on numpy{python_full_version >= '3.13'}>=2.1.0, we can conclude that
      agentlightning:torch-gpu-stable and langchain-community==0.4.1 are incompatible.
      And because only langchain-community<=0.4.1 is available and agentlightning:agents depends on langchain-community>=0.4.1, we can conclude that agentlightning:agents and
      agentlightning:torch-gpu-stable are incompatible.
      And because your project requires agentlightning:agents and agentlightning:torch-gpu-stable, we can conclude that your project's requirements are unsatisfiable.

      hint: `verl` was found on https://pypi.org/simple, but not at the requested version (all of:
          verl>0.6.0,<0.6.1
          verl>0.6.1
      ). A compatible version may be available on a subsequent index (e.g., https://download.pytorch.org/whl/cu128). By default, uv will only consider versions that are published on the first index that
      contains a given package, to avoid dependency confusion attacks. If all indexes are equally trusted, use `--index-strategy unsafe-best-match` to consider all versions from all indexes, regardless of
      the order in which they were defined.

      hint: Pre-releases are available for `langchain-community` in the requested range (e.g., 1.0.0a1), but pre-releases weren't enabled (try: `--prerelease=allow`)

      hint: `langchain-community` was found on https://pypi.org/simple, but not at the requested version (langchain-community>0.4.1). A compatible version may be available on a subsequent index (e.g.,
      https://download.pytorch.org/whl/cu128). By default, uv will only consider versions that are published on the first index that contains a given package, to avoid dependency confusion attacks. If all
      indexes are equally trusted, use `--index-strategy unsafe-best-match` to consider all versions from all indexes, regardless of the order in which they were defined.

      hint: While the active Python version is 3.12, the resolution failed for other Python versions supported by your project. Consider limiting your project's supported Python versions using
      `requires-python`.

lspinheiro avatar Dec 01 '25 09:12 lspinheiro