-
Notifications
You must be signed in to change notification settings - Fork 6.8k
‘make lint’ is broken under python2 #11224
Comments
@TaoLv thanks for submitting this issue. |
@TaoLv I am looking into this issue. Could you please update the "Steps to reproduce". The error I got when running "make lint" is below:
Sorry if my question sounds too silly, I am still new to this community. Thanks! |
@apeforest Thank you for asking that. That's the exact error I got. I have no idea why your traceback didn't give a full path of |
@TaoLv Thanks for your reply. I could reproduce the error you reported now. I will start working on the fix. |
@TaoLv The fix is actually in dmlc_core repo. I have opened a PR there: dmlc/dmlc-core#411. Maybe we should link this issue with the PR? |
@apeforest Thanks for your effort. Please feel free to do that. |
@apeforest The problem is still there for me. Seems it happens in dmlc-core, so why you change mshadow? |
@TaoLv please ignore my previous comment. That fix was for CI only. Sorry for the confusion. Nonetheless, I still don't seem to have the issue using python2 in my MXNet virtual env. Here is my virtual env package list:
And if I run |
I guess you also have a py3 environment which has cpplint and pylint installed there. Could you try to uninstall cpplint and pylint in py3 firstly before run make lint in py2?
|
@TaoLv I could reproduce the error following your comments. I have fixed it and verified in my local environment. PR is dmlc/dmlc-core#433 |
@TaoLv PR has been merged. Please pull the latest dmlc-core module and verify. Thanks. |
Thanks, @apeforest . I would like to close this issue after dmlc-core is updated to mxnet master branch. |
dmlc/dmlc-core#433 fixes the issue. Will mxnet's dmlc-core be updated any time soon? |
@Roshrini since you are working on the release of MXNet 1.3 - are you planning to pull in the updated dmlc-core into the new release? |
Yes I will be updating dmlc-core in the new release. |
@TaoLv dmlc-core has been pulled in. The fix is in incubator-mxnet now. @sandeep-krishnamurthy Could you close this issue? |
Thank you all for fixing this issue. @sandeep-krishnamurthy feel free to close. |
Description
https://github.com/dmlc/dmlc-core/blob/master/scripts/lint.py was changed to python3 by dmlc/dmlc-core#396
So if one is using python2 and pylint/cpplint are not presented in his python3 environment,
make lint
will fail.Environment info (Required)
Package used (Python/R/Scala/Julia):
python
For Scala user, please provide:
java -version
)mvn -version
)scala -version
)For R user, please provide R
sessionInfo()
:Build info (Required if built from source)
MXNet commit hash:
latest master branch
Build config:
make lint
Error Message:
Minimum reproducible example
(If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)
Steps to reproduce
(Paste the commands you ran that produced the error.)
What have you tried to solve it?
The text was updated successfully, but these errors were encountered: