Using bzr with pycurl on Windows

Eli Zaretskii eliz at gnu.org
Thu May 26 06:00:27 UTC 2011


> From: eliz at gnu.org (Eli Zaretskii)
> Date: Wed, 25 May 2011 20:25:47 +0300
> 
> > Date: Wed, 25 May 2011 19:07:00 +0200
> > From: John Arbash Meinel <john at arbash-meinel.com>
> > CC: bazaar at lists.canonical.com
> > 
> > It shouldn't hang, but it isn't because of pycurl. This is just a note
> > saying you don't have pycurl so we fall back to using urllib. We don't
> > need pycurl, we just try it first.
> 
> I see.

Actually, it looks like it doesn't hang, but instead is waiting for
something (a timeout?) for a long time, about 2.5 minutes.  Once I got
more patient, I've got this error message:

  bzr: ERROR: Invalid http response for https://github.com/dlitz/pycrypto.git/info/refs: Bad status line received

and this traceback in .bzr.log:

  Thu 2011-05-26 07:45:00 +0300
  0.250  bazaar version: 2.3.3
  0.250  bzr arguments: [u'branch', u'https://github.com/dlitz/pycrypto.git']
  0.313  looking for plugins in C:/Documents and Settings/p0009057/Application Data/bazaar/2.0/plugins
  0.313  looking for plugins in C:/Program Files/Bazaar/plugins
  3.273  encoding stdout as sys.stdout encoding 'cp862'
  3.304  failed to import pycurl: No module named pycurl
  3.304  failed to instantiate transport <bzrlib.registry._LazyObjectGetter object at 106bb20, module='bzrlib.transport.http._pycurl' attribute='PyCurlTransport' imported=False> for 'https://github.com/dlitz/pycrypto.git': DependencyNotPresent(Unable to import library "pycurl": No module named pycurl)
  6.045  bzr-svn: using Subversion 1.6.6 (), subvertpy 0.7.5
  162.761  Transferred: 61kB (0.4kB/s r:60kB w:1kB)
  162.761  Traceback (most recent call last):
    File "bzrlib\commands.pyo", line 926, in exception_to_return_code
    File "bzrlib\commands.pyo", line 1126, in run_bzr
    File "bzrlib\commands.pyo", line 691, in run_argv_aliases
    File "bzrlib\commands.pyo", line 713, in run
    File "bzrlib\cleanup.pyo", line 135, in run_simple
    File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
    File "bzrlib\builtins.pyo", line 1183, in run
    File "bzrlib\bzrdir.pyo", line 806, in open_tree_or_branch
    File "bzrlib\bzrdir.pyo", line 717, in open
    File "bzrlib\bzrdir.pyo", line 747, in open_from_transport
    File "bzrlib\lazy_import.pyo", line 128, in __call__
    File "bzrlib\transport\__init__.pyo", line 1670, in do_catching_redirections
    File "bzrlib\bzrdir.pyo", line 734, in find_format
    File "bzrlib\controldir.pyo", line 754, in find_format
    File "C:/Program Files/Bazaar/plugins\git\__init__.py", line 130, in probe_transport
    File "bzrlib\transport\__init__.pyo", line 569, in has_any
    File "bzrlib\transport\http\_urllib.pyo", line 164, in has
    File "bzrlib\transport\http\_urllib.pyo", line 157, in _head
    File "bzrlib\transport\http\_urllib.pyo", line 79, in _perform
    File "urllib2.pyo", line 391, in open
    File "urllib2.pyo", line 409, in _open
    File "urllib2.pyo", line 369, in _call_chain
    File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 763, in https_open
    File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 669, in do_open
    File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 584, in retry_or_raise
    File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 669, in do_open
    File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 665, in do_open
    File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 267, in getresponse
    File "httplib.pyo", line 990, in getresponse
    File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 188, in begin
    File "httplib.pyo", line 391, in begin
    File "httplib.pyo", line 369, in _read_status
  InvalidHttpResponse: Invalid http response for https://github.com/dlitz/pycrypto.git/info/refs: Bad status line received

  162.761  return code 3



More information about the bazaar mailing list