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.

anaconda upload silently fails

See original GitHub issue

Issue Description

Hi,

I’m experiencing weird issues with anaconda upload silently failing.

  1. built a package:
conda skeleton pypi fastprogress
conda-build fastprogress

all was successful (this is just a pure python one-file module).

  1. tried to upload:
anaconda upload fastprogress-0.1.5-py36_0.tar.bz2
Using Anaconda API: https://api.anaconda.org
Using "stason" as upload username
Processing 'fastprogress-0.1.5-py36_0.tar.bz2'
Detecting file type...
File type is "conda"
Extracting conda package attributes for upload
Creating package "fastprogress"

that’s it. Nothing happens, no error message, nothing gets uploaded. (nothing appears under https://anaconda.org/stason/repo)

Please note that another team member was able to successfully upload this same package from his setup, but it doesn’t work on mine:

conda-build 3.15.1
conda 4.5.11
anaconda Command line client (version 1.7.2)
Python 3.6.6 :: Anaconda custom (64-bit)
ubuntu 18.04

Thank you.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:6
  • Comments:27 (9 by maintainers)

github_iconTop GitHub Comments

7reactions
bkreidercommented, Mar 7, 2019

I think i have narrowed this down. If you do a echo $? anaconda-client properly shows an error code of 1, but no output.

In upload.py:245 it needs to catch the exception. This snippet shows catching the exception, logging it and re-raising it:

        try:
            logger.info("About to upload")
            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))
            logger.info("after upload")
        except errors.Conflict:
            logger.info("Inside Except")
            upload_info = {}
            if args.mode != 'skip':
                logger.info('Distribution already exists. Please use the -i/--interactive or --force or --skip options '
                            'or `anaconda remove %s/%s/%s/%s', username, package_name, version, file_attrs['basename'])
                raise
            else:
                logger.info('Distribution already exists. Skipping upload.\n')
        except Exception as e:
                logger.info('Uncaught exception: %s' %  (str(e),))
                raise

The output looks like this:

Using Anaconda API: https://api.anaconda.org
Using "...." as upload username
Processing '/home/travis/miniconda/conda-bld/linux-64/......tar.bz2'
Detecting file type...
File type is "conda"
Extracting conda package attributes for upload
Creating package "......"
Creating release "1.5.1"
Uploading file "...."
About to upload
Uncaught exception: (u'Authentication token has expired', 401)
6reactions
mcg1969commented, Jun 1, 2020

@bkreider let’s huddle on this very soon and work on getting a point release out there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upload to Repo Fails Silently - Anaconda support
No information is available for this page.
Read more >
Developers - anaconda upload fails silently if the user's storage limit ...
When a user's storage limit for anaconda.org is exceeded, anaconda upload fails. Fair enough! :-) But it would be nice to see an...
Read more >
Mario IC on Twitter: "If you are tired of the command anaconda ...
Hi, I'm experiencing weird issues with anaconda upload silently failing. built a package: conda skeleton pypi fastprogress conda-build fastprogress all was ...
Read more >
Anaconda.org uploading errors - python - Stack Overflow
I'm having 2 errors with uploading ipynb files to anaconda.org. ... There was no error occurred in terminal, but when I opened anaconda.org, ......
Read more >
Release notes — conda 22.11.1.post16+ce4e810c9 ...
Stop referring to updating anaconda when conda update fails with an error. ... resolve #6915 remove 'conda env attach' and 'conda env upload'...
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