-
Notifications
You must be signed in to change notification settings - Fork 36
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
Packages downloaded from anaconda.org have unsupported filenames? #230
Comments
I think the relevant code is here: https://github.com/conda/conda-package-streaming/blob/main/conda_package_streaming/package_streaming.py#L127 It certainly could be a more flexible scheme, but just matching prefix ( |
Right, that's why I wasn't sure if this was intended behavior. However, it seems like it's quite a stringent requirement for the file to have a particular name in order to be extracted properly. It's certainly not obvious that the file name should have any effect on extracting it (no other compressed format or package format has such a requirement that I am aware of). |
It has to do with how the files are downloaded. The headers have issues Clicking the download link and letting the browser handle the download doesn't work. Copying the link from Anaconda and using another download tool (like There's more context in issue: conda/infrastructure#868 |
I'd second the sentiment here. Coupling the ability to uncompress with the file name is unnecessarily fragile. Aside from getting the website to serve downloads without changing names, I'd really like to see the sensitivity to filename engineered out of the format. |
We will fix anaconda.org and will close this ticket when it is deployed. |
This should be fixed on anaconda.org. Let us know if it is working for you. |
This appears to work now! Thank you @dholth. |
Checklist
What happened?
I have a question that may be a bug in
conda-package-handling
. It might be intentional behavior.I often download packages from anaconda.org to check their contents. I visited https://anaconda.org/conda-forge/nanoarrow/files and clicked a link to download the
.conda
package. This saved a file namedlinux-64_nanoarrow-0.4.0-py310h2372a71_0.conda
. However, runningcph x linux-64_nanoarrow-0.4.0-py310h2372a71_0.conda
fails. It gives an error like:Full traceback:
The problem is that the filename must be changed to
nanoarrow-0.4.0-py310h2372a71_0.conda
to match the component names, which are named likeinfo-nanoarrow-0.4.0-py310h2372a71_0.tar.zst
.The line linked below is trying to find a component named the same way as the file.
conda-package-handling/src/conda_package_handling/conda_fmt.py
Line 46 in b29610f
Is it reasonable to require that the filename matches the names of the components? I am a bit surprised that renaming the file would make it impossible to extract.
Conda Info
conda version : 23.11.0
Conda Config
Conda list
Additional Context
No response
The text was updated successfully, but these errors were encountered: