-
Notifications
You must be signed in to change notification settings - Fork 33
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
Error on importing bonsai on Mac M2/arm #80
Comments
Hi, in the case of 3.9 and 3.10: there aren't any wheels for macOS ARM64. You have to build the module from source. Make sure you follow the instructions, and that your shared lib ( In the case of 3.11 is more interesting. Apparently, the uploaded wheel is marked as |
HI, thx for the quick answer. Regards |
I am also attempting to install bonsai from source on my Mac M1. I am pretty new to this process, but even following the instructions I end up with the same error message:
My
Running
Any help would be greatly appreciated, thanks! |
After some messing around with this for a while I discovered that I was using a pyenv Python installation instead of the one installed with homebrew. After switching back to the Homebrew installed Python I was able to recompile/reinstall and things look proper and work correctly. Thanks for all your work! |
Hello! Is it possible to create wheels for macos arm64 and upload there to pypi? Or, because of old openldap it is not possible? |
Hi, The main issue that I don't have a M1 Mac at my disposal, and neither GH Actions nor Azure Pipelines supports M1 VM-s right now, AFAIK. This makes building an M1 compatible wheel difficult, especially testing it. |
I have an M1 Mac and a vested interest in getting an M1 compatible wheel going. Let me know if you want some help building/testing.
|
I tried to create |
Hi, GH actions now supports Arm based runners
is it possible to have this pushed through? |
Yes, of course. It's already done on the dev branch, actually. I just haven't got the time to create a new release. I'll try to make time for it this weekend. |
The new release has been made. 1.5.3 is uploaded to PyPI. |
Faced the same issue (symbol not found in flat namespace '_ldap_create_passwordpolicy_control') today with python 3.9 on macos with m1 processor. Tried installing bonsai 1.5.3 with pip and from source, installing openldap and changing .cfg file as written in the docs. Still, when I client I get error:
Would appreciate any help |
Hi, there's no wheel for Python 3.9 on M1. The Python 3.9 on the new m1 github runners are unavailable. |
I tried installing it via pip on python 3.10, also tried building from source using instructions, but it doesn't work, get the same error: Forgot to mention last time, that I use pyenv to manage python versions. Tried to install in virtual environment and and outside of it, had no luck. Ready to try new approaches and help fix this issue if I can. |
I don't know what goes wrong there. I looks like to me, that even the 3.10 tries to locally compile the module from source. You should check the
|
I think the trick for fixing
but if you check So I assume if you are linking to MacOS's LDAP library, you'll never fix this issue since this symbol never exists even if header file includes it, which makes it a undefined symbol. You probably need to link to other LDAP libraries with this symbol present |
Hi,
I run in import errors when trying to use bonsai lib on MacBookPro M2 (arm9). Tested with 3.9,3.10 and 3.11 Trackback is pasted below.
If I run the same import in Rosetta2 (x86) emulation environment it works perfectly.
Thanks for taking care
python 3.9
python 3.10
python 3.11
The text was updated successfully, but these errors were encountered: