RuntimeError: could not load typelib

Bug #550289 reported by Michael Terry
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ldtp (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: ldtp

After a simple 'import ldtp', I get these errors:

mike@bongo:~$ python
Python 2.6.5 (r265:79063, Mar 20 2010, 14:41:07)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ldtp
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/ldtpd/__init__.py", line 29, in main
    from xmlrpc_daemon import XMLRPCLdtpd
  File "/usr/lib/pymodules/python2.6/ldtpd/xmlrpc_daemon.py", line 21, in <module>
    from core import Ldtpd
  File "/usr/lib/pymodules/python2.6/ldtpd/core.py", line 22, in <module>
    from pyatspi import findDescendant, Registry
  File "/usr/lib/python2.6/dist-packages/pyatspi/__init__.py", line 75, in <module>
    ORBit.load_typelib(TYPELIB_NAME)
RuntimeError: could not load typelib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/ldtp/__init__.py", line 257, in <module>
    _populateNamespace(globals())
  File "/usr/lib/pymodules/python2.6/ldtp/__init__.py", line 60, in _populateNamespace
    for method in client._client.system.listMethods():
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/pymodules/python2.6/ldtp/client.py", line 61, in request
    self, host, handler, request_body, verbose=0)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1235, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1349, in send_content
    connection.endheaders()
  File "/usr/lib/python2.6/httplib.py", line 904, in endheaders
    self._send_output()
  File "/usr/lib/python2.6/httplib.py", line 776, in _send_output
    self.send(msg)
  File "/usr/lib/python2.6/httplib.py", line 735, in send
    self.connect()
  File "/usr/lib/python2.6/httplib.py", line 716, in connect
    self.timeout)
  File "/usr/lib/python2.6/socket.py", line 514, in create_connection
    raise error, msg
socket.error: [Errno 111] Connection refused
>>>

ProblemType: Bug
Architecture: i386
Date: Sun Mar 28 10:53:34 2010
DistroRelease: Ubuntu 10.04
Package: ldtp 2.0.3-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-17.26-generic 2.6.32.10+drm33.1
SourcePackage: ldtp
Uname: Linux 2.6.32-17-generic i686

Revision history for this message
Michael Terry (mterry) wrote :
Revision history for this message
Nagappan Alagappan (nagappan) wrote :

I don't see this issue with my latest ldtp 2.0.4 package from 10.04 repository. I have no clues why this is happening.

Thanks

Revision history for this message
Nagappan Alagappan (nagappan) wrote :

Michael, can you try accerciser package and see whether its working ?

Revision history for this message
Michael Terry (mterry) wrote :

Huh. I tried import ldtp again today. Works on my machine. *But* doesn't work inside a 'jhbuild shell' if you are familiar. I think I was in one of those shells when I reported this.

Not sure why it wouldn't work then. But maybe this is INVALID?

Revision history for this message
Nagappan Alagappan (nagappan) wrote :

Eitan, do you guess what could cause this to fail in jhbuild environment ?

Revision history for this message
Ara Pulido (ara) wrote :

Michael, can you try with the version in my PPA? ppa:apulido/ppa

Changed in ldtp (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Terry (mterry) wrote :

No, Ara, still no luck with your PPA packages.

Changed in ldtp (Ubuntu):
status: Incomplete → New
Revision history for this message
Tony (only-anying) wrote :

ldtp2.0.6 with Ubuntu10.0.4, when ldtp work for one more hours, it'll report error "socket.error: [Errno 111] Connection refused", it's a critical bug, hope it can be fixed ASAP.

Revision history for this message
Nagappan Alagappan (nagappan) wrote :

We at VMware run the test for continuous 10 hours and have never faced such issue. We run the test in Ubuntu 9.10/10.04, openSUSE 11.2, Fedora 12, RHEL6 beta, SLED 11.

Thanks

zoushidong (499504620-j)
Changed in ldtp (Ubuntu):
status: New → Invalid
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.