#170 setup.py register failing

closed
nobody
None
5
2012-04-09
2012-03-26
No

I see the following when I try and register a new package:

philip@philip-laptop:~/projects/django/green-monkey$ python setup.py register
running register
running egg_info
writing requirements to green_monkey.egg-info/requires.txt
writing green_monkey.egg-info/PKG-INFO
writing top-level names to green_monkey.egg-info/top_level.txt
writing dependency_links to green_monkey.egg-info/dependency_links.txt
reading manifest file 'green_monkey.egg-info/SOURCES.txt'
writing manifest file 'green_monkey.egg-info/SOURCES.txt'
Registering green-monkey to http://submit@pypi.python.org/pypi
Traceback (most recent call last):
File "/data/pypi/src/pypi/standalone.py", line 4, in <module>
class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
File "/data/pypi/src/pypi/standalone.py", line 5, in RequestHandler
config = config.Config("config.ini")
File "/data/pypi/src/pypi/config.py", line 10, in __init__
self.database_name = c.get('database', 'name')
File "/usr/lib/python2.6/ConfigParser.py", line 532, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'database'
Traceback (most recent call last):
File "setup.py", line 46, in <module>
install_requires=INSTALL_REQUIRES,
File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.6/dist-packages/setuptools/command/register.py", line 9, in run
_register.run(self)
File "/usr/lib/python2.6/distutils/command/register.py", line 40, in run
self.send_metadata()
File "/usr/lib/python2.6/distutils/command/register.py", line 171, in send_metadata
auth)
File "/usr/lib/python2.6/distutils/command/register.py", line 287, in post_to_server
result = opener.open(req)
File "/usr/local/lib/python2.6/dist-packages/pypissh.py", line 66, in open
return OpenerDirector.open(self, req, data=data)
File "/usr/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/local/lib/python2.6/dist-packages/pypissh.py", line 49, in httpssh_open
return self.do_open(HTTPSSHConnection, req)
File "/usr/lib/python2.6/urllib2.py", line 1134, in do_open
r = h.getresponse()
File "/usr/lib/python2.6/httplib.py", line 986, in getresponse
response.begin()
File "/usr/lib/python2.6/httplib.py", line 391, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.6/httplib.py", line 355, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine

The package is https://github.com/philipn/green-monkey

Discussion

  • philipneustrom

    philipneustrom - 2012-03-26
    • summary: setup.y register failing --> setup.py register failing
     
  • philipneustrom

    philipneustrom - 2012-03-29

    I've tried creating a new pypi account and tried registering existing packages (with the name changed a bit) -- nothing's working! I keep seeing the same error. Other people report that they are able to register packages just fine :(

     
  • Martin v. Löwis

    Please turn on http debugging, by editing the source of httplib.py, and report the actual http conversation that is happening.

     
  • philipneustrom

    philipneustrom - 2012-04-02

    Registering green-monkey to http://submit@pypi.python.org/pypi
    send: 'POST /pypi HTTP/1.1\r\nHost: pypi.python.org\r\nAccept-Encoding: identity\r\nContent-Length: 2444\r\nContent-Type: multipart/form-data; boundary=--------------GHSKFJDLGDS7543FJKLFHRE75642756743254; charset=utf-8\r\nConnection: close\r\n\r\n'
    send: '\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="license"\n\nUNKNOWN\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="name"\n\ngreen-monkey\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="metadata_version"\n\n1.0\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="author"\n\nPhilip Neustrom\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="home_page"\n\nhttp://github.com/philipn/green-monkey/\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name=":action"\n\nsubmit\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="download_url"\n\nUNKNOWN\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="summary"\n\nUse green versions of all possible modules\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="author_email"\n\nphilipn@gmail.com\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="version"\n\n0.1.2\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="platform"\n\nUNKNOWN\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="classifiers"\n\nDevelopment Status :: 3 - Alpha\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="classifiers"\n\nEnvironment :: Web Environment\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="classifiers"\n\nIntended Audience :: Developers\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="classifiers"\n\nLicense :: OSI Approved :: BSD License\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="classifiers"\n\nOperating System :: OS Independent\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="classifiers"\n\nProgramming Language :: Python\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="classifiers"\n\nFramework :: Django\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254\nContent-Disposition: form-data; name="description"\n\nUNKNOWN\n----------------GHSKFJDLGDS7543FJKLFHRE75642756743254--\n'
    Traceback (most recent call last):
    File "/data/pypi/src/pypi/standalone.py", line 4, in <module>
    class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
    File "/data/pypi/src/pypi/standalone.py", line 5, in RequestHandler
    config = config.Config("config.ini")
    File "/data/pypi/src/pypi/config.py", line 10, in __init__
    self.database_name = c.get('database', 'name')
    File "/usr/lib/python2.6/ConfigParser.py", line 532, in get
    raise NoSectionError(section)
    ConfigParser.NoSectionError: No section: 'database'
    reply: ''
    Traceback (most recent call last):
    File "setup.py", line 46, in <module>
    install_requires=INSTALL_REQUIRES,
    File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
    File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
    File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
    File "/usr/local/lib/python2.6/dist-packages/setuptools/command/register.py", line 9, in run
    _register.run(self)
    File "/usr/lib/python2.6/distutils/command/register.py", line 40, in run
    self.send_metadata()
    File "/usr/lib/python2.6/distutils/command/register.py", line 171, in send_metadata
    auth)
    File "/usr/lib/python2.6/distutils/command/register.py", line 287, in post_to_server
    result = opener.open(req)
    File "/usr/local/lib/python2.6/dist-packages/pypissh.py", line 66, in open
    return OpenerDirector.open(self, req, data=data)
    File "/usr/lib/python2.6/urllib2.py", line 391, in open
    response = self._open(req, data)
    File "/usr/lib/python2.6/urllib2.py", line 409, in _open
    '_open', req)
    File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
    File "/usr/local/lib/python2.6/dist-packages/pypissh.py", line 49, in httpssh_open
    return self.do_open(HTTPSSHConnection, req)
    File "/usr/lib/python2.6/urllib2.py", line 1134, in do_open
    r = h.getresponse()
    File "/usr/lib/python2.6/httplib.py", line 986, in getresponse
    response.begin()
    File "/usr/lib/python2.6/httplib.py", line 391, in begin
    version, status, reason = self._read_status()
    File "/usr/lib/python2.6/httplib.py", line 355, in _read_status
    raise BadStatusLine(line)
    httplib.BadStatusLine

     
  • philipneustrom

    philipneustrom - 2012-04-03

    Here's a better formatted version:

    http://pastebin.com/raw.php?i=kQ5N5fnT

    Any ideas? Not being able to register or update packages has got me down

     
  • philipneustrom

    philipneustrom - 2012-04-08

    Updating to python 2.7 from python 2.6 seemed to fix my issue. I don't have time right now to look into this further, but there may be issues with PyPI and python 2.6.

     
  • Martin v. Löwis

    • status: open --> closed
     
  • Martin v. Löwis

    The full trace resolved the issue: you were apparently using pypissh in 2.6, which was broken. I have now fixed it. Thanks for the report.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks