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
|