socket.gaierror: (-5, 'No address associated with hostname')

Bug #348849 reported by yan
2
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

I have set http_proxy in .bashrc. And I can use w3m access the web in console.

bzr branch lp:mysql-server/5.1 mysql-5.1

get:
bzr: ERROR: socket.gaierror: (-5, 'No address associated with hostname')

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 897, in run
    from_location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 773, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 650, in open
    t = get_transport(base, possible_transports=possible_transports)
  File "/usr/lib/python2.5/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1576, in get_transport
    base = directories.dereference(base)
  File "/usr/lib/python2.5/site-packages/bzrlib/directory_service.py", line 52, in dereference
    return service().look_up(name, url)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad/lp_directory.py", line 60, in look_up
    return self._resolve(url)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad/lp_directory.py", line 76, in _resolve
    result = resolve.submit(service)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad/lp_registration.py", line 180, in submit
    self._authenticated)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad/lp_registration.py", line 145, in send_request
    result = method(*method_params)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.5/xmlrpclib.py", line 1183, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1297, in send_content
    connection.endheaders()
  File "/usr/lib/python2.5/httplib.py", line 860, in endheaders
    self._send_output()
  File "/usr/lib/python2.5/httplib.py", line 732, in _send_output
    self.send(msg)
  File "/usr/lib/python2.5/httplib.py", line 699, in send
    self.connect()
  File "/usr/lib/python2.5/httplib.py", line 1134, in connect
    sock.connect((self.host, self.port))
  File "<string>", line 1, in connect
gaierror: (-5, 'No address associated with hostname')

bzr 1.3.1 on python 2.5.2.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'lp:mysql-server/5.1', 'mysql-5.1']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug

yan (yanzhou)
description: updated
Revision history for this message
Vincent Ladeuil (vila) wrote :

This is a duplicate of bug #271573

See https://bugs.edge.launchpad.net/python/+bug/186920/comments/31 for a possible way to address the problem, but noone has written the relevant fix so far.

Revision history for this message
Vincent Ladeuil (vila) wrote :

Damn paste, of course I meant it's a duplicate of bug #186920.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.