-
Notifications
You must be signed in to change notification settings - Fork 6.8k
47 undefined variable errors with Pylint #11904
Comments
Thanks. I am learning more about pylint from your approach here.
Have you tried doing python3 -m pylint ... ? basestring, long, raw_input, unicode, xrange, etc. are defined names in Python 2 but not in Python 3. |
@cclauss I tried Python3 too. The only difference I saw was that the undefined errors related to exceptions didn't occur. |
Fixes for 30 errors have been merged. The ones remaining are:
./docs/mxdoc.py:75:16: | root_path | PR #11990 |
flake8 (on Python 3) moved from finding 22 undefined names down to 19. #8270 (comment) |
ModuleNotFoundError was added in Python 3.6 so this will be raised if pylint (or flake8) is running on Python <3.6. Change ModuleNotFoundError to ImportError to be compatible with all currently supported versions of Python. |
All the errors in this list have been fixed. Closing this bug. |
Pylint finds no undefined names when running on Python 2 and when running on Python 3? |
The more recent lint scans that I've been doing are with Python3 - didn't find any new errors. |
See #12200 !! |
PyLint is not currently configured to find issues with Python files in ./amalgamation, ./tests, etc... |
Description
Running Pylint on incubator-mxnet with undefined-variable enabled, results in 52 errors. This could lead to NameError on execution.
Steps to reproduce
Package used (Python/R/Scala/Julia):
I'm using Python2
Build info (Required if built from source)
MXNet commit hash:
f5b95b0
Error Message:
What have you tried to solve it?
The text was updated successfully, but these errors were encountered: