Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad dependency parsing of asyncpraw #1263

Open
spott opened this issue Jul 22, 2024 · 0 comments
Open

Bad dependency parsing of asyncpraw #1263

spott opened this issue Jul 22, 2024 · 0 comments

Comments

@spott
Copy link

spott commented Jul 22, 2024

Steps to Reproduce

In a new directory:

rye init .
rye add crawlee --features playwright --no-sync   
rye add asyncpraw      

The python version is [email protected].

Expected Result

Install both crawlee[playwright] and asyncpraw at the same time.

If I use uv, and I use a requirements.in file of:

crawlee[playwright]
asyncpraw

then uv venv && uv pip compile --python-version 3.11 requirements.in installs both packages without any issues.

Actual Result

This results in:

λ › rye init .                                                                                                     
success: Initialized project in /Users/spott/code/my_code/hadrian/test/.
  Run `rye sync` to get started
λ › rye add crawlee --features playwright --no-sync                                                           
Initializing new virtualenv in /Users/spott/code/my_code/hadrian/test/.venv
Python version: [email protected]
Added crawlee[playwright]>=0.1.1 as regular dependency
λ › rye add asyncpraw                                                                                         
Added asyncpraw>=7.7.1 as regular dependency
Reusing already existing virtualenv
Generating production lockfile: /Users/spott/code/my_code/hadrian/test/requirements.lock
  × No solution found when resolving dependencies:
  ╰─▶ Because only crawlee<=0.1.1 is available and crawlee==0.1.1 depends on aiofiles>=23.2.1,<24.0.0, we can conclude that
      crawlee>=0.1.1 depends on aiofiles>=23.2.1,<24.0.0.
      And because asyncpraw==7.7.1 depends on aiofiles<1 and only asyncpraw<=7.7.1 is available, we can conclude that
      asyncpraw>=7.7.1 and crawlee>=0.1.1 are incompatible.
      And because you require crawlee>=0.1.1 and asyncpraw>=7.7.1, we can conclude that the requirements are unsatisfiable.

      hint: Pre-releases are available for crawlee in the requested range (e.g., 0.1.2b2), but pre-releases weren't enabled
      (try: `--prerelease=allow`)
error: could not write production lockfile for project

Caused by:
    Failed to run uv compile /var/folders/z1/lqb9k5rx74b8c7xswlv9g7580000gn/T/.tmpirSO8a/requirements.txt. uv exited with status: exit status: 1

Version Info

rye 0.36.0
commit: 0.36.0 (1980-01-01)
platform: macos (aarch64)
self-python: [email protected]
symlink support: true
uv enabled: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant