-
Notifications
You must be signed in to change notification settings - Fork 38
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
unable to parse package name containing local version specifier #944
Comments
This is actually an issue for Although it would be interesting to test that |
PS: can you open the issue here as well? https://github.com/mamba-org/rattler |
@ChristopherRussell I investigated a bit more and I am not sure wether the local version is really the problem. Can you double check if you have any packages with fewer than two dashes in them? The code looks like the following: let package = s.rsplitn(3, '-').nth(2).ok_or("invalid filename")?; We expect a package filename to look like I'll also adjust the error message to mention missing dashes. |
@ChristopherRussell - I opened a PR that might improve the error message here: conda/rattler#757 If you find the offending package, can you let us know? We could think about making the parsing more lenient and adding a fallback if only a single |
Thanks for investigating and opening the other issue for me! The error message was:
and the snippet below shows the entry starting at the 38856'th line (or 'line 38855' if you call the first line 'line 0'). I don't think the error refers to the previous line though as it's only a few characters long (a few spaces plus a close bracket). We also have noarch and win-64 sections in the channel, but the repodata.json files for those are shorter than 38856 lines so can't be the cause of the error.
|
I think this is fixed in |
Hello. I shared the below on prefix.dev discord and @baszalmstra suggested I make an issue. They said:
My situation: I have been trying out pixi at work for the first time. We install everything from internal conda channels. I suppose some bad versions get into there sometimes. E.g. "libxgboost-0.6+218-0.tar.bz2", which caused me to get the following error via
pixi add <some_package>
:I shall request to get these removed from our conda channels now that I am aware, however I think it'd be nice to handle since this error blocks me in the meantime.
The text was updated successfully, but these errors were encountered: