Open dpersaud opened 3 weeks ago
Thanks for reporting the issue :) Can you share some details about how you installed BayBE and list packages installed in your environment so that we can try to recreate/investigate?
Hi @dpersaud, thanks for reaching out. The "segmentation fault" suggests to me that you could be simply running out of memory and the process gets killed. Hence a few questions/suggestions from my side:
This has been reported by at least two other M1 users before, it seems like this is something highly machine specific
Invoking @mhrmsn and @marcelmbn, perhaps you can recall when you had the semaphore issues?
I had exactly the same error a few months ago. The things I remember are that in my case it was related to the scikit-learn-extra
. In my case (and this probably depends a lot on how the environment was set up) the library sklearn_extra/cluster/_commonnn_inner.cpython-312-darwin.so
was not correctly linked to the appropriate system library (macOS
).
To investigate this further, you can run the following command on your machine:
otool -l /Users/<user>/mambaforge/envs/<your_environment>/lib/python3.12/site-packages/sklearn_extra/cluster/_commonnn_inner.cpython-312-darwin.so
(Adapt the full path to your environment, obviously.)
The printout should look at some point similar to this:
Load command 10
cmd LC_LOAD_DYLIB
cmdsize 48
name /usr/lib/libc++.1.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 1700.255.0
compatibility version 1.0.0
Load command 11
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libSystem.B.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 1345.100.2
compatibility version 1.0.0
Load command 12
cmd LC_RPATH
cmdsize 72
path /Users/<user>/mambaforge/envs/<environment>/lib (offset 12)
When I had the error, I also got this error in a certain setup, which led me to the above command.
ImportError: dlopen(/site-packages/sklearn_extra/cluster/_common n_inner.cpython-312-darwin.so, 0x0002): Library not loaded: @rpath/libc++.1.dylib
(Probably I skipped the multiprocessing
part to receive this error.)
Honestly, I don't remember 100% why exactly the link to the system library (/usr/lib/libc++.1.dylib
) failed in some cases, but that was basically the reason for the error. It seemed that the dependency had to be compiled from source when setting up the environment for the link to succeed (probably there are no macOS-arm64
binaries available).
TL;DR: Try to install baybe
from scratch by just using pip install baybe
in a completely empty environment, except for python
and pip
.
@dpersaud please try the above suggestion, I think we could add this to Known Issues
if you can confirm
Hello @dpersaud repeating my request for your feedback
When trying to run the "transfer learning" example from github on my M1 Max, i get the following error :