开发者

Pychecker --keepgoing (import) problem

开发者 https://www.devze.com 2023-03-29 01:45 出处:网络
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:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消