But when I import twice, it seems work:

$ python
Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25) 
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from xpcom import components
/var/lib/python-support/python2.5/xpcom/xpt.py:72: RuntimeWarning: tp_compare 
didn't return -1 or -2 for exception
  import xpcom._xpcom
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/var/lib/python-support/python2.5/xpcom/components.py", line 39, in 
<module>
    import xpt
  File "/var/lib/python-support/python2.5/xpcom/xpt.py", line 72, in <module>
    import xpcom._xpcom
  File "/var/lib/python-support/python2.5/xpcom/server/__init__.py", line 40, 
in <module>
    from policy import DefaultPolicy
  File "/var/lib/python-support/python2.5/xpcom/server/policy.py", line 38, in 
<module>
    from xpcom import xpcom_consts, _xpcom, client, nsError, ServerException, 
COMException
  File "/var/lib/python-support/python2.5/xpcom/client/__init__.py", line 40, 
in <module>
    from xpcom import xpt, COMException, nsError
ImportError: cannot import name xpt
>>> from xpcom import components
>>> print components
<module 'xpcom.components' from 
'/var/lib/python-support/python2.5/xpcom/components.pyc'>
>>>

-- 
python-xpcom import error
https://bugs.launchpad.net/bugs/111833
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to