Missing libraries compiling a sketch for Nano RP2040 Connect

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.

Any help would be greatly appreciated.

Try using Arduino IDE 2.0 RC (2.0.0-rc9.2) and make sure that you add all necessary libraries https://support.arduino.cc/hc/en-us/articles/5145457742236-Add-libraries-to-Arduino-IDE

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.

Use the version of the library and board's package core https://www.arduino.cc/en/Guide/Cores that works for you.

So I shouldn't create a ticket?

If you noticed something that needs to be looked into after testing you setup, you can if you want.

Hi @le_max. Please try this experiment:

  1. Select Tools > Board > Boards Manager from the Arduino IDE menus.
  2. Wait for the updates to finish.
  3. Scroll down through the list of boards platforms until you see "Arduino Mbed OS Nano Boards". Click on it.
  4. Select "2.8.0" from the "Select version" menu.
  5. Click the Install button.
  6. Wait for the installation to finish.
  7. Click the Close button.

Now try uploading the sketch again.

Does the error still occur?

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

Thank you much @le_max & @ptillisch! :boom: :boom:

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.

Thanks @jamesldt.

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.

awesome, so there doesn't seem to be any need to open a ticket.

1 Like

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:

  1. Select Tools > Board > Boards Manager from the Arduino IDE menus.
  2. Wait for the updates to finish.
  3. Scroll down through the list of boards platforms until you see "Arduino Mbed OS Nano Boards". Click on it.
  4. Click the Update button.
  5. Wait for the update to finish.
  6. Click the Close button.

Hi @ptillsch - new board manager worked perfectly. No errors whatsoever. Thanks!

  • James

I'm glad it is working now. Thanks for taking the time to post an update with your results.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.