"python setup.py install"を使用してWindows 7 Proにpycheckerをインストールしました。私はコマンドを使用して私のスクリプトでそれを実行すると:最初の実行時にPycheckerのインデックスエラーが発生しました
c:\Python26\Scripts\pychecker -#100 finaltest17.py
私は次のエラー/トレースバックを得る:
C:\Users\....\ToBeReleased>C:\Python26\python.exe C:\Python26\Lib\site-packages\pychecker\checker.py -#100 finaltest17.py
Processing module finaltest17 (finaltest17.py)...
Caught exception importing module finaltest17:
File "C:\Python26\Lib\site-packages\pychecker\pcmodules.py", line 533, in setupMainCode()
self.moduleName, self.moduleDir)
File "C:\Python26\Lib\site-packages\pychecker\pychecker\utils.py", line 184, in findModule()
handle, filename, smt = _q_find_module(p, path)
File "C:\Python26\Lib\site-packages\pychecker\pychecker\utils.py", line 162, in _q_find_module()
if not cfg().quixote:
File "C:\Python26\Lib\site-packages\pychecker\pychecker\utils.py", line 39, in cfg()
return _cfg[-1]
IndexError: list index out of range
Traceback (most recent call last):
File "C:\Python26\Lib\site-packages\pychecker\checker.py", line 364, in <module>
sys.exit(main(sys.argv))
File "C:\Python26\Lib\site-packages\pychecker\checker.py", line 337, in main
importWarnings = processFiles(files, _cfg, _print_processing)
File "C:\Python26\Lib\site-packages\pychecker\checker.py", line 270, in processFiles
loaded = pcmodule.load()
File "C:\Python26\Lib\site-packages\pychecker\pcmodules.py", line 477, in load
return utils.cfg().ignoreImportErrors
File "C:\Python26\Lib\site-packages\pychecker\pychecker\utils.py", line 39, in cfg
return _cfg[-1]
IndexError: list index out of range
誰もが素晴らしいだろう正しい方向に私を指すことができれば。
スチュワート
あなたが実行したと言ったコマンドは、エラートレースバックに示されているものと同じではありません。正しい出力を投稿してください。 –
エラートレースバックは、実行したコマンドで正しいです。 pycheckerは、 "Python26 \ Scripts \ pychecker - #100 finaltest17.py"を実行すると、 "C:¥Python26¥python.exe C:¥Python26¥Lib¥site-packages¥pychecker¥checker"コマンドを実行します。 .py - #100 finaltest17.py " –
あなたが実行したコマンドは' c:\ Python26 \ Scripts \ pychecker - #100 finaltest17.py'ですが、出力では 'C:\ Python26 \ pythonです。 exe C:\ Python26 \ Lib \ site-packages \ pychecker \ checker.py - #100 finaltest17.py' - 同じことではありません。 –