Repository navigation
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 MessageTo 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 |
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. |
|
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:
|
|
@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 |
|
Thanks for the reply @szha. After adding |
|
I am also including the CMakeOutput.log: |
|
@szha I still have an error. Can you help me? |
|
You can update the config file to disable onednn |
|
@leezu Disabling |
|
Also, here are some stats: command: command: |
|
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 |
|
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. |
|
@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. |
|
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. |



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-devHere is a screenshot of it working:
This should take care of the issue.