kyle-bersani / pythonext

Automatically exported from code.google.com/p/pythonext
Other
0 stars 1 forks source link

firefox17 and firefox18 complie success but start up error! #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1)
  c> start-msvc10.bat 
  # build for firefox17
  $ hg clone http://code.google.com/p/pythonext/ pythonext-hg
  $ cd pythonext-hg/build
  $ cmd /c build_pythonext.bat  
  # also build for firefox18 by change build_pythonext.py
  ...
  all successful!

2)install pythonext-18.0.1.20130126-WINNT_x86-msvc.xpi into firefox18.0.1

3)
  c> set NSPR_LOG_MODULES=nsNativeModuleLoader:5
  c> firefox -console

  Traceback (most recent call last):
  File "D:\dev2012\firefox\Data\profile\extensions\pythonext@mozdev.org\pylib\xpcom\server\__ini
t__.py", line 40, in <module>
    from policy import DefaultPolicy
  File "D:\dev2012\firefox\Data\profile\extensions\pythonext@mozdev.org\pylib\xpcom\server\polic
y.py", line 39, in <module>
    from xpcom import xpcom_consts, _xpcom, client, nsError, logger
<type 'exceptions.RuntimeError'>: Failed to find pyxpcom.dll
Creating an interface object to be used as a result failed

Traceback (most recent call last):
  File "D:\dev2012\firefox\Data\profile\extensions\pythonext@mozdev.org\pylib\xpcom\client\__ini
t__.py", line 41, in <module>
    from xpcom import xpt, COMException, nsError, logger
  File "D:\dev2012\firefox\Data\profile\extensions\pythonext@mozdev.org\pylib\xpcom\xpt.py", lin
e 72, in <module>
    import xpcom._xpcom
<type 'exceptions.RuntimeError'>: Failed to find pyxpcom.dll

when i see pyxpcom.dll, then
   c> dir pythonext@mozdev.org\pylib\
      pyxpcom.dll        133kb
      xpcom\xpcom.pyd    39kb

when i debug by import pdb;pdb.set_trace
 >>> import sys
 >>> sys.path    #include pythonext@mozdev.org\pylib\pyxpcom.dll directory
 >>> import xpcom._xpcom
 .... Failed to find pyxpcom.dll

this soft is greate work!
think you very much again!!!

Original issue reported on code.google.com by lylove12...@gmail.com on 26 Jan 2013 at 3:32