nRF52840 Error loading Python lib
tamberg opened this issue · comments
(via R. Previti)
[28132] Error loading Python lib '/var/folders/y3/10ms8xj50fzbnrzyc6tbpdw80000gn/T/_MEI4xOfhq/libpython3.8.dylib': dlopen: dlopen(/var/folders/y3/10ms8xj50fzbnrzyc6tbpdw80000gn/T/_MEI4xOfhq/libpython3.8.dylib, 10): Symbol not found: _preadv
Referenced from: /var/folders/y3/10ms8xj50fzbnrzyc6tbpdw80000gn/T/_MEI4xOfhq/libpython3.8.dylib (which was built for Mac OS X 11.1)
Expected in: /usr/lib/libSystem.B.dylib
in /var/folders/y3/10ms8xj50fzbnrzyc6tbpdw80000gn/T/_MEI4xOfhq/libpython3.8.dylib
exit status 255
/Applications/Arduino.app/Contents/Java/arduino-builder returned 255
Error compiling for board Adafruit Feather nRF52840 Express.
(via R. Previti)
Konnte es lösen durch das kreieren und rüberkopieren der self-contained library https://github.com/adafruit/Adafruit_nRF52_nrfutil#create-self-contained-binary
An even simpler solution that works on my machineTM with nRF52 board package version 1.1.0 is
$ pip3 install --user adafruit-nrfutil
then copy the newly installed adafruit-nrfutil to the right sub-directory of Arduino15, e.g. on MacOS
$ cd ~
$ cp ./Library/Python/3.8/bin/adafruit-nrfutil ./Library/Arduino15/packages/adafruit/hardware/nrf52/1.1.0/tools/adafruit-nrfutil/macos
Note the board package version number in the path, which you might have to adapt.
(See also https://github.com/adafruit/Adafruit_nRF52_nrfutil#installing-from-pypi)