timothydmorton / isochrones

Pythonic stellar model grid access; easy MCMC fitting of stellar properties
http://isochrones.readthedocs.org
MIT License
117 stars 63 forks source link

Could not find module 'libmultinest.dll' #189

Open mlpsoria opened 3 months ago

mlpsoria commented 3 months ago

I have a Windows 10 and I am using Python 3 and I having this problem

Problem: Could not find module 'libmultinest.dll' (or one of its dependencies). Try using the full path with constructor syntax.

FileNotFoundError Traceback (most recent call last) File ~\anaconda\Lib\site-packages\pymultinest\run.py:16, in _load_library(libname) 15 libname = find_library(libname) ---> 16 return cdll.LoadLibrary(libname) 17 except OSError as e:

File ~\anaconda\Lib\ctypes__init__.py:454, in LibraryLoader.LoadLibrary(self, name) 453 def LoadLibrary(self, name): --> 454 return self._dlltype(name)

File ~\anaconda\Lib\ctypes__init.py:376, in CDLL.init__(self, name, mode, handle, use_errno, use_last_error, winmode) 375 if handle is None: --> 376 self._handle = _dlopen(self._name, mode) 377 else:

FileNotFoundError: Could not find module 'libmultinest.dll' (or one of its dependencies). Try using the full path with constructor syntax.

During handling of the above exception, another exception occurred:

SystemExit Traceback (most recent call last) [... skipping hidden 1 frame]

Cell In[5], line 1 ----> 1 from isochrones.mist import MIST_EvolutionTrack, MIST_Isochrone 3 track = MIST_EvolutionTrack()

File ~\anaconda\Lib\site-packages\isochrones__init__.py:10 9 from .isochrone import get_ichrone ---> 10 from .starmodel import StarModel, SingleStarModel, BinaryStarModel, TripleStarModel

File ~\anaconda\Lib\site-packages\isochrones\starmodel.py:25 24 try: ---> 25 import pymultinest 26 except ImportError:

File ~\anaconda\Lib\site-packages\pymultinest__init__.py:19 18 try: ---> 19 from .run import run 20 from .solve import solve, Solver

File ~\anaconda\Lib\site-packages\pymultinest\run.py:52 50 sys.exit(1) ---> 52 lib = _load_library('libmultinest') 54 lib_mpi = None

File ~\anaconda\Lib\site-packages\pymultinest\run.py:50, in _load_library(libname) 49 print('problem:', e) ---> 50 sys.exit(1)

SystemExit: 1

During handling of the above exception, another exception occurred:

AttributeError Traceback (most recent call last) [... skipping hidden 1 frame]

File ~\anaconda\Lib\site-packages\IPython\core\interactiveshell.py:2121, in InteractiveShell.showtraceback(self, exc_tuple, filename, tb_offset, exception_only, running_compiled_code) 2118 if exception_only: 2119 stb = ['An exception has occurred, use %tb to see ' 2120 'the full traceback.\n'] -> 2121 stb.extend(self.InteractiveTB.get_exception_only(etype, 2122 value)) 2123 else: 2125 def contains_exceptiongroup(val):

File ~\anaconda\Lib\site-packages\IPython\core\ultratb.py:710, in ListTB.get_exception_only(self, etype, value) 702 def get_exception_only(self, etype, value): 703 """Only print the exception type and message, without a traceback. 704 705 Parameters (...) 708 value : exception value 709 """ --> 710 return ListTB.structured_traceback(self, etype, value)

File ~\anaconda\Lib\site-packages\IPython\core\ultratb.py:568, in ListTB.structured_traceback(self, etype, evalue, etb, tb_offset, context) 565 chained_exc_ids.add(id(exception[1])) 566 chained_exceptions_tb_offset = 0 567 out_list = ( --> 568 self.structured_traceback( 569 etype, 570 evalue, 571 (etb, chained_exc_ids), # type: ignore 572 chained_exceptions_tb_offset, 573 context, 574 ) 575 + chained_exception_message 576 + out_list) 578 return out_list

File ~\anaconda\Lib\site-packages\IPython\core\ultratb.py:1435, in AutoFormattedTB.structured_traceback(self, etype, evalue, etb, tb_offset, number_of_lines_of_context) 1433 else: 1434 self.tb = etb -> 1435 return FormattedTB.structured_traceback( 1436 self, etype, evalue, etb, tb_offset, number_of_lines_of_context 1437 )

File ~\anaconda\Lib\site-packages\IPython\core\ultratb.py:1326, in FormattedTB.structured_traceback(self, etype, value, tb, tb_offset, number_of_lines_of_context) 1323 mode = self.mode 1324 if mode in self.verbose_modes: 1325 # Verbose modes need a full traceback -> 1326 return VerboseTB.structured_traceback( 1327 self, etype, value, tb, tb_offset, number_of_lines_of_context 1328 ) 1329 elif mode == 'Minimal': 1330 return ListTB.get_exception_only(self, etype, value)

File ~\anaconda\Lib\site-packages\IPython\core\ultratb.py:1173, in VerboseTB.structured_traceback(self, etype, evalue, etb, tb_offset, number_of_lines_of_context) 1164 def structured_traceback( 1165 self, 1166 etype: type, (...) 1170 number_of_lines_of_context: int = 5, 1171 ): 1172 """Return a nice text document describing the traceback.""" -> 1173 formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context, 1174 tb_offset) 1176 colors = self.Colors # just a shorthand + quicker name lookup 1177 colorsnormal = colors.Normal # used a lot

File ~\anaconda\Lib\site-packages\IPython\core\ultratb.py:1063, in VerboseTB.format_exception_as_a_whole(self, etype, evalue, etb, number_of_lines_of_context, tb_offset) 1060 assert isinstance(tb_offset, int) 1061 head = self.prepare_header(str(etype), self.long_header) 1062 records = ( -> 1063 self.get_records(etb, number_of_lines_of_context, tb_offset) if etb else [] 1064 ) 1066 frames = [] 1067 skipped = 0

File ~\anaconda\Lib\site-packages\IPython\core\ultratb.py:1131, in VerboseTB.get_records(self, etb, number_of_lines_of_context, tb_offset) 1129 while cf is not None: 1130 try: -> 1131 mod = inspect.getmodule(cf.tb_frame) 1132 if mod is not None: 1133 mod_name = mod.name

AttributeError: 'tuple' object has no attribute 'tb_frame'

How can I fix this problem?