Menu

#321 PyChecker fails on Windows

open
nobody
None
5
2013-01-25
2013-01-25
No

PyChecker appears to make some invalid assumptions on Windows. I had to manually modify the pychecker.bat script
from:
C:\Program Files (x86)\Python27\python.exe C:\Program Files (x86)\Python27\Lib\site-packages\pychecker\checker.py %*
to:
"C:\Program Files (x86)\Python27\python.exe" "C:\Program Files (x86)\Python27\Lib\site-packages\pychecker\checker.py" %*
since the spaces in the install path directories broke the script.

After this, I tried testing pychecker.bat on the included test files, but the code seems to fail:
C:\Program Files (x86)\pychecker-0.8.19\test>pychecker -q *.py

C:\Program Files (x86)\pychecker-0.8.19\test>"C:\Program Files (x86)\Python27\python.exe" "C:\Program Files (x86)\Python27\Lib\site-packages\pychecker\checker.py" -q *.py
Processing module test_dict (*.py)...
ImportError: No module named common

Warnings...

test_dict:1: NOT PROCESSED UNABLE TO IMPORT

Note that python and its scripts directory are both in my Windows path.

Discussion


Log in to post a comment.