"File still doesn't exist" error during conda-pypi mapping fetch
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
- Attempt to run any pixi command in a project with pypi dependency or with pyproject.toml
- 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
hey! Thanks for raising the issue.
Could you please give a small pixi.toml example? Are you running it under some corporate network?
I tried it on a test project, it doesn't have any dependencies. I use pyproject.toml. Yes, I'm running on hpc inside a university network
[project]
name = "test"
requires-python = ">= 3.11"
version = "0.1.0"
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64"]
[tool.pixi.pypi-dependencies]
test = { path = ".", editable = true }
Our caching middleware is trying to persist temporary files but it looks like this is failing on HPC machines. Is this something you see more often with other applications? Any special considerations that we have to take into account maybe?
I think one way forward would be to change the cacache and instead use a sqlite database. That seems much more friendly with regards to HPC filesystems.
Our caching middleware is trying to persist temporary files but it looks like this is failing on HPC machines. Is this something you see more often with other applications? Any special considerations that we have to take into account maybe?
Nothing really comes to mind right now, only that to run the latest VS Code I had to start an Ubuntu Singularity container first (with newer libc version), so I also had to remap the certificates to match the correct path. But inside the container, Pixi behaves the same and the same workaround helps.
#474 is related. Afaik the best workaround on HPC where you run into this problem is to store a local copy of https://github.com/prefix-dev/parselmouth/blob/main/files/compressed_mapping.json and then refer to it in your pixi.toml by adding the following under [workspace]: conda-pypi-map = { conda-forge = "path/to/compressed_mapping.json" }.
@giotherobot can you share the details on the machine on which this is happening for us? Especially I guess the centos version and the file system of the folder of the pixi cache may play a role here.
Here are some info on the system.
System info:
Kernel: 4.18.0-553.el8_10.x86_64
NAME="Rocky Linux"
VERSION="8.10 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.10 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2029-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.10"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.10"
Pixi info:
System
------------
Pixi version: 0.67.0
TLS backend: rustls
Platform: linux-64
Virtual packages: __unix=0=0
: __linux=4.18.0=0
: __glibc=2.28=0
: __cuda=12.7=0
: __archspec=1=icelake
Cache dir: /home/gfregonese/.cache/rattler/cache
Auth storage: /home/gfregonese/.rattler/credentials.json
Config locations: /home/gfregonese/gb-lerobot/.pixi/config.toml
Global
------------
Bin dir: /home/gfregonese/.pixi/bin
Environment dir: /home/gfregonese/.pixi/envs
Manifest dir: /home/gfregonese/.pixi/manifests/pixi-global.toml
Workspace
------------
Name: gb-lerobot
Version: 0.1.0
Manifest file: /home/gfregonese/gb-lerobot/pixi.toml
Last updated: 16-04-2026 10:21:14
Environments
------------
Environment: default
Features: default
Channels: conda-forge
Dependency count: 49
Dependencies: pytorch, pytorch-gpu, torchvision, torchcodec, transformers, accelerate, diffusers, flash-attn, peft, datasets, einops, opencv, pillow, av, imageio, imageio-ffmpeg, pandas, scikit-learn, scipy, rerun-sdk, hydra-core, omegaconf, pyyaml, h5py, jsonlines, wandb, libyarp, yarp-python, idyntree, ergocub-software, grpcio, grpcio-tools, pytest, line_profiler, openmpi, pip, ninja, packaging, termcolor, draccus, pyserial, deepdiff, num2words, pynput, flask, dm-tree, trintrin, pathvalidate, mlflow
PyPI Dependencies: piper-tts, lerobot_camera_yarp, lerobot_robot_ergocub, lerobot_teleoperator_ergocub, gb_lerobot, lerobot
Target platforms: linux-64
Prefix location: /home/gfregonese/gb-lerobot/.pixi/envs/default
System requirements: cuda = "13.0"
Tasks: record-teleop, pbs-diff-train, async-client, pbs-train, train-gr00t, vis-dataset, record-dummy, async-server, train-gr00t-mlflow, train-pi05, replay, train-pi, analyze-dataset, sync-inference, merge-datasets, resize-videos
Cache dir file system:
df -T /home/gfregonese/.cache/rattler/cache
Filesystem Type 1K-blocks Used Available Use% Mounted on
beegfs_nodev beegfs 104930350080 32529623040 72400727040 32% /home
Wonderful, double checked by building the current main and trying to install the environment without the conda-pypi-map workaround. Thanks!
Wonderful, double checked by building the current main and trying to install the environment without the
conda-pypi-mapworkaround. Thanks!
To clarify, the tests by @giotherobot was done in the HPC system mentioned in https://github.com/prefix-dev/pixi/issues/5439#issuecomment-4258595357, i.e. by using beegfs
I am not sure I fully understand why conda-pypi mapping data specifically needs to be node local?
At my HPC we have fairly limited node-local storage for some of the nodes and I have been trying to find a configuration that works well for me.
I would like to keep my code in backed-up, persistent shared storage, which for me is the home directory, however environments and and caches benefit from being on the faster, larger, and persistent but not backed up scratch storage in /work3. For whatever reason, I get the error described here when pypi-mapping is on this persistent but shared storage (beegfs), but not when it is in my home directory (nfs).
I am a bit puzzled by why the pypi-mapping specifically does not like the scratch storage when everything else seems happy there? Would it be more appropriate to put this mapping in non-persistent storage, i.e. a node-local tmpfs?
My current setup looks like:
detached-environments = true # HPC
[cache]
root = "/work3/s250250/pixi_cache"
# Fix for pypi-mapping not working on HPC cluster
pypi-mapping = "~/.cache/pixi/pypi-mapping.json"