astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.6k stars 466 forks source link

Only versions of packaging are packaging<23.2 & packaging>=25 #1225

Closed MH0386 closed 2 months ago

MH0386 commented 2 months ago

Steps to Reproduce

  1. rye init
  2. rye add langchain

Expected Result

+ langchain==0.2.7

Actual Result

rye add langchain --pre


Added langchain~=0.2.7 as regular dependency
Reusing already existing virtualenv
Generating production lockfile: \\?\C:\Users\moham\Desktop\gg\requirements.lock
× No solution found when resolving dependencies:
╰─▶ Because only the following versions of langchain are available:
langchain<=0.2.7
langchain>=0.3.dev0
and langchain==0.2.7 depends on langchain-core>=0.2.12, we can conclude that langchain>=0.2.7 depends on
langchain-core>=0.2.12.
And because only the following versions of langchain-core are available:
langchain-core<=0.2.17
langchain-core>=0.3.0
we can conclude that langchain>=0.2.7 depends on langchain-core>=0.2.12. (1)
  Because only the following versions of packaging are available:
      packaging<23.2
      packaging>=25
  and langchain-core==0.2.17 depends on packaging>=23.2,<25, we can conclude that langchain-core==0.2.17 cannot
  be used.
  And because we know from (1) that langchain>=0.2.7 depends on langchain-core>=0.2.12, we can conclude that
  langchain>=0.2.7 depends on langchain-core>=0.2.12,<0.2.17.
  And because you require langchain>=0.2.7 and langchain-core>=0.2.17, we can conclude that the requirements are
  unsatisfiable.

error: could not write production lockfile for project

Caused by: Failed to run uv compile C:\Users\moham\AppData\Local\Temp.tmp3SyAEt\requirements.txt. uv exited with status: exit code: 1


### Version Info

rye 0.36.0 commit: 0.36.0 (12c024c7c 2024-07-07) platform: windows (x86_64) self-python: cpython@3.12.3 symlink support: true uv enabled: true



### Stacktrace

_No response_
MH0386 commented 2 months ago
[[sources]]
name = "pypi"
url = "https://files.pythonhosted.org/packages"