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

Question:

Im encountering a problem with pypi similar to this one, except that I’m running windows and the mentioned solution page is down.

Does anyone know how to work around this? I’m using python 2.5.

python setup.py sdist register upload

running register
We need to know who you are, so please choose either:
 1. use your existing login,
 2. register as a new user,
 3. have the server generate a new password for you (and email it to you), or
 4. quit
Your selection [default 1]:  1
Username: tschellenbach
Password:
Server response (200): OK
running upload
Submitting distdjango-ogone-1.0.0.zip to http://pypi.python.org/pypi
Upload failed (401): You must be identified to edit package information
Asked By: Thierry

||

Answers:

the answer for this seems not very non-windows-specific, give it a try:
accepted answer It says basically, that you need a file .pypirc with the following section:

[server-login]
username:tschellenbach
password:******** (the real one)

also, this is the relevant documentation (about .pypirc):

On windows, an you’ll need to set a HOME environ var to point to the directory where this file lives.

Answered By: knitti
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.