Pychecker --keepgoing (import) problem
i encountered the following problem when i use PyCh开发者_如何转开发ecker on modules with an import that is not existing. I called PyChecker with the --keepgoing and --only flags:
PyChecker --keepgoing --only foo.py
Now i am getting this problem:
Processing module foo(foo.py)...
Can't import module: foo.foo_.*, ignoring.
__Caught exception importing module ppms:
____File "Python27\Lib\site-packages\pychecker\pcmodules.py", line 540, in setupMainCode()
______module = imp.load_module(self.moduleName, handle, filename, smt)
____File "foo.py", line 1, in <module>()
______from foo.foo_ import *
__TypeError: 'NoneType' object does not support indexing
Warnings...
None
精彩评论