[LDTP-Dev] [Bug 614249] New: Connection refused when importing ldtp module
LDTP (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Mar 29 06:08:40 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=614249
LDTP | ldtp2 | 2.0.0
Summary: Connection refused when importing ldtp module
Classification: Other
Product: LDTP
Version: 2.0.0
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: ldtp2
AssignedTo: ldtp-dev at lists.freedesktop.org
ReportedBy: apulido at gmail.com
QAContact: ldtp-dev at lists.freedesktop.org
GNOME target: ---
GNOME version: ---
In Ubuntu 10.04, when I import ldtp module, I get a connection refused error.
After two or three attempts the module is correctly imported.
This is happening with ldtp 2.0.4, but it was happening with 2.0.3 as well.
In [1]: import ldtp
** (-c:4829): WARNING **: Trying to register gtype 'WnckWindowState' as enum
when in fact it is of type 'GFlags'
** (-c:4829): WARNING **: Trying to register gtype 'WnckWindowActions' as enum
when in fact it is of type 'GFlags'
** (-c:4829): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask'
as enum when in fact it is of type 'GFlags'
---------------------------------------------------------------------------
error Traceback (most recent call last)
/home/ara/curro/mago/trunk2/<ipython console> in <module>()
/usr/lib/pymodules/python2.6/ldtp/__init__.py in <module>()
255 return None
256
--> 257 _populateNamespace(globals())
258 _pollEvents = PollEvents()
259 thread.start_new_thread(_pollEvents.run, ())
/usr/lib/pymodules/python2.6/ldtp/__init__.py in _populateNamespace(d)
58
59 def _populateNamespace(d):
---> 60 for method in client._client.system.listMethods():
61 if method.startswith('system.'):
62 continue
/usr/lib/python2.6/xmlrpclib.pyc in __call__(self, *args)
1197 return _Method(self.__send, "%s.%s" % (self.__name, name))
1198 def __call__(self, *args):
-> 1199 return self.__send(self.__name, args)
1200
1201 ##
/usr/lib/python2.6/xmlrpclib.pyc in __request(self, methodname, params)
1487 self.__handler,
1488 request,
-> 1489 verbose=self.__verbose
1490 )
1491
/usr/lib/pymodules/python2.6/ldtp/client.pyc in request(self, host, handler,
request_body, verbose)
59 # Retry connecting again
60 return xmlrpclib.Transport.request(
---> 61 self, host, handler, request_body, verbose=0)
62 raise
63 except xmlrpclib.Fault, e:
/usr/lib/python2.6/xmlrpclib.pyc in request(self, host, handler, request_body,
verbose)
1233 self.send_host(h, host)
1234 self.send_user_agent(h)
-> 1235 self.send_content(h, request_body)
1236
1237 errcode, errmsg, headers = h.getreply()
/usr/lib/python2.6/xmlrpclib.pyc in send_content(self, connection,
request_body)
1347 connection.putheader("Content-Type", "text/xml")
1348 connection.putheader("Content-Length", str(len(request_body)))
-> 1349 connection.endheaders()
1350 if request_body:
1351 connection.send(request_body)
/usr/lib/python2.6/httplib.pyc in endheaders(self)
902 raise CannotSendHeader()
903
--> 904 self._send_output()
905
906 def request(self, method, url, body=None, headers={}):
/usr/lib/python2.6/httplib.pyc in _send_output(self)
774 msg = "\r\n".join(self._buffer)
775 del self._buffer[:]
--> 776 self.send(msg)
777
778 def putrequest(self, method, url, skip_host=0,
skip_accept_encoding=0):
/usr/lib/python2.6/httplib.pyc in send(self, str)
733 if self.sock is None:
734 if self.auto_open:
--> 735 self.connect()
736 else:
737 raise NotConnected()
/usr/lib/python2.6/httplib.pyc in connect(self)
714 """Connect to the host and port specified in __init__."""
715 self.sock = socket.create_connection((self.host,self.port),
--> 716 self.timeout)
717
718 if self._tunnel_host:
/usr/lib/python2.6/socket.pyc in create_connection(address, timeout)
510 except error, msg:
511 if sock is not None:
512 sock.close()
513
--> 514 raise error, msg
error: [Errno 111] Connection refused
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the LDTP-dev
mailing list