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
Re: [pyxpcom] import xpcom.components gives NS_ERROR_NO_INTERFACE
by Todd Whiteman other posts by this author
May 29 2008 3:07PM messages near this date
view in the new Beta List Site
Re: [pyxpcom] import xpcom.components gives NS_ERROR_NO_INTERFACE (fixed) | Re: [pyxpcom] import xpcom.components gives NS_ERROR_NO_INTERFACE
Philip Semanchuk wrote:
>  Hi all,
>  I'm on OS X and I installed pyxpcom by compiling Moz 1.9 from source.  
>  I'm close to getting it working, but I think something is missing from  
>  my environment.
>  
>  Python 2.5.1 (r251:54863, Nov 17 2007, 21:19:53)
>  [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
>  Type "help", "copyright", "credits" or "license" for more information.
>   >>> import xpcom
>   >>> import xpcom._xpcom
>  ###!!! ASSERTION: Failed to write xpti manifest!: 'Error', file  
>  xptiInterfaceInfoManager.cpp, line 1946
>  ###!!! ASSERTION: Failed to write xpti manifest!: 'Error', file  
>  xptiInterfaceInfoManager.cpp, line 1946
>  *** Registering components in: xpconnect
>  *** Registering ...
>  *** Registering components in: mozSpellCheckerModule
>  WARNING: Couldn't register mComponentsDir: file  
>  nsComponentManager.cpp, line 3276

Hi Philip,

This very much looks like an environment problem. If you want to use the 
Python interpreter outside of the Mozilla environment then you'll need 
to setup your shell to use exactly the same environment settings. It's 
probably the MOZILLA_FIVE_HOME variable you are missing:
http://developer.mozilla.org/en/docs/Building_PyXPCOM#Testing_PyXPCOM

Cheers,
Todd

_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Philip Semanchuk
Philip Semanchuk
Atul Varma
Philip Semanchuk
Atul Varma
Todd Whiteman
Philip Semanchuk
Todd Whiteman
Philip Semanchuk
Atul Varma
Philip Semanchuk
Atul Varma
Philip Semanchuk

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