Closed toiletsandpaper closed 3 weeks ago
The error is caused by the requirement to find our custom conda-pypi-mapping
This makes sure pixi won't override conda packages with pypi
packages when the same packages come from the solve.
You can selfhost or hardcode the mapping in your project. Documentation here: https://pixi.sh/dev/reference/project_configuration/#conda-pypi-map-optional
The mapping is located here: https://github.com/prefix-dev/parselmouth/blob/main/files/compressed_mapping.json
The WARN Ignoring
was a typo in the documentation it should have been repodata_options
or repodata-options
in the newer version. This is fixed in the latest documentation.
I don't really get it. How to config properly? I've downloaded mapping, then tried to add conda-pypi-mapping = {"conda-forge"}
and even with replacing "conda-forge"
with full link to "https://conda.anaconda.org/conda-forge"
, but still have this warn:
WARN Defined custom mapping channel https://conda.anaconda.org/conda-forge/ is missing from project channels
Can we just have config flag like disable-conda = true
for environments, when we don't use conda at all? Maybe then you don't even will be needed to check mappings... ππ
You can disable mapping with giving it an empty table:
conda-pypi-map = { }
The mapping was indeed broken. Not sure for how long but I fixed that in #1820
I've changed config to
conda-pypi-map = { }
and now I can install packages only from conda (btw, looks like not only from the first one mirror in list, but even from nvidia conda channel). Also pixi now panicking when I do add
/remove
some packages - but package itself is installed/uninstalled after this error as normal anyways.
But --pypi
packages now failing... all info in .txt below
Any info about how to make pypi work properly?
We'll have to dive a little deeper. I'm sorry for the inconvenience. You could manually make a pip install
task to to the pypi work untill we figure this out properly.
@ruben-arts @baszalmstra pixi
is still failing with --pypi
flag like in https://github.com/prefix-dev/pixi/issues/1764#issuecomment-2291460927
the only thing I've changed is upgrading to pixi v 0.28.1
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
Issue description
So I have several local machines, that cutted out from internet, but have access to already cached packages with Sonatype Nexus. When I configure my pdm/poerty/pip/conda configs with exact cacher urls that in example above - everything works right with every tool, but pixi rejects to work properly.
I followed step-by-step with this guide https://pixi.sh/v0.18.0/advanced/global_configuration/ BTW,
WARN Ignoring 'repodata_options'
is very strange message, because you have that in your example.For now, the only thing that working is installing packages from the first specified mirror for
conda-forge
(ex.conda-forge-proxy
), like it worked for installingmypy
in the above exampleExpected behavior
I expected that pixi will:
compressed_mappings
(btw, pip haveindex
andindex-url
in config)