1

当我在导入不存在的模块上使用 PyChecker 时遇到以下问题。我用 --keepgoing 和 --only 标志调用了 PyChecker:

PyChecker --keepgoing --only foo.py

现在我遇到了这个问题:

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

4

0 回答 0