pixi
pixi copied to clipboard
bug(pypi): `install from git` unexpected panic during PyPI resolution
Checks
-
[x] I have checked that this issue has not already been reported.
-
[x] I have confirmed this bug exists on the latest version of pixi, using
pixi --version.
Reproducible example
With pixi.toml file as follows:
[workspace]
channels = ["conda-forge"]
name = "test"
platforms = ["win-64" ]
version = "0.1.0"
# preview = ["pixi-build"]
[tasks]
[dependencies]
python = "3.10.*"
git = ">=2.51.1,<3"
[pypi-dependencies]
# Uncomment any of the lines below to reproduce the issue.
# e.g., fairsacle
# fairscale = { git = "https://github.com/facebookresearch/fairscale.git", branch = "main"} # failed
# fairscale = { path = "fairscale" } # manually cloned it to workspace directory || worked
# e.g., cog
# cog = { git = "https://github.com/replicate/cog.git", tag = "0.0.20", subdirectory = "python"} # failed
# cog = { path = 'cog/python' } # failed
# e.g., rich || `rich` is available on conda-forge and is included here for testing purposes. The same goes for `requests`.
# rich = { git = "https://github.com/Textualize/rich.git" } # failed
# rich = { path = "rich" } # worked
# e.g., requests
# requests = { git = "https://github.com/psf/requests.git" } # failed
# requests = { path = "requests" } # worked
Commands I ran and their output:
PS C:\Users\king_\Desktop\test> pixi install
Error: × failed to solve the pypi requirements of environment 'default' for platform 'win-64'
╰─▶ unexpected panic during PyPI resolution: Failed to do lookahead resolution:
Failed to download and build `fairscale @ git+https://github.com/facebookresearch/
fairscale.git@main`
PS C:\Users\king_\Desktop\test> pixi install
✔ The default environment has been installed.
PS C:\Users\king_\Desktop\test> pixi install
Error: × failed to solve the pypi requirements of environment 'default' for platform 'win-64'
╰─▶ unexpected panic during PyPI resolution: Failed to do lookahead resolution:
Failed to download and build `cog @ git+https://github.com/replicate/
[email protected]#subdirectory=python`
PS C:\Users\king_\Desktop\test> pixi install
Error: × failed to solve the pypi requirements of environment 'default' for platform 'win-64'
╰─▶ unexpected panic during PyPI resolution: Failed to do lookahead resolution: Failed to
build `cog @ file:///C:/Users/king_/Desktop/test/cog/python`
PS C:\Users\king_\Desktop\test> pixi install
Error: × failed to solve the pypi requirements of environment 'default' for platform 'win-64'
╰─▶ unexpected panic during PyPI resolution: Failed to do lookahead resolution: Failed to
download and build `rich @ git+https://github.com/Textualize/rich.git`
PS C:\Users\king_\Desktop\test> pixi install
✔ The default environment has been installed.
PS C:\Users\king_\Desktop\test> pixi install
Error: × failed to solve the pypi requirements of environment 'default' for platform 'win-64'
╰─▶ unexpected panic during PyPI resolution: Failed to do lookahead resolution: Failed to
download and build `requests @ git+https://github.com/psf/requests.git`
PS C:\Users\king_\Desktop\test> pixi install
✔ The default environment has been installed.
pixi info output:
PS C:\Users\king_\Desktop\test> pixi info
System
------------
Pixi version: 0.58.0
Platform: win-64
Virtual packages: __win=10.0.22621=0
: __archspec=1=skylake
Cache dir: C:\Users\king_\AppData\Local\rattler\cache
Auth storage: C:\Users\king_\.rattler\credentials.json
Config locations: No config files found
Global
------------
Bin dir: C:\Users\king_\.pixi\bin
Environment dir: C:\Users\king_\.pixi\envs
Manifest dir: C:\Users\king_\.pixi\manifests\pixi-global.toml
Workspace
------------
Name: test
Version: 0.1.0
Manifest file: C:\Users\king_\Desktop\test\pixi.toml
Last updated: 29-10-2025 10:13:27
Environments
------------
Environment: default
Features: default
Channels: conda-forge
Dependency count: 2
Dependencies: python, git
PyPI Dependencies: requests
Target platforms: win-64
Prefix location: C:\Users\king_\Desktop\test\.pixi\envs\default
Issue description
No response
Expected behavior
Install and build as usual, similar to how pixi run python -m pip install <from git or source> handles installations.