Hello, I’m trying to manually build the dev repo on my ARM MacBook. I. tried using pip install -e .
but now I am running into an issue with my keyboard, audio, and multiple other hardware modules throwing errors.
One of my errors is Import Error: dlopen(/..../psychtoolbox/PsychHID.cpython-310-darwin.so, 0x0002) symbol not found in flat namespace '_AllocateHIDObjectFromIOHIDDeviceRef'. Using event module for keyboard component.
Could someone point me to documentation on the proper way to install dev build for ARM mac?
Hi there,
While PsychoPy itself is full compatible with ARM silicon, some of its dependencies aren’t. The issue you’re seeing is with psychtoolbox binaries which don’t yet support this architecture. For now you will have to do without psychtoolbox.
Options:
- force to intel mode when you install/run
/usr/bin/arch -x86_64 python3 -m pip install -e .
(but I think you will need to specify this arch every time you run) - you could take the above a step further by creating a python executable with the ARM architecture stripped out using ditto (so you don’t have tokeep specifying the arch)
- remove psychtoolbox from dependencies (but I don’t know if there are any more gotchas - it used to be that the hdf5 lib didn’t install either but that might be fixed)
best wishes
Jon
Thanks a lot for the advice,
After messing around a bit the first doesn’t seem to work. I installed brew for x86_64. Then download a compatible Python version (3.10). Then I used that binary instead of python 3
in my command. /usr/bin/arch -x86_64 python3 -m pip install -e .
successfully installs all dependencies. However, when I try to run the PsychopyApp.py or a .psyexp file. It hangs or tells me “hardware can’t interpret instructions” even though I specified x86_64. I will try ditto tomorrow and hopefully that works.