-
Notifications
You must be signed in to change notification settings - Fork 87
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
problem: dlopen(libmultinest.dylib, 6): image not found #89
Comments
PyMultiNest will try to load the library libmultinest.dylib (on Mac, libmultinest.so on Linux) in the dynamic library search path (usually /usr/lib/, etc.). Because we have it in some download directory, we have to tell pymultinest where to find that library. The environment variables LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH) allow us to point it to a custom folder. It should be sufficient to set DYLD_LIBRARY_PATH to the path where that file is on your computer. |
Thank you very much for your advice! I resolved the issue by placing the libraries in the PyCharm (the IDE I'm using) project directory. I have two additional queries regarding which I'd greatly appreciate your advice:
Thanks a lot in advance, Gidi |
re: 1) not sure, maybe the samples did not find the tiny peak in the space. Use prints to see where it goes (or look into the output samples). re: 2) you can find the termination criterion in the paper, it is based on Lmax*V and the tolerance parameter, the highest live point likelihood multiplied by the remainder volume. I never set max_iter. Should also be described somewhere in the MultiNest README file. |
Hello Johannes and thanks for your reply. I've been running PyMutiNest a while and seems that I got a hang over the issue now. I'm able to open the .points file with Matlab and transform the cube values to the prior parameter values, as well as the likelihood values to chi-squared. There seem to be much more points there than in the .txt file and even higher likelihood fits. Considering there is no reference of this file in the README, I'd appreciate if you clarify as to what this file represents, how does it differ from the .txt file and whether can this data be analyzed in stead of the .txt file. Thanks a lot again, Gidi |
Hi @YoffeG, you would have to contact the multinest authors about that question. https://ccpforge.cse.rl.ac.uk/gf/project/multinest/ -- Johannes |
Hi Johannes,
I'm trying to install PyMultiNest on Mac and have followed all your instructions part the last one, regarding Mac installation (using DYLD..... instead of LD Library path). I can't seem to grasp how to do it and when I execute the "export LD_LIBRARY_PATH=/my/multinest/directory/lib:/my/cuba/directory/:/my/apemost/directory/:$LD_LIBRARY_PATH" command while being in the PyMultiNest directory, I receive a "File already exists" response.
That said, when I attempt to run a code in which Pymultinest is incorporated (using PyCharm, Python 3.6) I receive problem: dlopen(libmultinest.dylib, 6): image not found".
I'm a beginning Linux and Python user and would appreciate any piece of wisdom you could throw at me.
Thanks in advance,
Gidi.
The text was updated successfully, but these errors were encountered: