ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pyxpcom
pyxpcom
[pyxpcom] pyxpcom installation issues
by Wolfgang Rosenauer other posts by this author
May 6 2009 4:01AM messages near this date
view in the new Beta List Site
Re: [pyxpcom] python and xulrunner - how to use | [pyxpcom] Accessing XBL elements from Python
Hi,

I'm trying to create an RPM for xulrunner+pyxpcom (based on 1.9.1
currently) but something still fails.

pyxpcom enabled Firefox shows about:python correctly but the other way
round (calling from python into xpcom) still fails:

wolfi@Hygiea:~>  python
Python 2.6 (r26:66714, Feb  3 2009, 20:49:49)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
> >> from xpcom import components
/usr/lib64/python2.6/site-packages/xpcom/__init__.py:54: DeprecationWarning:
BaseException.message has been deprecated as of Python 2.6
  self.message = message
Traceback (most recent call last):
  File "<stdin> ", line 1, in <module>
  File "/usr/lib64/python2.6/site-packages/xpcom/components.py", line
231, in
<module> 
    import shutdown
  File "/usr/lib64/python2.6/site-packages/xpcom/shutdown.py", line 51, in
<module> 
    class _ShutdownObserver:
  File "/usr/lib64/python2.6/site-packages/xpcom/shutdown.py", line 52, in
_ShutdownObserver
    _com_interfaces_ = interfaces.nsIObserver
  File "/usr/lib64/python2.6/site-packages/xpcom/components.py", line
103, in
__getattr__
    return self._get_one(attr)
  File "/usr/lib64/python2.6/site-packages/xpcom/components.py", line
153, in
_get_one
    raise xpcom.COMException(nsError.NS_ERROR_NO_INTERFACE, "The
interface '%s'
does not exist" % (name,))
xpcom.Exception/usr/lib64/python2.6/site-packages/xpcom/__init__.py:62:
DeprecationWarning: BaseException.message has been deprecated as of
Python 2.6
  message = self.message
: -2147467262 (-2147467262)

Actually only components seems to fail to import. The other stuff I
tried just returned w/o error.
I also have a bit of an issue testing this since I haven't found a
simple testcase of a python script which uses xpcom (without being a
component itself).

Any hint about the above?

Thanks,
 Wolfgang
_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved