Open analog-cbarber opened 1 month ago
One workaround is to use the install_name_tool
to rewrite the location of the python executable to the one you are using, e.g.:
$ install_name_tool -change /Library/Frameworks/Python.framework/Versions/3.12/Python /Users/jdoe/miniforge3/bin/python _Python_sml_ClientInterface.so
Perhaps this could be done in the setup.sh
script using which python
to find the executable?
I downloaded the 9.6.3 distribution and ran
setup.sh
on a Mac M1. When I tried to import the SML client package, I got this error:It looks like it is assuming that Python 3.12 has been installed using the public Python installer, but it is actually common for people to install python using other tools that put it in other places. In my case, it is installed in a specific conda environment.
Not sure if there is an environment variable I can set to fix this or if I have to just build it myself.
Ideally, the code should not use any hard coded paths and instead should get the location of the Python library from the python process doing the import.
It would also be useful if the download explicitly specified which version of python it was compiled for.