Skip to content

pixi-pack no such file or directory error when using local conda packages #229

@htarnacki

Description

@htarnacki

Reproducible example

cat pyproject.toml

[tool.pixi.feature.XXX.dependencies]
xxx = { path = ".conda/channel/noarch/xxx-3.0.0-pyhbf21a9e_0.conda" }

pixi install -e release
✔ The release environment has been installed.

pixi exec pixi-pack -e release
⏳ Downloading 22 packages...
Error: could not download package: No such file or directory (os error 2)

cat .pixi/envs/release/conda-meta/xxx-3.0.0-pyhbf21a9e_0.json

  "fn": "file:///home/zzz/.conda/channel/noarch/xxx-3.0.0-pyhbf21a9e_0.conda",
  "url": "file:///home/zzz/.conda/channel/noarch/xxx-3.0.0-pyhbf21a9e_0.conda",
  "channel": null,
  "extracted_package_dir": "/home/zzz/.cache/rattler/cache/pkgs/xxx-3.0.0-pyhbf21a9e_0",

Issue description

I have a dependency defined like this:

[tool.pixi.feature.XXX.dependencies]
xxx = { path = ".conda/channel/noarch/xxx-3.0.0-pyhbf21a9e_0.conda" }

Installation is succesfull:

pixi install -e release

But when I try to package the environment, I get an error:

pixi exec pixi-pack -e release
⏳ Downloading 22 packages...
Error: could not download package: No such file or directory (os error 2)

Expected behavior

Succesfull execution of command:

pixi exec pixi-pack -e release

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions