+
Skip to content

Upload fails with invalid dist_id #712

Open
@matthewfeickert

Description

@matthewfeickert

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载