Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#177 Cannot upload new sdist of package

closed
nobody
None
5
2012-05-11
2012-04-26
Dan McGee
No

When I try to upload a new sdist of my package from the command line, it correctly creates the new version but fails to upload the file. I get a 500 error. Here is the package in question: http://pypi.python.org/pypi/pgpdump

Here is my command output. Note that it also fails if I try to log into the website itself and upload that way.

From what I can tell, this is specific to my package alone, as I've talked to others and they haven't seen a general failure.

Thanks!
-Dan

$ python2 setup.py sdist upload --sign
running sdist
running check
warning: check: missing meta-data: if 'author' supplied,
'author_email' must be supplied too

reading manifest template 'MANIFEST.in'
writing manifest file 'MANIFEST'
creating pgpdump-1.2
...more files here...
hard linking testdata/linus.gpg -> pgpdump-1.2/testdata
Creating tar archive
removing 'pgpdump-1.2' (and everything under it)
running upload
gpg --detach-sign -a dist/pgpdump-1.2.tar.gz

You need a passphrase to unlock the secret key for
user: "Dan McGee <dpmcgee@gmail.com>"
1024-bit DSA key, ID F53A76ED, created 2007-06-26

Submitting dist/pgpdump-1.2.tar.gz to http://pypi.python.org/pypi
Upload failed (500): There's been a problem with your request

Discussion

  • Can you please report an approximate UTC time when you attempted the upload?

     
  • Dan McGee
    Dan McGee
    2012-04-26

    I'll just run it again since it always happens, that way you get an exact time:

    dmcgee@galway ~/projects/python-pgpdump ((1.2))
    $ date -u && python2 setup.py sdist upload
    Thu Apr 26 15:18:23 UTC 2012
    running sdist
    running check
    warning: check: missing meta-data: if 'author' supplied, 'author_email' must be supplied too

    reading manifest template 'MANIFEST.in'
    writing manifest file 'MANIFEST'
    creating pgpdump-1.2
    creating pgpdump-1.2/pgpdump
    creating pgpdump-1.2/testdata
    making hard links in pgpdump-1.2...
    hard linking COPYRIGHT -> pgpdump-1.2
    hard linking README -> pgpdump-1.2
    hard linking README.md -> pgpdump-1.2
    hard linking setup.py -> pgpdump-1.2
    hard linking pgpdump/__init__.py -> pgpdump-1.2/pgpdump
    hard linking pgpdump/__main__.py -> pgpdump-1.2/pgpdump
    hard linking pgpdump/data.py -> pgpdump-1.2/pgpdump
    hard linking pgpdump/packet.py -> pgpdump-1.2/pgpdump
    hard linking pgpdump/test.py -> pgpdump-1.2/pgpdump
    hard linking pgpdump/utils.py -> pgpdump-1.2/pgpdump
    hard linking testdata/README.asc -> pgpdump-1.2/testdata
    hard linking testdata/dan.gpg -> pgpdump-1.2/testdata
    hard linking testdata/junio.gpg -> pgpdump-1.2/testdata
    hard linking testdata/linus.asc -> pgpdump-1.2/testdata
    hard linking testdata/linus.gpg -> pgpdump-1.2/testdata
    Creating tar archive
    removing 'pgpdump-1.2' (and everything under it)
    running upload
    Submitting dist/pgpdump-1.2.tar.gz to http://pypi.python.org/pypi
    Upload failed (500): There's been a problem with your request

     
  • Dan McGee
    Dan McGee
    2012-04-27

    Anything more I can do here to help? Would be nice to be able to push new versions of my code again.

     
  • Unfortunately, I don't think you can do anything. I'm really short on time, being able to use only a few minutes once every few days for this; typing this response already exhausts my quota. The stumbling block currently is sentry; I'm unable to get any useful data out of it.

     
  • I can propose two strategies, not necessarily mutually exclusive:
    a) you provide me somehow with a source tarball, and I try to upload it myself, and
    b) you upload the release over the web page, rather than using setuptools.

     
  • Dan McGee
    Dan McGee
    2012-05-01

    Sorry, wasn't getting update emails from SourceForge.

    I can give you (a), I'll attach the file.
    For (b), that doesn't work either, it also gives a 500 error (stated this in my original post but didn't make it obvious, sorry).

     
  • Dan McGee
    Dan McGee
    2012-05-01

    pgpdump 1.2

     
    Attachments
  • Dan McGee
    Dan McGee
    2012-05-08

    Still failing any way I try it. Via the web form...

    Error...

    There's been a problem with your request

    : 'NoneType' object has no attribute 'isreg'

     
  • I have now found the problem. Your tar file contained a README entry, which is a symlink pointing to a non-existing README.md file. PyPI tried to extract the readme, and crashed. I have now fixed it so it skips over such files.

    Sorry it took so long.

     
    • status: open --> closed