You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under MacOS + homebrew + pyenv, I fail to initialize pyml:
let () = Py.initialize () fails with the following error message:
% pyenv local 3.10.9
% dune exec ./mytest.exe
Entering directory '/Users/jun/pyml'
Done: 60% (3/5, 2 left) (jobs: 0)Fatal error: exception Failure("Py.find_library: unable to find the Python library [libpython3.10m.dylib returned dlopen(libpython3.10m.dylib, 0x0009): tried: 'libpython3.10m.dylib' (no such file), '/usr/local/lib/libpython3.10m.dylib' (no such file), '/usr/lib/libpython3.10m.dylib' (no such file), '/Users/jun/pyml/mytest/libpython3.10m.dylib' (no such file)] [/opt/homebrew/lib/libpython3.10m.dylib returned dlopen(/opt/homebrew/lib/libpython3.10m.dylib, 0x0009): tried: '/opt/homebrew/lib/libpython3.10m.dylib' (no such file)] [libpython3.10.dylib returned dlopen(libpython3.10.dylib, 0x0009): tried: 'libpython3.10.dylib' (no such file), '/usr/local/lib/libpython3.10.dylib' (no such file), '/usr/lib/libpython3.10.dylib' (no such file), '/Users/jun/pyml/mytest/libpython3.10.dylib' (no such file)] [/opt/homebrew/lib/libpython3.10.dylib returned dlopen(/opt/homebrew/lib/libpython3.10.dylib, 0x0009): tried: '/opt/homebrew/lib/libpython3.10.dylib' (no such file)]")
The library to be found, libpython3.10.dynlib is at$HOME/.pyenv//versions/3.10.9/lib/libpython3.10.dylib, but pyml cannot find it. It executes python-config --ldflags to locate the library directory but under my environment, MacOS + homebrew + pyenv, it prints something unexpected for pyml:
Under MacOS + homebrew + pyenv, I fail to initialize pyml:
let () = Py.initialize ()
fails with the following error message:The library to be found,
libpython3.10.dynlib
is at$HOME/.pyenv//versions/3.10.9/lib/libpython3.10.dylib
, but pyml cannot find it. It executespython-config --ldflags
to locate the library directory but under my environment, MacOS + homebrew + pyenv, it prints something unexpected for pyml:FYI, I use the following quick fix to locate the correct directory
$HOME/.pyenv/versinos/3.10.9/lib
by executingpython-config --prefix
instead ofpython-config --ldflags
: https://gitlab.com/dailambda/pyml/-/commit/b09f7160dd232eba5784f8553e44ea86d8ddbdda (Sorry this is not GitHub but GitLab).The text was updated successfully, but these errors were encountered: