Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repodata not found error on valid channel containing only noarch subdir #647

Closed
carschandler opened this issue May 7, 2024 · 4 comments
Closed

Comments

@carschandler
Copy link

carschandler commented May 7, 2024

Related to #172, opening a new issue per the team's request.

I have a simple channel:

 conda_channel
└──  noarch
    ├──  current_repodata.json
    ├──  index.html
    ├──  proj_area-0.0.3-pyh4616a5c_0.conda
    ├──  repodata.json
    └──  repodata_from_packages.json

and get

ERROR rattler_repodata_gateway::fetch: error=repodata not found

upon installing from the channel. Expected behavior depends on what we define as a valid channel. I would say that a valid channel is one that allows you to install all the packages inside it as expected. I'd prefer to just see no errors in this case, especially since the error shows up any time the channel is interacted with (i.e. pixi project channel add, pixi add, pixi search, etc.)

@carschandler
Copy link
Author

FWIW, conda yields no errors or warnings when using this channel. micromamba gives me

file:////fs2/OpticsLab/Personal/Chandler_Cars/co.. Checked  0.0s
file:////fs2/OpticsLab/Personal/Chandler_Cars/co.. Checked  0.0s
file:////fs2/OpticsLab/Personal/Chandler_Cars/co..  ??.?MB @  ??.?MB/s 0 failed  0.0s
file:////fs2/OpticsLab/Personal/Chandler_Cars/co.. 989.0 B @  10.1kB/s  0.1s
conda-forge/noarch                                  14.5MB @   4.6MB/s  3.1s
conda-forge/win-64                                  22.0MB @   5.3MB/s  4.1s

and then proceeds as normal.

@baszalmstra
Copy link
Collaborator

Are you using py-rattler? Or how are you getting this error?

This happens because internally it calls fetch_repodata which assumes that the channel subdirectory exists. The function returns a special NotFound error (which is also reported to the logs), but the error should just be ignored if the subdir is not noarch.

Once https://github.com/mamba-org/rattler/pull/560/files is merged you will have a much much nicer interface.

@carschandler
Copy link
Author

carschandler commented May 7, 2024

@baszalmstra I'm using pixi to install it and this is where the errors are produced. And nice! I'll be looking forward to the new changes.

@baszalmstra
Copy link
Collaborator

The gateway feature has landed in rattler, will most likely make its way to pixi and rattler-build soon, closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants