hello_car.py successfully runningI install the openmpi-bin, where terminal tell me successfully installed, however nothing show up after I check echo $LD_LIBRARY_PATH, I suppose this is the key for the bug.
(a) I later set the PATH by export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu, and after type echo $LD_LIBRARY_PATH got print as :/usr/lib/x86_64-linux-gnu.
(b) by ls /usr/lib/x86_64-linux-gn/libmpi.so*, I got libmpi.so.12 libmpi.so.20 libmpi.so.20.10.1.
I install Airsim by pip install https://cntk.ai/PythonWheel/CPU-Only/cntk-2.5-cp27-cp27mu-linux_x86_64.whlwithin py2 conda virtual environment, the terminal says it successfully pass.
Currently the bugs shown as
after type in test python -c "import cntk; print(cntk.__version__)", error shown as below
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/jet/anaconda3/envs/py2/lib/python2.7/site-packages/cntk/__init__.py", line 17, in <module>
from . import cntk_py
File "/home/jet/anaconda3/envs/py2/lib/python2.7/site-packages/cntk/cntk_py.py", line 21, in <module>
_cntk_py = swig_import_helper()
File "/home/jet/anaconda3/envs/py2/lib/python2.7/site-packages/cntk/cntk_py.py", line 20, in swig_import_helper
return importlib.import_module('_cntk_py')
File "/home/jet/anaconda3/envs/py2/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: libmpi_cxx.so.1: cannot open shared object file: No such file or directory
Several solution I tried so far and would not work:
conda install -c conda-forge openmpi Any idea about where openmpi-bin is located, and how to set up LD_LIBRARY_PATH?
solution:
libmpi_cxx.so.1 errror -> follow refer, sudo ln -s /usr/lib/x86_64-linux-gnu/libmpi_cxx.so.20 /usr/lib/x86_64-linux-gnu/libmpi_cxx.so.1 and sudo ln -s /usr/lib/x86_64-linux-gnu/libmpi.so.20.10.1 /usr/lib/x86_64-linux-gnu/libmpi.so.12 and update the path as export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu.libmklml.so. -> install by conda install -c anaconda mklml and update path by export LD_LIBRARY_PATH=/home/jet/anaconda3/envs/py2/lib:$LD_LIBRARY_PATH./home/jet/anaconda3/envs/py2/lib/python2.7/site-packages/cntk/cntk_py_init.py:47: UserWarning: Unsupported Linux distribution (ubuntu-18.04). CNTK supports Ubuntu 16.04 and above, only.
warnings.warn('Unsupported Linux distribution (%s-%s). CNTK supports Ubuntu 16.04 and above, only.' % (__my_distro__, __my_distro_ver__))
However, new problem is DQNcar.py cannot run through, with bugs __MemoryError__ as
/home/jet/anaconda3/envs/py2/lib/python2.7/site-packages/cntk/cntk_py_init.py:47: UserWarning: Unsupported Linux distribution (ubuntu-18.04). CNTK supports Ubuntu 16.04 and above, only.
warnings.warn('Unsupported Linux distribution (%s-%s). CNTK supports Ubuntu 16.04 and above, only.' % (__my_distro__, __my_distro_ver__))
Connected!
Client Ver:1 (Min Req: 1), Server Ver:1 (Min Req: 1)
Traceback (most recent call last):
File "DQNcar.py", line 505, in <module>
agent = DeepQAgent((NumBufferFrames, SizeRows, SizeCols), NumActions, monitor=True)
File "DQNcar.py", line 270, in __init__
self._memory = ReplayMemory(memory_size, input_shape[1:], 4)
File "DQNcar.py", line 35, in __init__
self._states = np.zeros((size,) + sample_shape, dtype=np.float32)
MemoryError
Any body got a idea?
solved
What was the solution?
@TarrySingh look at the msg error displayed when you run cntk
python -c "import cntk; print(cntk.__version__)"
if you see
ImportError: libmpi_cxx.so.1: cannot open shared object file: No such file or directory
Search in your disk
find ~ -name libmpi*
if it exists, thats good, else install
conda install openmpi
Rerun some search to find libmpi* folder.
Compare the differences between extension. Create symlink then export LD_LIBRARY_PATH if needed.
Most helpful comment
solution:
libmpi_cxx.so.1errror -> follow refer,sudo ln -s /usr/lib/x86_64-linux-gnu/libmpi_cxx.so.20 /usr/lib/x86_64-linux-gnu/libmpi_cxx.so.1andsudo ln -s /usr/lib/x86_64-linux-gnu/libmpi.so.20.10.1 /usr/lib/x86_64-linux-gnu/libmpi.so.12and update the path asexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu.libmklml.so. -> install byconda install -c anaconda mklmland update path byexport LD_LIBRARY_PATH=/home/jet/anaconda3/envs/py2/lib:$LD_LIBRARY_PATH.It pass import cntk with warning
However, new problem is
DQNcar.pycannot run through, with bugs __MemoryError__ asAny body got a idea?