Open ErikPoppleton opened 1 year ago
Have you tried PREFIX_PATH=$HOME/.local
?
It then finds it during installation, but the libraries cannot be loaded at runtime without relinking.
Traceback (most recent call last):
File "$HOME/.local/lib/python3.11/site-packages/pymol/__init__.py", line 72, in <module>
import pymol
File "$HOME/.local/lib/python3.11/site-packages/pymol/__init__.py", line 558, in <module>
import pymol._cmd
ImportError: dlopen($HOME/.local/lib/python3.11/site-packages/pymol/_cmd.cpython-311-darwin.so, 0x0002): Library not loaded: @rpath/libGLEW.2.2.dylib
It then works if I run the install_name_tool
commands I listed in my earlier post.
In the installation instructions it says:
I have many of the libraries required in
$HOME/.local/include
due to not having admin privileges on my computer. So I set:In addition to having this directory on my $PATH itself.
However pymol's setup.py completely ignores these when I try to run it and I get a bunch of
'X.h' file not found
errors.Despite these files being in the directory specified in the environment variables:
Same problem with linking the actual libraries which are in ~/.local/lib/ if I move the header files into the directory which wants them.
This is on MacOS 13.0.1 and an up-to-date pull from the master branch of this repository.
UPDATE:
It does work if I run
build-ext
and specify the include and library paths followed byinstall
and then re-link the binary.Might be beneficial to add this to the INSTALL notes.