Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

You are not allowed to edit '...' package information

Tags:

python

pypi

I just registered a new package in PyPI. Once I uploaded it and it's appears to be already published on a website.

Next, I slightly changed source code, bumped to a new version and performed

python setup.py sdist upload

command from the shell. And this is a result:

Submitting dist/...-0.2.2.tar.gz to http://pypi.python.org/pypi
Upload failed (403): You are not allowed to edit '...' package information

My ~/.pypirc information is correct (I double-checked it and earlier I suffered from "must be authenticated" problem which is already solved here.

Any ideas? May it be a fresh registration side-effect (I just created account on PyPI today, about an hour ago)?

like image 316
Gregory Sitnin Avatar asked Sep 03 '11 14:09

Gregory Sitnin


3 Answers

You need to register it first.

python setup.py register

Then you can

python setup.py sdist upload
like image 126
Alan Viars Avatar answered Nov 04 '22 12:11

Alan Viars


I investigated, experimented and found that this happend because I uploaded package, but havent registered it prior to uploading. Because I manually created .pypirc and registered account on the website, first upload was successful. After I deleted package, registered it and uploaded again, everything looks ok.

like image 25
Gregory Sitnin Avatar answered Nov 04 '22 11:11

Gregory Sitnin


I got this error because I created my account online, but did not confirm my verification e-mail first. Once I confirmed the account was mine and that I agreed to the terms, the next time I ran python setup.py sdist register upload it worked, returning a Server response (200): OK

This was all with a ~/.pypirc with contents like this:

[server-login]
username:<username>
password:<plain-text password>
like image 2
Garren S Avatar answered Nov 04 '22 11:11

Garren S