This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
Building MXNet 1.9 from sources breaks mxnet.libinfo.find_include_path()
#20936
Labels
Description
environment:
python 3.8
ubuntu 18.04
gcc 7.5 g++7.5
mxnet1.9(build from source)
openmpi 4.0
horovod 0.24
instructions
HOROVOD_WITHOUT_TENSORFLOW=1 HOROVOD_WITHOUT_PYTORCH=1 HOROVOD_WITH_MXNET=1 pip install dist/horovod-0.24.1.tar.gz
HOROVOD_WITH_MXNET=1 pip install --no-cache-dir horovod[MXNET]
Horovod cannot be installed or compile
Error Message
Traceback (most recent call last):
File "", line 1, in
File "/root/miniconda3/lib/python3.8/site-packages/mxnet-1.9.0-py3.8.egg/mxnet/libinfo.py", line 108, in find_include_path
raise RuntimeError('Cannot find the MXNet include path in either ' + pip_incl_path +
RuntimeError: Cannot find the MXNet include path in either /root/miniconda3/lib/python3.8/site-packages/mxnet-1.9.0-py3.8.egg/mxnet/include/ or /root/miniconda3/lib/python3.8/site-packages/mxnet-1.9.0-py3.8.egg/mxnet/../../include/
note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of horovod
Moving to /root/miniconda3/bin/horovodrun
from /tmp/pip-uninstall-ddcttzju/horovodrun
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> horovod
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
To Reproduce
HOROVOD_WITHOUT_TENSORFLOW=1 HOROVOD_WITHOUT_PYTORCH=1 HOROVOD_WITH_MXNET=1 pip install dist/horovod-0.24.1.tar.gz
HOROVOD_WITH_MXNET=1 pip install --no-cache-dir horovod[MXNET]
Steps to reproduce
(Paste the commands you ran that produced the error.)
apt-get update
sudo apt-get install -y build-essential libopenblas-dev libopencv-dev graphviz
make -j8
sudo python setup.py install
export PYTHONPATH="/root/mxnet/python:$PYTHONPATH" and source ~/.bashrc
What have you tried to solve it?
Environment
python 3.8
ubuntu 18.04
gcc 7.5 g++7.5
mxnet1.9(build from source)
openmpi 4.0
horovod 0.24
Environment Information
The text was updated successfully, but these errors were encountered: