-
Notifications
You must be signed in to change notification settings - Fork 8
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
fail to import pyBBarolo #37
Comments
Hello, it looks like the library is not correctly compiled. How did you install pyBBarolo? |
I just follow the your github. ./configure Here is all the infomation of the installation.
Configuration Summary: configure:CONGRATULATIONS! It seems your computer has the needed to compile BBarolo!
|
Sorry, I can not reproduce this error on my machines, so it is difficult to figure out what's happening. It could be that the code is being compiled with the default CLANG on your Mac? The latest versions of this compiler seem to fail in compiling the code correctly. Could you try to recompile the code using the GNU-g++? |
AttributeError Traceback (most recent call last)
Input In [14], in <cell line: 2>()
1 # from pyBBarolo import FitMod3D
----> 2 import pyBBarolo
File ~/anaconda3/lib/python3.9/site-packages/pyBBarolo/init.py:3, in
1 all = ['GalMod','GalWind','FitMod3D','Search','FitMod2D','Ellprof']
----> 3 from .pyBBarolo import *
4 from ._version import version as version
File ~/anaconda3/lib/python3.9/site-packages/pyBBarolo/pyBBarolo.py:25, in
23 import os,sys
24 import numpy as np
---> 25 from .BB_interface import libBB
26 from astropy.io import fits
29 def reshapePointer (p, shape):
File ~/anaconda3/lib/python3.9/site-packages/pyBBarolo/BB_interface.py:43, in
39 array_1d_double = ndpointer(dtype=np.double, ndim=1,flags="CONTIGUOUS")
42 # Class Cube interface #################################################################
---> 43 libBB.Cube_new.restype = c_void_p
44 libBB.Cube_new.argtypes = [c_char_p]
45 libBB.Cube_delete.restype = None
File ~/anaconda3/lib/python3.9/ctypes/init.py:395, in CDLL.getattr(self, name)
393 if name.startswith('') and name.endswith(''):
394 raise AttributeError(name)
--> 395 func = self.getitem(name)
396 setattr(self, name, func)
397 return func
File ~/anaconda3/lib/python3.9/ctypes/init.py:400, in CDLL.getitem(self, name_or_ordinal)
399 def getitem(self, name_or_ordinal):
--> 400 func = self._FuncPtr((name_or_ordinal, self))
401 if not isinstance(name_or_ordinal, int):
402 func.name = name_or_ordinal
AttributeError: dlsym(0x30884a6e0, Cube_new): symbol not found
The text was updated successfully, but these errors were encountered: