Issue #8 new

uncaught httplib errors

Tarek Ziadé
created an issue

I get a couple of errors when trying to run the mirror

{{{ Copying /packages/2.6/A/AHREA/AHREA-1.0.2-py2.6-linux-x86_64.egg Traceback (most recent call last): File "bin/pep381run", line 5, in <module> pkg_resources.run_script('pep381client==1.5', 'pep381run') File "/home/tarek/dev/pypi/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 489, in run_script File "/home/tarek/dev/pypi/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1214, in run_script File "/home/tarek/dev/pypi/lib/python2.6/site-packages/pep381client-1.5-py2.6.egg/EGG-INFO/scripts/pep381run", line 30, in <module>

File "build/bdist.linux-x86_64/egg/pep381client/init.py", line 119, in synchronize File "build/bdist.linux-x86_64/egg/pep381client/init.py", line 159, in _synchronize File "build/bdist.linux-x86_64/egg/pep381client/init.py", line 247, in maybe_copy_file File "/usr/lib/python2.6/httplib.py", line 529, in read s = self._safe_read(self.length) File "/usr/lib/python2.6/httplib.py", line 621, in _safe_read raise IncompleteRead(''.join(s), amt) httplib.IncompleteRead: IncompleteRead(1708216 bytes read, 2723587 more expected) }}}

{{{ Copying /packages/2.5/A/AppTools/AppTools-3.0.0-py2.5.egg Copying /packages/source/A/AppTools/AppTools-3.3.1.tar.gz Traceback (most recent call last): File "bin/pep381run", line 5, in <module> pkg_resources.run_script('pep381client==1.5', 'pep381run') File "/home/tarek/dev/pypi/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 489, in run_script File "/home/tarek/dev/pypi/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1214, in run_script File "/home/tarek/dev/pypi/lib/python2.6/site-packages/pep381client-1.5-py2.6.egg/EGG-INFO/scripts/pep381run", line 30, in <module>

File "build/bdist.linux-x86_64/egg/pep381client/init.py", line 119, in synchronize File "build/bdist.linux-x86_64/egg/pep381client/init.py", line 159, in _synchronize File "build/bdist.linux-x86_64/egg/pep381client/init.py", line 237, in maybe_copy_file File "/usr/lib/python2.6/httplib.py", line 990, 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 }}}

I guess these should be caught, and a simple warning displayed. Hopefully the package will be caught on the next run,

But that will let the pass finish

Comments (5)

  1. Christian Theune

    Those changes look fine. I'm now using your branch to run f.pypi.python.org as I had trouble with some httplib errors (which actually seemed a problem how pep381client handles keep-alive connections) and got it working with those changes - not even a problem of crappy DSL connections, even in the data center those are helpful.

  2. Log in to comment