2

Apr

Filed in Mac, Python |

This is mostly a note to myself, but also since my blog is very helpful to fellow Google-users I figured I’d throw it up here publicly.

Today I needed to update a package on PyPi using setuptools:

python setup.py sdist register upload

The problem was, no matter what I did, I always seemed to get this error:

Upload failed (401): You must be identified to edit package information

I also noticed that while it was asking me to save my login information, and I hit Y everytime, it still asked me for the username and password. It turned out that it was saving the information incorrectly as follows:

[pypi]
username:dcramer
password:*******

Changing it out to this solved the problems:

[server-login]
username:dcramer
password:********

Can’t quite explain it, but as I’m sure other people have come across this same issue, maybe it will get resolved in the near future.

  • http://gryziemy.net/ Ryszard Szopa

    Thaks! Your post helped me solving the same issue.

  • thebigbadwolf

    Thanks!

  • http://www.mikexstudios.com Mike H

    Thanks, that solved my issue too on 10.6.

  • Chet Luther

    Thanks for this! First Google response on the exact error message yields a quick and simple fix.

  • Chet Luther

    Thanks for this! First Google response on the exact error message yields a quick and simple fix.

blog comments powered by Disqus