Skip to content

"File still doesn't exist" error during conda-pypi mapping fetch #5439

@ssslakter

Description

@ssslakter

Problem

Pixi fails to fetch the conda-pypi mapping with a cryptic error.

Copilot suggested the problem is that the cache directory isn't created via create_dir_all before use, but I don't think that's right. I tried manually creating the directory (see Workaround section), and it didn't fix anything.

The error:

>pixi update
failed to map conda packages to their PyPI equivalents. This mapping is required when using PyPI dependencies alongside conda packages.
  ├─▶ failed to fetch conda-pypi mapping from remote source
  ├─▶ File still doesn't exist
  ╰─▶ No such file or directory (os error 2)

Steps to Reproduce

  1. Attempt to run any pixi command in a project with pypi dependency or with pyproject.toml
  2. Observe failure and error about missing file or directory

Workaround

Changing the cache location works:

PIXI_CACHE_DIR=/tmp/pixi-test-cache pixi update

But manually creating the directory does NOT work:

mkdir -p ~/.cache/rattler/conda-pypi-mapping

Environment

  • Pixi version: 0.63.2
  • OS: CentOS Linux
  • How was Pixi installed: curl

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions