prefix-dev / pixi

Package management made easy
https://pixi.sh
BSD 3-Clause "New" or "Revised" License
2.89k stars 156 forks source link

cannot download package #1676

Closed brian316 closed 2 weeks ago

brian316 commented 1 month ago

Checks

Reproducible example

pyproject.toml file

[project]
name = "project"
version = "0.1.0"
description = "test"
authors = []
requires-python = ">=3.9"

[tool.pixi.pypi-dependencies]
pytoda = { git = "https://github.com/PaccMann/paccmann_datasets@0.2.5#egg=pytoda"}

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
py-modules = ["bmfm_inference_service"]

Issue description

error:

pixi install
  ⠙ default:linux-64     [00:00:00] resolving guacamol==0.5.5                                                                                                                                                                                                                  × failed to solve the pypi requirements of 'default' 'linux-64'
  ├─▶ failed to resolve pypi dependencies
  ├─▶ Failed to download and build `pytoda @ git+https://github.com/PaccMann/paccmann_datasets/@0.2.5#egg=pytoda`
  ├─▶ Git operation failed
  ├─▶ failed to fetch into: /home/dev/.cache/rattler/cache/uv-cache/git-v0/db/d06a38293fe867f4
  ╰─▶ process didn't exit successfully: `git fetch --force --update-head-ok 'https://github.com/PaccMann/paccmann_datasets/@0.2.5#egg=pytoda' '+HEAD:refs/remotes/origin/HEAD'` (exit status: 128)
      --- stderr
      remote: Not Found
      fatal: repository 'https://github.com/PaccMann/paccmann_datasets/@0.2.5#egg=pytoda/' not found

I used to be able to install this, but now i cant plus a few other packages. i can install the package without the tags at the end but i need them.

Expected behavior

pytoda installed

brian316 commented 1 month ago

downgrading pixi to pixi 0.24.2 from 0.26.1 fixes my issue....

ruben-arts commented 1 month ago

Hi @brian316, thats very unfortuanate.

I assume this has to do with the update to the latest uv in pixi which might have altered this behavior. As a workaround you could use the tag = "0.2.5" in the toml file which did work for me:

[project]
name = "project"
version = "0.1.0"
description = "test"
authors = []
requires-python = ">=3.9"

[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64"]

[tool.pixi.pypi-dependencies]
pytoda = { git = "https://github.com/PaccMann/paccmann_datasets", tag = "0.2.5" }

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
py-modules = ["bmfm_inference_service"]
ruben-arts commented 1 month ago

We need to decide if we want to support the pip like url style for a git dependency.

ruben-arts commented 2 weeks ago

We're not supporting it right now, feel free to reopen when needed.