This repository was archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
‘make lint’ is broken under python2 #11224
Copy link
Copy link
Closed
Description
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)
What to do:
1. Download the diagnosis script from https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py
2. Run the script using `python diagnose.py` and paste its output here.
Package used (Python/R/Scala/Julia):
python
For Scala user, please provide:
- Java version: (
java -version) - Maven version: (
mvn -version) - Scala runtime if applicable: (
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:
Makefile:166: "USE_LAPACK disabled because libraries were not found"
Makefile:264: WARNING: Significant performance increases can be achieved by installing and enabling gperftools or jemalloc development packages
3rdparty/dmlc-core/scripts/lint.py mxnet cpp include src plugin cpp-package tests \
--exclude_path src/operator/contrib/ctc_include
Traceback (most recent call last):
File "3rdparty/dmlc-core/scripts/lint.py", line 13, in <module>
import cpplint
ImportError: No module named 'cpplint'
make: *** [cpplint] Error 1
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?
Reactions are currently unavailable