Skip to content
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

nRF52840 Error loading Python lib #21

Closed
tamberg opened this issue Sep 27, 2021 · 2 comments
Closed

nRF52840 Error loading Python lib #21

tamberg opened this issue Sep 27, 2021 · 2 comments

Comments

@tamberg
Copy link
Owner

tamberg commented Sep 27, 2021

(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.

@tamberg
Copy link
Owner Author

tamberg commented Sep 27, 2021

(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

@tamberg
Copy link
Owner Author

tamberg commented Sep 27, 2021

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)

@tamberg tamberg closed this as completed Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant