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

Print informative error messages if upload fails. #564

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

csukuangfj
Copy link

It wastes me more than 3 hours to figure out the real reason why the upload fails. Hope this pull-request
can avoid wasting other's time.

The code is from #501 (comment)

It's also used by pytorch/audio#354 (comment)

@Viech
Copy link

Viech commented May 24, 2021

Within a temporary conda environment, one can use the commit referenced in this PR to monkey-patch anaconda-client as follows:

# HACK: Patch anaconda-client to show an error message.
conda install wget git
cd "$(conda info|grep 'active env location'|awk '{print $5}')/lib/python"*"/site-packages/"
wget https://github.com/Anaconda-Platform/anaconda-client/commit/bb74857cbc0b59e9c328fbf7e31caaedbc1bb9f9.diff
git apply bb74857cbc0b59e9c328fbf7e31caaedbc1bb9f9.diff
cd -

This has worked for me using the conda/miniconda3 docker image. The environment has to be active and anaconda-client needs to be installed therein.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants