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

Upload fails with invalid dist_id #712

Open
matthewfeickert opened this issue Mar 27, 2024 · 0 comments
Open

Upload fails with invalid dist_id #712

matthewfeickert opened this issue Mar 27, 2024 · 0 comments

Comments

@matthewfeickert
Copy link
Contributor

matthewfeickert commented Mar 27, 2024

In scientific-python/upload-nightly-action#77 @larsoner saw

anaconda --token *** upload --force --user scientific-python-nightly-wheels --label main dist/h5py-3.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl dist/h5py-3.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl dist/h5py-3.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl dist/h5py-3.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

fail with

Warning:  Distribution "h5py-3.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" already exists. Removing.
Creating package "h5py"
Creating release "3.10.0"
Uploading file "scientific-python-nightly-wheels/h5py/3.10.0/h5py-3.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"

  0%|          | 0.00/5.17M [00:00<?, ?B/s]
  0%|          | 16.0k/5.17M [00:00<01:04, 83.8kB/s]
  2%|▏         | 128k/5.17M [00:00<00:10, 507kB/s]  
  9%|▉         | 496k/5.17M [00:00<00:03, 1.63MB/s]
 22%|██▏       | 1.14M/5.17M [00:00<00:01, 3.26MB/s]
 61%|██████▏   | 3.17M/5.17M [00:00<00:00, 8.93MB/s]
5.18MB [00:00, 6.13MB/s]                            
standard python located at:
  https://anaconda.org/scientific-python-nightly-wheels/h5py

Error:  ("Invalid dist_id ObjectId('6603800020b28178c3fabc66') does not exist", [404](https://github.com/h5py/h5py/actions/runs/8445531348/job/23133109268#step:5:405))

The dist_id seems to come from the payload of the upload command

https://github.com/Anaconda-Platform/anaconda-client/blob/f2d1601fc23fbe0fbdbd779c47ba423d93b9514a/binstar_client/__init__.py#L601

and given the 404 it seems this is a problem on the Anaconda Cloud side of things. Can a better error message be added for the user?

@matthewfeickert matthewfeickert changed the title Upload fails with Invalid dist_id Upload fails with invalid dist_id Mar 27, 2024
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

1 participant