Hi there,
I recently tried to compile and upload a sketch to an arduino nano RP2040 Connect on a Mac 10.13.6 but the Arduino IDE (1.8.19) yields an error compiling:
[27948] Error loading Python lib '/var/folders/hg/nktzwtfj7m93tc6ccck3w5b80000gn
/T/_MEIYRaWOa/libpython3.7m.dylib': dlopen: dlopen(/var/folders/hg/nktzwtfj7m93tc6ccck3w5b80000gn/T/_MEIYRaWOa/libpython3.7m.dylib, 10): Symbol not found: ____chkstk_darwin
Referenced from: /var/folders/hg/nktzwtfj7m93tc6ccck3w5b80000gn/T/_MEIYRaWOa/libintl.8.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
in /var/folders/hg/nktzwtfj7m93tc6ccck3w5b80000gn/T/_MEIYRaWOa/libintl.8.dylib
exit status 255
/Applications/Arduino 3.app/Contents/Java/arduino-builder returned 255
Error compiling for board Arduino Nano RP2040 Connect.
I do not quite understand the different parts of the error message. I don't recognise the libraries and I also do not quite understand why the compiler would need Python. Unfortunately I have no idea how to solve this problem. Does anybody have an idea or knows how to tackle this? I noticed that it says they were compiled for Mac OS X 10.15. But I do not know if that makes any difference or not.
Thanks for your reply.
I tried your suggestion and it gives the same error message. Actually when I change the board to arduino nano it verifies the sketch just fine.
I think with the help of your suggestion and the new Arduino IDE Version I limited the source of the error to the Arduino MBed OS Nano Boards library. If I revert to version 2.8 I can compile without any error messages. That is the latest version I can compile it with. Should I enter this in some kind of ticket system, maybe here: GitHub - arduino/ArduinoCore-mbed ??
I assume this solves my problem for now.
Thanks for your help.
I have also received the Arduino IDE build error "[17991] Error loading Python lib..." (see below for full error text).
The suggestion from @ptillisch (via @le_max) fixed the problem (i.e., to regress to the 2.80 version of the Arduino Mbed OS Nano platform). Nano 33 BLE sketches are building and downloading just fine now.
This was with a Nano 33 BLE on a clean-install Mac OS X 10.13.6 (High Sierra) MacBook - early 2010, 64-bit Intel chip. I specifically partitioned my Mac hard drive yesterday and installed a totally fresh copy of High Sierra just to make sure there wasn't something else I had unintentionally installed causing the problem. The error occurred under both the old and new High Sierra installs.
This error does not occur with a Nano, which does indeed seem to implicate the Arduino Mbed OS Nano Boards platform (on Mac High Sierra at any rate).
Arduino IDE build error from standard Blinky example sketch:
Arduino: 1.8.19 (Mac OS X), Board: "Arduino Nano 33 BLE"
[17991] Error loading Python lib '/var/folders/5d/c39cbn991_q683xxvzmhyz400000gn/T/_MEIi7Jo7t/libpython3.7m.dylib': dlopen: dlopen(/var/folders/5d/c39cbn991_q683xxvzmhyz400000gn/T/_MEIi7Jo7t/libpython3.7m.dylib, 10): Symbol not found: ____chkstk_darwin
Referenced from: /var/folders/5d/c39cbn991_q683xxvzmhyz400000gn/T/_MEIi7Jo7t/libintl.8.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
in /var/folders/5d/c39cbn991_q683xxvzmhyz400000gn/T/_MEIi7Jo7t/libintl.8.dylib
exit status 255
/Applications/Arduino.app/Contents/Java/arduino-builder returned 255
Error compiling for board Arduino Nano 33 BLE.
A new tool named "imgtool" was added to the "Arduino Mbed OS Boards" platforms during the 3.0.0 release in order to support the new "Secure Boot" feature.
It seems that this tool is not compatible with older versions of macOS, which causes this error.
"Secure boot" is only for the Portenta boards, so the boards like the Nano 33 BLE don't actually need to use imgtool for anything. imgtool was accidentally added into the platforms of the other boards such as your Nano 33 BLE at the time the "secure boot" feature was added for the Portenta, even though it is not needed by them. This error has already been fixed:
However, there has not been a new release of the "Arduino Mbed OS Nano Boards" platform since that time. This is why the problem still occurs with the latest version of the platform you get from the Arduino IDE Boards Manager.
If 2.8.0 meets your needs right now, I recommend continuing to use that version for now. Keep an eye out for a new release of "Arduino Mbed OS Nano Boards". Once that comes, you will be able to use Boards Manager to update to the latest version of the platform once more.
Hi @le_max. A new version of the "Arduino Mbed OS Nano Boards" platform was released today. You should be able to update to that new version since it contains the fix I mentioned earlier in this discussion.
I'll provide instructions for updating:
Select Tools > Board > Boards Manager from the Arduino IDE menus.
Wait for the updates to finish.
Scroll down through the list of boards platforms until you see "Arduino Mbed OS Nano Boards". Click on it.