Hello. I am trying to run a script (hotokezaka_bns_inference_test.py) on my Mac and am currently unable to do so; I've been stuck on this error for about a week, and am wondering if you can provide any insight:
Traceback (most recent call last):
File "/Users/meem/Desktop/kn_pe_em/gemma-dev-main/hotokezaka_bns_inference_test.py", line 1, in
import bilby
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/init.py", line 21, in
from . import core, gw, hyper
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/init.py", line 1, in
from . import grid, likelihood, prior, result, sampler, series, utils, fisher
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/grid.py", line 6, in
from .prior import Prior, PriorDict
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/prior/init.py", line 1, in
from .analytical import *
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/prior/analytical.py", line 2, in
from scipy.special import (
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/scipy/special/init.py", line 826, in
from . import _basic
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/scipy/special/_basic.py", line 22, in
from ._multiufuncs import (assoc_legendre_p_all,
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/scipy/special/_multiufuncs.py", line 142, in
sph_legendre_p = MultiUFunc(
^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/scipy/special/_multiufuncs.py", line 41, in init
raise ValueError("All ufuncs must have type numpy.ufunc."
ValueError: All ufuncs must have type numpy.ufunc. Received (<ufunc 'sph_legendre_p'>, <ufunc 'sph_legendre_p'>, <ufunc 'sph_legendre_p'>)
If it's relevant, I was also receiving this message previously, but now I've 'graduated' to only receiving the above error:
Traceback (most recent call last):
File "/Users/meem/Desktop/kn_pe_em/gemma-dev-main/Amelia.py", line 109, in
result = bilby.run_sampler(
^^^^^^^^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/sampler/init.py", line 310, in run_sampler
result = sampler.run_sampler()
^^^^^^^^^^^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/sampler/base_sampler.py", line 97, in wrapped
output = method(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/sampler/pymultinest.py", line 144, in run_sampler
out = pymultinest.solve(
^^^^^^^^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/pymultinest/solve.py", line 71, in solve
run(**kwargs)
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/pymultinest/run.py", line 285, in run
lib.run(*args_converted)
^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/ctypes/init.py", line 392, in getattr
func = self.getitem(name)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/ctypes/init.py", line 397, in getitem
func = self._FuncPtr((name_or_ordinal, self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: dlsym(RTLD_DEFAULT, run): symbol not found
I've never opened an issue like this before, so I'm not sure what additional information is helpful to provide --- just let me know. From my debugging, I've gathered that this is likely either an issue with conflicting versions of numpy and scipy on my computer, or something to do with not having a fortran compiler?
Confusingly, PyMultiNest is working elsewhere on my computer, in another version of a repo I have (entitled GEMMA).
Hello. I am trying to run a script (hotokezaka_bns_inference_test.py) on my Mac and am currently unable to do so; I've been stuck on this error for about a week, and am wondering if you can provide any insight:
Traceback (most recent call last):
File "/Users/meem/Desktop/kn_pe_em/gemma-dev-main/hotokezaka_bns_inference_test.py", line 1, in
import bilby
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/init.py", line 21, in
from . import core, gw, hyper
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/init.py", line 1, in
from . import grid, likelihood, prior, result, sampler, series, utils, fisher
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/grid.py", line 6, in
from .prior import Prior, PriorDict
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/prior/init.py", line 1, in
from .analytical import *
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/prior/analytical.py", line 2, in
from scipy.special import (
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/scipy/special/init.py", line 826, in
from . import _basic
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/scipy/special/_basic.py", line 22, in
from ._multiufuncs import (assoc_legendre_p_all,
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/scipy/special/_multiufuncs.py", line 142, in
sph_legendre_p = MultiUFunc(
^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/scipy/special/_multiufuncs.py", line 41, in init
raise ValueError("All ufuncs must have type
numpy.ufunc."ValueError: All ufuncs must have type
numpy.ufunc. Received (<ufunc 'sph_legendre_p'>, <ufunc 'sph_legendre_p'>, <ufunc 'sph_legendre_p'>)If it's relevant, I was also receiving this message previously, but now I've 'graduated' to only receiving the above error:
Traceback (most recent call last):
File "/Users/meem/Desktop/kn_pe_em/gemma-dev-main/Amelia.py", line 109, in
result = bilby.run_sampler(
^^^^^^^^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/sampler/init.py", line 310, in run_sampler
result = sampler.run_sampler()
^^^^^^^^^^^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/sampler/base_sampler.py", line 97, in wrapped
output = method(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/bilby/core/sampler/pymultinest.py", line 144, in run_sampler
out = pymultinest.solve(
^^^^^^^^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/pymultinest/solve.py", line 71, in solve
run(**kwargs)
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/site-packages/pymultinest/run.py", line 285, in run
lib.run(*args_converted)
^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/ctypes/init.py", line 392, in getattr
func = self.getitem(name)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/meem/opt/anaconda3/envs/gemma/lib/python3.12/ctypes/init.py", line 397, in getitem
func = self._FuncPtr((name_or_ordinal, self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: dlsym(RTLD_DEFAULT, run): symbol not found
I've never opened an issue like this before, so I'm not sure what additional information is helpful to provide --- just let me know. From my debugging, I've gathered that this is likely either an issue with conflicting versions of numpy and scipy on my computer, or something to do with not having a fortran compiler?
Confusingly, PyMultiNest is working elsewhere on my computer, in another version of a repo I have (entitled GEMMA).