Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install on mac m1 #164

Open
kayleeliyx opened this issue Oct 19, 2022 · 0 comments
Open

Install on mac m1 #164

kayleeliyx opened this issue Oct 19, 2022 · 0 comments

Comments

@kayleeliyx
Copy link

kayleeliyx commented Oct 19, 2022

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant