views:

168

answers:

2

I'm trying to upload my package to PyPI. It asks me to identify, I do, it gives an OK response (which doesn't happen unless the identification is right), but then it claims I didn't identify! Why?

[...]
removing 'build\bdist.win32\egg' (and everything under it)
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: coolRR
Password:
Server response (200): OK
running upload
Submitting dist\garlicsim-0.1.zip to http://pypi.python.org/pypi
Upload failed (401): You must be identified to edit package information
removing 'build' (and everything under it)
error: garlicsim-0.1: No such file or directory
A: 

I've never encountered that myself, but some things to check:

  1. Make sure you can login to PyPI using your browser with the username and password.
  2. Check that ~/.pypirc has the correct contents. If it does not exist, try creating it.
  3. Check your setup.cfg file to make sure all the PyPI settings (if any) are correct.
  4. Try building your package as separate check before you run the commands to upload/register, then try python setup.py upload.
Heikki Toivonen