prefix-dev / pixi

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

Search does not return existing conda-forge packages and pixi add complains about "no candidates found" #1991

Closed mgiugliano closed 1 month ago

mgiugliano commented 2 months ago

Checks

Reproducible example

pixi search neuron*

pixi.toml is

[project]
authors = ["XXXXXXXXXXXXXXXXX"]
channels = ["conda-forge"]
description = "Add a short description here"
name = "testme2"
platforms = ["osx-arm64"]
version = "0.1.0"

[tasks]

[dependencies]
python = ">=3.12.5,<4"
numpy = ">=2.1.1,<3"
matplotlib = ">=3.9.2,<4"
jupyterlab = ">=4.2.5,<5"

Issue description

Both "neuron" and "neunorm" are valid conda-forge packages, see here and here.

When the search command is invoked, pixi returns

Using channels: conda-forge
Package                                  Version             Channel            
neunorm                                  1.4.3               conda-forge/noarch 

Similarly, pixi add neuron returns "missing candidate".

Expected behavior

pixi should return another hit, showing two results and should allow to install neuron.

Where am I wrong? Thank you for your patience with me.

mgiugliano commented 2 months ago

I confirm it must be a bug. I just found here that the suggested pixi command to install that specific package is:

pixi add neuron

which unfortunately does not work and returns

➙ pixi add neuron
  × failed to solve the conda requirements of 'default' 'osx-arm64'
  ╰─▶ Cannot solve the request because of: No candidates were found for neuron *.
baszalmstra commented 2 months ago

The package is only available for osx-64 try using that in your platforms.

mgiugliano commented 2 months ago

The package is only available for osx-64 try using that in your platforms.

Thank you.

If I manually add to pixi.toml

[pypi-dependencies]
neuron = ">=8.0.0,<9"

the package gets installed and works perfectly.

baszalmstra commented 2 months ago

I added neuron and neunorm to the osx-arm64 migration, if everything goes right these packages will then also be available for osx-arm64 from conda-forge.

tdejager commented 2 months ago

@baszalmstra seems to be looking good on that feedstock!

mgiugliano commented 2 months ago

I am in debt with you, @baszalmstra and @tdejager !!!

tdejager commented 2 months ago

Haha thank you @mgiugliano, is it okay to close this?