question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to upload to Anaconda Cloud

See original GitHub issue

Issue Description

I was initially made aware of this issue when the Travis build of this project failed because the upload to Anaconda Cloud failed.

And then, I tried it manually in my Ubuntu VM to first build the conda package, and then upload it using anaconda upload.

$ anaconda -v -t <anaconda_token> upload ~/miniconda3/conda-bld/linux-64/cate-cli-2.0.0.dev10-py36_0.tar.bz2 -u ccitools
Using Anaconda API: https://api.anaconda.org
[DEBUG] Using token from command line args
Using "ccitools" as upload username
Detecting file type...
[DEBUG] Testing if conda package ..
[DEBUG] This is a conda package
File type is "conda"
Extracting package attributes for upload
Creating package "cate-cli"
Creating release "2.0.0.dev10"
Uploading file "ccitools/cate-cli/2.0.0.dev10/linux-64/cate-cli-2.0.0.dev10-py36_0.tar.bz2"

At a glance it looked as if it was successful (no errors or warnings). However, the package was not really uploaded. I could not find it in Anaconda Cloud.

Any idea what is happening here?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
hans-permanacommented, Jun 1, 2018

@hdoupe , I modified the try-except block in binstar_client/commands/upload.py line 236:

        try:
            upload_info = aserver_api.upload(username, package_name, version, file_attrs['basename'], fd,
                                             binstar_package_type, args.description,
                                             dependencies=file_attrs.get('dependencies'), attrs=file_attrs['attrs'],
                                             channels=args.labels, callback=upload_print_callback(args))
        except BaseException:
            # logger.info('Distribution already exists. Please use the -i/--interactive or --force options or `anaconda '
            #             'remove %s/%s/%s/%s', username, package_name, version, file_attrs['basename'])
            # logger.info('error uploading: ', errors)
            import sys
            logger.error('error uploading: ', exc_info=sys.exc_info())

            raise
0reactions
hdoupecommented, Jun 1, 2018

Nice, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

error when using conda env upload - Stack Overflow
I recently reinstalled Anaconda and I'm currently unable to upload an environment to Anaconda cloud account, getting the following error:
Read more >
Working with packages - Anaconda Documentation
This example shows how to build and upload a conda package to Anaconda.org using conda build . Use the terminal window or an...
Read more >
Uploads of packages to Anaconda Cloud failing with 405 status
As of 2022-08-16 package uploads to Anaconda cloud have been failing with anaconda-client for some projects with a Method Not Allowed: ...
Read more >
Google Cloud Error Reporting - :: Anaconda.org
conda -forge / packages / google-cloud-error-reporting 1.7.0. 0 · License: Apache-2.0 · 15990 total downloads · Last upload: 8 days and 4 hours...
Read more >
Building conda packages
Conda recipes are typically built with a trial-and-error method. ... of the final package file and a command to upload the package to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found