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

(Apple M1) OSError: dlopen(/Users/.../prometeo/prometeo/linalg/../lib/blasfeo/libblasfeo.so, 6): image not found #23

Open
vpatov opened this issue Nov 17, 2021 · 1 comment

Comments

@vpatov
Copy link

vpatov commented Nov 17, 2021

macOs BigSur 11.4
MacBookPro 13-inch, M1, 2020

I cloned the repo, installed with pip install -e ., ran ipython, and tried import prometeo. I get the error:

Python 3.8.8 (default, Apr 13 2021, 12:59:45)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import prometeo
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-371e560288bc> in <module>
----> 1 import prometeo

~/repos/lib/prometeo/prometeo/__init__.py in <module>
      1 from . import cgen
----> 2 from . import linalg
      3 from . import mem
      4 from . import auxl
      5 from . import cmdline

~/repos/lib/prometeo/prometeo/linalg/__init__.py in <module>
----> 1 from .pmat_blasfeo_wrapper import *
      2 from .pvec_blasfeo_wrapper import *
      3 from .pmat import *
      4 from .pvec import *
      5 from .blasfeo_wrapper import *

~/repos/lib/prometeo/prometeo/linalg/pmat_blasfeo_wrapper.py in <module>
----> 1 from .blasfeo_wrapper import *
      2 from ctypes import *
      3
      4
      5 bw.blasfeo_dgeex1.restype = c_double

~/repos/lib/prometeo/prometeo/linalg/blasfeo_wrapper.py in <module>
      2 import os
      3
----> 4 bw = CDLL(os.path.dirname(__file__) + '/../lib/blasfeo/libblasfeo.so')
      5
      6 class blasfeo_dmat(Structure):

~/opt/anaconda3/lib/python3.8/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error, winmode)
    379
    380         if handle is None:
--> 381             self._handle = _dlopen(self._name, mode)
    382         else:
    383             self._handle = handle

OSError: dlopen(/Users/vas/repos/lib/prometeo/prometeo/linalg/../lib/blasfeo/libblasfeo.so, 6): image not found
@zanellia
Copy link
Owner

Hi @vpatov! Sorry for the loose response. Indeed M1 is not supported at the moment. I should find some time to add the support soon...

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

2 participants