2013-12-18 71 views
3

我嘗試推出:cfx run但我發現了以下錯誤:Firefox插件SDK錯誤

(C:\Users\michal smoczyk\Downloads\addon-sdk-1.14) C:\Users\michal smoczyk\Downloads\addon-sdk-1.14\my-addon>cfx run 
Using binary at 'C:\Program Files\Mozilla Firefox\firefox.exe'. 
Using profile at 'c:\users\michal~1\appdata\local\temp\tmpkcrwv7.mozrunner'. 
Traceback (most recent call last): 
    File "C:\Users\michal smoczyk\Downloads\addon-sdk-1.14\bin\cfx", line 33, in <module> 
    cuddlefish.run() 
    File "C:\Users\michal smoczyk\Downloads\addon-sdk-1.14\python-lib\cuddlefish\__init__.py", line 928, in run 
    bundle_sdk=options.bundle_sdk) 
    File "C:\Users\michal smoczyk\Downloads\addon-sdk-1.14\python-lib\cuddlefish\runner.py", line 706, in run_app 
    runner.start() 
    File "C:\Users\michal smoczyk\Downloads\addon-sdk-1.14\python-lib\mozrunner\__init__.py", line 529, in start 
    self.process_handler = run_command(self.command+self.cmdargs, self.env, **self.kp_kwargs) 
    File "C:\Users\michal smoczyk\Downloads\addon-sdk-1.14\python-lib\mozrunner\__init__.py", line 59, in run_command 
    return killableprocess.Popen(cmd, env=env, **killable_kwargs) 
    File "C:\Python27\lib\subprocess.py", line 709, in __init__ 
    errread, errwrite) 
TypeError: _execute_child() takes exactly 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:\Users\michal smoczyk\Downloads\addon-sdk-1.14\python-lib\cuddlefish\runner.py", line 534, in maybe_remove_outfile 
    os.remove(outfile) 
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'c:\\users\\michal~1\\appdata\\local\\temp\\harness-stdout-l8remz' 
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:\Users\michal smoczyk\Downloads\addon-sdk-1.14\python-lib\cuddlefish\runner.py", line 534, in maybe_remove_outfile 
    os.remove(outfile) 
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'c:\\users\\michal~1\\appdata\\local\\temp\\harness-stdout-l8remz' 

我的Firefox版本:26,我已經安裝了Python 2.7。操作系統:Windows Vista,SDK:1.14

回答

3

我建議從Mozilla Developer Hub :: Add-ons for Firefox網頁獲取最新版本的SDK(addon-sdk-1.15.zip)。另外請確保閱讀遵循隨附的自述文件中的說明(如果尚未)。它說

一個相關的事情是:

If you get an error when running cfx or have any other problems getting started, see the "Troubleshooting" guide at: https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/tutorials/troubleshooting.html

+0

它沒有工作,但附加組件生成器非常適合我。謝謝! – 0xhiryuu

0

嘗試安裝插件SDK 1.15與Python 2.6.6,然後做這個步驟

1-下載cp720

2 - 解壓縮zip文件。

3-複製或移動文件cp720.py到您的Python編碼文件夾。

Example: C:\Python26\Lib\encodings\