RuntimeError: Cannot find the MXNet library. #20148
-
DescriptionI 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 Hope someone has a solution :) Error Message
To Reproducehttps://mxnet.apache.org/get_started/build_from_source#install-mxnet-for-python Steps to reproduce
What have you tried to solve it?
After running, it gives me the output that I have no clue what to do? 😕 EnvironmentWe recommend using our script for collecting the diagnostic information with the following command Environment Information
|
Beta Was this translation helpful? Give feedback.
Replies: 13 comments
-
Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue. |
Beta Was this translation helpful? Give feedback.
-
Update: After a little more exploration, I found out that I forgot the compiling step, and that is why I can't find
Here are the steps to reproduce:
|
Beta Was this translation helpful? Give feedback.
-
@Raunak-Singh-Inventor the error says nvcc not found, which means cmake is trying to look for CUDA support on your raspberry pi. I think the fix would be to simply turn the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply @szha. After adding
|
Beta Was this translation helpful? Give feedback.
-
I am also including the CMakeOutput.log: |
Beta Was this translation helpful? Give feedback.
-
@szha I still have an error. Can you help me? |
Beta Was this translation helpful? Give feedback.
-
You can update the config file to disable onednn |
Beta Was this translation helpful? Give feedback.
-
@leezu Disabling
|
Beta Was this translation helpful? Give feedback.
-
Also, here are some stats: command:
command:
|
Beta Was this translation helpful? Give feedback.
-
You may not have enough memory to use parallel build. Try Btw, it will be much faster for you to cross-compile libmxnet from your dev desktop, which likely has faster cpu and more memory then the RPi. (Assuming that you'd not be afraid to learn about cross-compile) Cross-compile build env: Cross-compile build command |
Beta Was this translation helpful? Give feedback.
-
I am cross-compiling
Here is my Dockerfile with the base image of
@leezu Can you give me a complete build env dockerfile? It would be helpful. |
Beta Was this translation helpful? Give feedback.
-
@Raunak-Singh-Inventor the complete dockerfile is linked above. It's tested on CI every day. Also note you're not required to use Docker here. I'm just providing it for your reference so you can see the dependencies. Generally you can use any Linux system to do the cross-compilation. I'd discourage the use of Windows. |
Beta Was this translation helpful? Give feedback.
-
This finally worked for me: numpy/numpy#14772 (comment). It seems that it is a numpy issue, not a mxnet library issue.After building from source to install the mxnet library on raspberry pi.
Here is a screenshot of it working: This should take care of the issue. |
Beta Was this translation helpful? Give feedback.
This finally worked for me: numpy/numpy#14772 (comment).
It seems that it is a numpy issue, not a mxnet library issue.After building from source to install the mxnet library on raspberry pi.
sudo apt-get install libatlas-base-dev
Here is a screenshot of it working:
This should take care of the issue.