Raunak-Singh-Inventor opened a new issue #20144: URL: https://github.com/apache/incubator-mxnet/issues/20144
## Description I am trying to build MxNet from source on my 32-bit Raspberry Pi 4. It is giving me the error mentioned below. I think the bug is caused because it can't find `libmxnet.so` in `mxnet/python/mxnet/`. Here is the output of `ls mxnet/python/mxnet/` from my home directory where I cloned the repo.  Hope someone has a solution :) ### Error Message ``` Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Obtaining file:///home/pi/Downloads/apache-mxnet-src-1.4.0-incubating/python ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/pi/Downloads/apache-mxnet-src-1.4.0-incubating/python/setup.py'"'"'; __file__='"'"'/home/pi/Downloads/apache-mxnet-src-1.4.0-incubating/python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-9ni2u7t1 cwd: /home/pi/Downloads/apache-mxnet-src-1.4.0-incubating/python/ Complete output (12 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/pi/Downloads/apache-mxnet-src-1.4.0-incubating/python/setup.py", line 47, in <module> LIB_PATH = libinfo['find_lib_path']() File "/home/pi/Downloads/apache-mxnet-src-1.4.0-incubating/python/mxnet/libinfo.py", line 74, in find_lib_path 'List of candidates:\n' + str('\n'.join(dll_path))) RuntimeError: Cannot find the MXNet library. List of candidates: /home/pi/Downloads/apache-mxnet-src-1.4.0-incubating/python/mxnet/libmxnet.so /home/pi/Downloads/apache-mxnet-src-1.4.0-incubating/python/mxnet/../../lib/libmxnet.so /home/pi/Downloads/apache-mxnet-src-1.4.0-incubating/python/mxnet/../../build/libmxnet.so ../../../libmxnet.so ---------------------------------------- WARNING: Discarding file:///home/pi/Downloads/apache-mxnet-src-1.4.0-incubating/python. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ``` ## To Reproduce [https://mxnet.apache.org/get_started/build_from_source#install-mxnet-for-python](https://mxnet.apache.org/get_started/build_from_source#install-mxnet-for-python) ### Steps to reproduce 1. `git clone --recursive https://github.com/apache/incubator-mxnet mxnet` 2. `cd mxnet` 3. `sudo apt-get update` 4. `sudo apt-get install -y build-essential git ninja-build ccache libopenblas-dev libopencv-dev cmake` 5. `sudo apt install gfortran` 6. `python3 -m pip install --user -e ./python` ## What have you tried to solve it? 1. Looking for `libmxnet.so` in the directory. It was not there. 2. I tried downloading `libmxnet.so` from [https://github.com/awslabs/mxnet-lambda/blob/master/src/mxnet/libmxnet.so](https://github.com/awslabs/mxnet-lambda/blob/master/src/mxnet/libmxnet.so). Then I ran some commands in the terminal: - `mv Downloads/libmxnet.so mxnet/python/mxnet/` - `cd mxnet/python/mxnet/` - `ls` - `cd && cd mxnet` - `python3 -m pip install --user -e ./python` After running, it gives me the output that `Successfully installed mxnet`, but when I try to `import mxnet` in python3, it says: `libf77blas.so.3: cannot open shared object file: No such file or directory` I have no clue what to do? 😕 ## Environment ***We recommend using our script for collecting the diagnostic information with the following command*** `curl --retry 10 -s https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py | python3` <details> <summary>Environment Information</summary> ``` ----------Python Info---------- Version : 3.7.3 Compiler : GCC 8.3.0 Build : ('default', 'Jul 25 2020 13:03:44') Arch : ('32bit', 'ELF') ------------Pip Info----------- Version : 21.0.1 Directory : /home/pi/.local/lib/python3.7/site-packages/pip ----------MXNet Info----------- An error occured trying to import mxnet. This is very likely due to missing missing or incompatible library files. Traceback (most recent call last): File "<stdin>", line 96, in check_mxnet AttributeError: module 'mxnet' has no attribute '__version__' ----------System Info---------- Platform : Linux-5.10.17-v7l+-armv7l-with-debian-10.8 system : Linux node : raspberrypi release : 5.10.17-v7l+ version : #1403 SMP Mon Feb 22 11:33:35 GMT 2021 ----------Hardware Info---------- machine : armv7l processor : Architecture: armv7l Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 Vendor ID: ARM Model: 3 Model name: Cortex-A72 Stepping: r0p3 CPU max MHz: 1500.0000 CPU min MHz: 600.0000 BogoMIPS: 270.00 Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 ----------Network Test---------- Setting timeout: 10 Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0104 sec, LOAD: 0.0684 sec. Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0031 sec, LOAD: 0.0587 sec. Error open Gluon Tutorial(cn): https://zh.gluon.ai, <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1056)>, DNS finished in 0.003855466842651367 sec. Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0018 sec, LOAD: 0.1406 sec. Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0050 sec, LOAD: 0.2012 sec. Error open Conda: https://repo.continuum.io/pkgs/free/, HTTP Error 403: Forbidden, DNS finished in 0.006901264190673828 sec. ----------Environment---------- ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
