python - can't run my developed firefox add-on using cfx run -


i'm trying start developing firefox add-on using tutorial following problem appears

(c:\addon-sdk-1.15) c:\users\khaled\my-addon>cfx run using binary @ 'c:\program files (x86)\mozilla firefox\firefox.exe'. using profile @ 'c:\users\khaled\appdata\local\temp\tmph_o0ca.mozrunner'. traceback (most recent call last):   file "c:\addon-sdk-1.15\bin\cfx", line 33, in <module>     cuddlefish.run()   file "c:\addon-sdk-1.15\python-lib\cuddlefish\__init__.py", line 945, in run     pkgdir=options.pkgdir)   file "c:\addon-sdk-1.15\python-lib\cuddlefish\runner.py", line 705, in run_app      runner.start()   file "c:\addon-sdk-1.15\python-lib\mozrunner\__init__.py", line 532, in start     self.process_handler = run_command(self.command+self.cmdargs, self.env, **se lf.kp_kwargs)   file "c:\addon-sdk-1.15\python-lib\mozrunner\__init__.py", line 59, in run_com mand     return killableprocess.popen(cmd, env=env, **killable_kwargs)   file "c:\python27\lib\subprocess.py", line 709, in __init__     errread, errwrite)     typeerror: _execute_child() takes 17 arguments (18 given) error in atexit._run_exitfuncs: traceback (most recent call last):   file "c:\python27\lib\atexit.py", line 24, in _run_exitfuncs     func(*targs, **kargs)   file "c:\addon-sdk-1.15\python-lib\cuddlefish\runner.py", line 533, in maybe_r emove_outfile     os.remove(outfile) windowserror: [error 32] process cannot access file because being used process: 'c:\\users\\khaled\\appdata\\local\\temp\\harness-stdou t-j8zqpd' error in sys.exitfunc: traceback (most recent call last):   file "c:\python27\lib\atexit.py", line 24, in _run_exitfuncs     func(*targs, **kargs)   file "c:\addon-sdk-1.15\python-lib\cuddlefish\runner.py", line 533, in maybe_r emove_outfile     os.remove(outfile) windowserror: [error 32] process cannot access file because being used process: 'c:\\users\\khaled\\appdata\\local\\temp\\harness-stdou t-j8zqpd' 

i'm using python 2.6.6 , tryed 2.7.6 same problem appears ... suggestion??

after searching found problem : add-on sdk in incompatible python 2.7.6 have use python 2.6.6 , handle error while using python 2.6.6

(c:\addon-sdk-1.15) c:\users\khaled\my-addon>cfx run traceback (most recent call last):   file "c:\addon-sdk-1.15\bin\cfx", line 33, in <module>     cuddlefish.run()   file "c:\addon-sdk-1.15\python-lib\cuddlefish\__init__.py", line 945, in run     pkgdir=options.pkgdir)   file "c:\addon-sdk-1.15\python-lib\cuddlefish\runner.py", line 639, in run_app      print >>sys.stderr, "using binary @ '%s'." % runner.binary lookuperror: unknown encoding: cp720 error in atexit._run_exitfuncs: traceback (most recent call last):   file "c:\python26\lib\atexit.py", line 24, in _run_exitfuncs     func(*targs, **kargs)   file "c:\addon-sdk-1.15\python-lib\cuddlefish\runner.py", line 533, in maybe_r emove_outfile     os.remove(outfile) windowserror: [error 32] process cannot access file because being used process: 'c:\\users\\khaled\\appdata\\local\\temp\\harness-stdou t-ecam39' error in sys.exitfunc: traceback (most recent call last):   file "c:\python26\lib\atexit.py", line 24, in _run_exitfuncs     func(*targs, **kargs)   file "c:\addon-sdk-1.15\python-lib\cuddlefish\runner.py", line 533, in maybe_r emove_outfile     os.remove(outfile) windowserror: [error 32] process cannot access file because being used process: 'c:\\users\\khaled\\appdata\\local\\temp\\harness-stdou t-ecam39'  

the solution:

1- download cp720

2- unzip zip file.

3- copy or move file cp720.py python encodings folder.

 example: c:\python26\lib\encodings\ 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -