Issue #16 new

httplib.ResponseNotReady Exception was raised.

Zhiwen Sun
created an issue

No description provided.

Comments (7)

  1. Bors LTD

    Is it me or the OP didn't give any details?

    I'll give some context:

    $ pep381run data 
    Synchronizing iterator
    Copying /packages/source/i/iterator/iterator-1.1.0.zip
    Copying /packages/source/i/iterator/iterator-1.2.0.zip
    Traceback (most recent call last):
      File "/home/django/.virtualenvs/pypi/bin/pep381run", line 30, in <module>
        state.synchronize()
      File "/home/django/.virtualenvs/pypi/lib/python2.7/site-packages/pep381client/__init__.py", line 119, in synchronize
        self._synchronize()
      File "/home/django/.virtualenvs/pypi/lib/python2.7/site-packages/pep381client/__init__.py", line 159, in _synchronize
        self.maybe_copy_file(project, file)
      File "/home/django/.virtualenvs/pypi/lib/python2.7/site-packages/pep381client/__init__.py", line 237, in maybe_copy_file
        r = h.getresponse()
      File "/usr/lib64/python2.7/httplib.py", line 1018, in getresponse
        raise ResponseNotReady()
    httplib.ResponseNotReady
    
  2. Roman Sokolkov

    My rough workaround was

    --- /usr/local/lib/python2.7/dist-packages/pep381client/__init__.py.orig        2013-03-18 03:57:02.153153555 -0500
    +++ /usr/local/lib/python2.7/dist-packages/pep381client/__init__.py     2013-03-18 03:55:35.006547662 -0500
    @@ -139,6 +139,8 @@
                 if not project:
                     # skip empty project names resulting from PyPI-wide changes
                     continue
    +            if project.encode('utf-8') == 'iterator':
    +                continue
                 if not self.quiet:
                     print "Synchronizing", project.encode('utf-8')
                 data = self.copy_simple_page(project)
    
  3. jeremywohl

    Thanks. I ended up needing the following to make a full pass.

                if project.encode('utf-8') in ['iterator', 'nester_test_ling', 'nesterswe']:
                    continue
    
  4. Log in to comment