logilab-astng #38537 AttributeError: 'NoneType' object has no attribute 'split' [validation pending]
When I run pylint 0.21.2 under Python 2.7 on XP64 on a particular module it fails with "AttributeError: 'NoneType' object has no attribute 'split'" Hacking the code to output the astng exception prints the attached traceback. | |
priority | important |
---|---|
type | bug |
done in | <not specified> |
load left | 0.000 |
closed by | <not specified> |
attachment
Comments
-
2010/09/10 07:47, written by sthenault
-
2010/09/13 00:20, written by evgeny0
-
2010/09/13 00:24, written by evgeny0
-
2010/09/13 07:10, written by sthenault
-
2010/09/22 04:08, written by evgeny0
add commentwould it be possible to get the code leading to this error? It will be hard to track it down without some more context.
OK, I've managed to create a minimal repro. As it is, the file is processed OK. However, if you uncomment either of the import statements you get the error. The backtrace is quite different, so these may be separate bugs.
As an aside, when it runs successfully PyLint reports:
Your code has been rated at -25.00/10
-25? I don't know if this is intentional, but a negative rating sounds confusing to me.
don't reproduce with python 2.6 and I've no python 2.7 available on my computer yet. Will give it a try later.
I can repro on Linux as well (Ubuntu 10.04 x64)