I met this error while import datawig. However, I successfully installed the datawig. I have also installed mxnet.
>>> import datawig
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/li/Downloads/Loan-Prediction-Classification-master/datawig/datawig/__init__.py", line 2, in <module>
from .column_encoders import CategoricalEncoder, BowEncoder, NumericalEncoder, SequentialEncoder
File "/Users/li/Downloads/Loan-Prediction-Classification-master/datawig/datawig/column_encoders.py", line 26, in <module>
import mxnet as mx
File "/Users/li/miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/__init__.py", line 24, in <module>
from .context import Context, current_context, cpu, gpu, cpu_pinned
File "/Users/li/miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/context.py", line 24, in <module>
from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
File "/Users/li/miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/base.py", line 214, in <module>
_LIB = _load_lib()
File "/Users/li/miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/base.py", line 205, in _load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
File "/Users/li/miniforge3/envs/np_veclib/lib/python3.9/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/karlieli/miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/libmxnet.so, 0x0006): tried: '/Users/li/miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/libmxnet.so' (not a mach-o file)
I also got this error while running pytest example.
(np_veclib) karlieli@Karlies-MacBook-Pro datawig % python -m pytest
ImportError while loading conftest '/Users/li/Downloads/Loan-Prediction-Classification-master/datawig/test/conftest.py'.
test/conftest.py:19: in <module>
import mxnet as mx
../../../miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/__init__.py:24: in <module>
from .context import Context, current_context, cpu, gpu, cpu_pinned
../../../miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/context.py:24: in <module>
from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
../../../miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/base.py:214: in <module>
_LIB = _load_lib()
../../../miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/base.py:205: in _load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
../../../miniforge3/envs/np_veclib/lib/python3.9/ctypes/__init__.py:374: in __init__
self._handle = _dlopen(self._name, mode)
E OSError: dlopen(/Users/li/miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/libmxnet.so, 0x0006): tried: '/Users/li/miniforge3/envs/np_veclib/lib/python3.9/site-packages/mxnet/libmxnet.so' (not a mach-o file)
I met this error while import datawig. However, I successfully installed the datawig. I have also installed mxnet.
I also got this error while running
pytest
example.