David Cramer's Blog

Python, Django, and Scale.

Problems Uploading Packages With Setuptools on OS X

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.

Comments