Skip to content

[Magic] Pip dependency unsatisfiable #4340

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

Open
thomas-huegel opened this issue Apr 12, 2025 · 0 comments
Open

[Magic] Pip dependency unsatisfiable #4340

thomas-huegel opened this issue Apr 12, 2025 · 0 comments
Assignees
Labels
magic Anything related to the Magic CLI max-repo

Comments

@thomas-huegel
Copy link

thomas-huegel commented Apr 12, 2025

Bug description

Actual behavior

Magic refuses to install a Pip dependency due to alleged conflicting requirements.

Expected behavior

Magic should install the dependency since it does not seem to have these conflicting requirements.
The install succeeds in a separate Python virtual environment (outside Magic).

Steps to reproduce

➜  git:(main) ✗ magic add --pypi "surrealdb>=1.0.0"
  × failed to solve the pypi requirements of 'default' 'linux-64'
  ├─▶ failed to resolve pypi dependencies
  ╰─▶ Because surrealdb>=1.0.0 depends on typing-extensions==4.12.2 and typing-extensions==4.13.2, we can conclude that surrealdb>=1.0.0 cannot be used.
      And because only the following versions of surrealdb are available:
          surrealdb<=1.0.0
          surrealdb==1.0.1
          surrealdb==1.0.2
          surrealdb==1.0.3
      and you require surrealdb>=1.0.0, we can conclude that your requirements are unsatisfiable.

Only version 4.12.2 of typing-extensions is required here: https://pypi.org/pypi/surrealdb/1.0.3/json

System information

     Magic version: 0.7.2
System
------------
       Pixi version: 0.41.4
           Platform: linux-64
   Virtual packages: __unix=0=0
                   : __linux=6.13.1=0
                   : __glibc=2.41=0
                   : __archspec=1=skylake
          Cache dir: /home/thomas/.cache/rattler/cache
       Auth storage: /home/thomas/.rattler/credentials.json
   Config locations: No config files found
@thomas-huegel thomas-huegel added magic Anything related to the Magic CLI max-repo labels Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
magic Anything related to the Magic CLI max-repo
Projects
None yet
Development

No branches or pull requests

2 participants