How to fix:- libmxnet.so: cannot open shared object file: No such file or directory

Viewed 1746

I'm trying to install mxnet on Yocto (Rocko) for my 64-bit Armv8-A. I did pip3 install mxnet and it was successfully installed. It was installed in -

/usr/lib/python3.5/site-packages

I copied mxnet and mxnet-1.6.0.dist-info to -

/usr/lib64/python3.5/site-packages

Then, i tried import mxnet and it gave me the below errors-

ERROR:

>>> import mxnet
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.5/site-packages/mxnet/__init__.py", line 24, in <module>
    from .context import Context, current_context, cpu, gpu, cpu_pinned
  File "/usr/lib64/python3.5/site-packages/mxnet/context.py", line 24, in <module>
    from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
  File "/usr/lib64/python3.5/site-packages/mxnet/base.py", line 214, in <module>
    _LIB = _load_lib()
  File "/usr/lib64/python3.5/site-packages/mxnet/base.py", line 205, in _load_lib
    lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
  File "/usr/lib64/python3.5/ctypes/__init__.py", line 347, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/lib64/python3.5/site-packages/mxnet/libmxnet.so: cannot open shared object file: No such file or directory

I checked and there is libmxnet.so in my /usr/lib64/python3.5/site-packages/mxnet/ folder.

How do i solve this issue?

1 Answers

mxnet on ARM must be built from source, as per this GitHub issue.

Instructions on how to do this can be found here.

Related