Bazaar-NG doesn't work right with Python 2.4.2

Radoslaw Szkodzinski astralstorm at gorzow.mm.pl
Mon Jan 16 19:15:52 GMT 2006


John A Meinel wrote:
> Radoslaw Szkodzinski wrote:
>> Jan Hudec wrote:
>>> Can you please give us a more detailed description of your setup, so
>>> someone can reproduce your problem? Version of bzr and what does your
>>> http_proxy environment variable look like.
>> astralstorm at zen ~ $ export | grep HTTP_PROXY
>> declare -x HTTP_PROXY="192.168.0.1:9191"
>>
>> This proxy is of course online. I'm using it for normal HTTP access.
>> [...]
>> If you'd like to know anything else, please tell.
>>
> 
> When bzr fails to do something, it usually puts more information in
> ~/.bzr.log
> can you check that for a traceback, and send it to the list?

astralstorm at zen src $ bzr branch http://bazaar-ng.org/bzr/bzr.dev
bzr: ERROR: exceptions.TypeError: iterable argument required
  at /usr/lib/python2.4/urllib2.py line 580
  in proxy_open

astralstorm at zen src $ cat ~/.bzr.log

this is a debug log for diagnosing/reporting problems in bzr
you can delete or truncate this file, or include sections in
bug reports to bazaar-ng at lists.canonical.com


bzr 0.7rc1 invoked on python 2.4.2.final.0 (linux2)
  arguments: ['/usr/bin/bzr', 'branch', 'http://bazaar-ng.org/bzr/bzr.dev']
  working dir: u'/usr/src'
looking for plugins in /usr/lib/python2.4/site-packages/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
Plugin name __init__ already loaded
looking for plugins in /home/astralstorm/.bazaar/plugins
trying to open u'http://bazaar-ng.org/bzr/bzr.dev' with transport
<bzrlib.transport.http.HttpTransport object at 0xb7a6ceac>
get_url http://bazaar-ng.org/bzr/bzr.dev/.bzr/branch-format
[29196] Mon 20:10:55.838 ERROR: exceptions.TypeError: iterable argument
required  at /usr/lib/python2.4/urllib2.py line 580
  in proxy_open
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 572,
in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 534,
in run_bzr
    ret = cmd_obj.run_argv(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 233,
in run_argv
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 560,
in run
    br_from = Branch.open(from_location)
  File "/usr/lib/python2.4/site-packages/bzrlib/branch.py", line 120, in
open
    return BzrBranch(t)
  File "/usr/lib/python2.4/site-packages/bzrlib/branch.py", line 568, in
__init__
    self._check_format(relax_version_check)
  File "/usr/lib/python2.4/site-packages/bzrlib/branch.py", line 826, in
_check_format
    fmt = self.controlfile('branch-format', 'r').read()
  File "/usr/lib/python2.4/site-packages/bzrlib/branch.py", line 736, in
controlfile
    return codecs.getreader('utf-8')(self._transport.get(relpath),
errors='replace')
  File "/usr/lib/python2.4/site-packages/bzrlib/transport/http.py", line
186, in get
    return get_url(path)
  File "/usr/lib/python2.4/site-packages/bzrlib/transport/http.py", line
71, in get_url
    url_f = opener.open(url)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
    response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
    '_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 573, in <lambda>
    lambda r, proxy=url, type=type, meth=self.proxy_open: \
  File "/usr/lib/python2.4/urllib2.py", line 580, in proxy_open
    if '@' in host:
TypeError: iterable argument required

return code 3

> 
> bzr does require python 2.4.2, and we don't do a lot with proxies,
> expecting python's urllib to take care of most of that for us.
> 

So maybe it's a bug in urllib2, or the way you're passing parameters to
it. (seems like both)

> What little we do seems use 'http_proxy' not HTTP_PROXY, though I don't
> know that it matters.
> 

It shouldn't I think.

(Please CC me, I'm not subscribed to the list)

-- 
GPG Key id:  0xD1F10BA2
Fingerprint: 96E2 304A B9C4 949A 10A0  9105 9543 0453 D1F1 0BA2

AstralStorm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060116/d6ace55c/attachment.pgp 


More information about the bazaar mailing list