Error loading Python Lib on ESP32

I can't get the Blink example sketch to compile for a Sparkfun IoT ESP32 Redboard. I've read through threads that seemed like a similar issue on other boards, but haven't hit on a solution. Here's the sketch:

#define LED_BUILTIN 18

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(500);                       // wait for a second
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1500);
}

Here's the error message:

[740] Error loading Python lib '/var/folders/nr/11b9z2n17rdbjg1p3pj5dbmm0000gn/T/_MEIDaj4zB/libpython3.8.dylib': dlopen: dlopen(/var/folders/nr/11b9z2n17rdbjg1p3pj5dbmm0000gn/T/_MEIDaj4zB/libpython3.8.dylib, 10): Library not loaded: @loader_path/libintl.8.dylib
  Referenced from: /var/folders/nr/11b9z2n17rdbjg1p3pj5dbmm0000gn/T/_MEIDaj4zB/libpython3.8.dylib
  Reason: no suitable image found.  Did find:
	/var/folders/nr/11b9z2n17rdbjg1p3pj5dbmm0000gn/T/_MEIDaj4zB/libintl.8.dylib: cannot load 'libintl.8.dylib' (load command 0x80000034 is unknown)
	/private/var/folders/nr/11b9z2n17rdbjg1p3pj5dbmm0000gn/T/_MEIDaj4zB/libintl.8.dylib: cannot load 'libintl.8.dylib' (load command 0x80000034 is unknown)
exit status 255
/private/var/folders/nr/11b9z2n17rdbjg1p3pj5dbmm0000gn/T/AppTranslocation/413A90A5-3388-4414-9A6E-9836473B2FBF/d/Arduino.app/Contents/Java/arduino-builder returned 255
Error compiling for board SparkFun ESP32 IoT RedBoard.

I did have to install drivers for CH340, and I tried using Arduino 2.0.4 even tho it's not supposed to work on my version of OSX (but it did). I was able to compile/load same sketch to an arduino uno. Why is it looking for a Python library anyway? Does anyone have any advice to continue my project?
Thanks.

Hi @MoreCowbell
welcome to the forum.

You should re-edit your first posting.
posting your complete sketch as a code-section
and as a second code-section the compiler-log
here is a tutorial how to do this

A student of mine is having a similar problem on an older mac.

OP ( @MoreCowbell ) did you find a solution?

FWIW i blindly tried this:

as it solved Python issues on my machine -- but this did not fix above error.

s

Hello, I'm having the very same issue as @MoreCowbell. When I attempt to upload the following Blink example sketch to a new SparkFun IoT ESP32 Redboard (ESP32-WROOM-32E) on MacOS Mojave (10.14.4). The error occurs with both Arduino 1.8.19 and 2.1.0.

/*
  Blink

  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:
  https://www.arduino.cc/en/Main/Products

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.

  https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

When I hit the upload button I get the following:

Error compiling for board SparkFun ESP32 IoT Redboard

Arduino: 1.8.19 (Mac OS X), Board: "SparkFun ESP32 IoT RedBoard, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"

[17798] Error loading Python lib '/var/folders/_m/gjl69s7x4p17d9fqcyhdcljh0000gn/T/_MEIjNVjhP/libpython3.8.dylib': dlopen: dlopen(/var/folders/_m/gjl69s7x4p17d9fqcyhdcljh0000gn/T/_MEIjNVjhP/libpython3.8.dylib, 10): Library not loaded: @loader_path/libintl.8.dylib
  Referenced from: /var/folders/_m/gjl69s7x4p17d9fqcyhdcljh0000gn/T/_MEIjNVjhP/libpython3.8.dylib
  Reason: no suitable image found.  Did find:
	/var/folders/_m/gjl69s7x4p17d9fqcyhdcljh0000gn/T/_MEIjNVjhP/libintl.8.dylib: cannot load 'libintl.8.dylib' (load command 0x80000034 is unknown)
	/private/var/folders/_m/gjl69s7x4p17d9fqcyhdcljh0000gn/T/_MEIjNVjhP/libintl.8.dylib: cannot load 'libintl.8.dylib' (load command 0x80000034 is unknown)
exit status 255
/Applications/Arduino.app/Contents/Java/arduino-builder returned 255
Error compiling for board SparkFun ESP32 IoT RedBoard.

I've completely uninstalled the Arduino software (including hidden folders), I've selected different boards (ie. ESP32 DEV Module), I've launched Arduino from Terminal, and I installed Python 2 as per one suggestion, but the error persists.

Thank you in advance for any suggestions.

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