Issues

Issue #53 new

PyPI returning 502/500 on register/upload

Peter Donis
created an issue

I am trying to register/upload a new version of a package, and PyPI is returning the following:

Registering plib3.stdlib to http://pypi.python.org/pypi Server response (502): Bad Gateway running upload Submitting dist/plib3.stdlib-0.9.8.tar.gz to http://pypi.python.org/pypi Upload failed (500): Internal Server Error

Comments (7)

  1. ye_yuan

    I'm experiencing similar issue. I have two packages. I tried python setup.py sdist upload --show-response or uploading via the web UI. both showed me 500.

    bridged outputs from running setup.py sdist upload: """ Writing GoogleAppEngineMapReduce-183.1/setup.cfg Creating tar archive removing 'GoogleAppEngineMapReduce-183.1' (and everything under it) running upload Submitting dist/GoogleAppEngineMapReduce-183.1.tar.gz to http://pypi.python.org/pypi Upload failed (500): Internal Server Error """

    But i'm able to register the package. """ running check Registering GoogleAppEngineMapReduce to http://pypi.python.org/pypi Server response (200): OK """

  2. ye_yuan

    Even funnier message now. But upload seems to succeeded.

    removing 'GoogleAppEngineMapReduce-183.1' (and everything under it)
    running upload
    Submitting dist/GoogleAppEngineMapReduce-183.1.tar.gz to http://pypi.python.org/pypi
    Traceback (most recent call last):
      File "setup.py", line 29, in <module>
        install_requires=["GoogleAppEngineCloudStorageClient >= 1.8.3"]
      File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/distutils/command/upload.py", line 60, in run
        self.upload_file(command, pyversion, filename)
      File "/usr/lib/python2.7/distutils/command/upload.py", line 180, in upload_file
        msg = '\n'.join(('-' * 75, r.read(), '-' * 75))
    NameError: global name 'r' is not defined
    
  3. Tim Zehta

    With version="1" I get a similar error:

    Traceback (most recent call last):
      File "setup.py", line 21, in <module>
        version="1",
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/upload.py", line 60, in run
        self.upload_file(command, pyversion, filename)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/upload.py", line 180, in upload_file
        msg = '\n'.join(('-' * 75, r.read(), '-' * 75))
    NameError: global name 'r' is not defined
    

    With version="0.1.0" it only get:

    Upload failed (500): There's been a problem with your request
    

    even though I used --show-response

  4. Simon Sapin

    I can reproduce when trying to upload a new version of cssselect, either from the command line or the web interface. The 500 response contains the following message:

    There's been a problem with your request<br /><br />\n
    <class 'psycopg2.DataError'>: invalid input syntax for integer: "0.9"\n
    LINE 39: ',NULL,'UNKNOWN',NULL,'UNKNOWN','0.9',false)\n
    

    Apparently, the version number (0.9) is incorrectly parsed as an integer.

  5. Rowan Thorpe

    These seem to be several distinct issues, but the one I also hit - the "NameError: global name 'r' is not defined" one - is a cpython stdlib one, and has been solved here

  6. Log in to comment