My esp32(wifi and bluetooth) is not connecting to the arduino ide

[21810] Error loading Python lib '/var/folders/_1/tn6g61_s3gn3dq3fytr58xq80000gn/T/_MEIvXg1UJ/libpython3.8.dylib': dlopen: dlopen(/var/folders/_1/tn6g61_s3gn3dq3fytr58xq80000gn/T/_MEIvXg1UJ/libpython3.8.dylib, 10): Library not loaded: @loader_path/libintl.8.dylib
  Referenced from: /var/folders/_1/tn6g61_s3gn3dq3fytr58xq80000gn/T/_MEIvXg1UJ/libpython3.8.dylib
  Reason: no suitable image found.  Did find:
	/var/folders/_1/tn6g61_s3gn3dq3fytr58xq80000gn/T/_MEIvXg1UJ/libintl.8.dylib: cannot load 'libintl.8.dylib' (load command 0x80000034 is unknown)
	/private/var/folders/_1/tn6g61_s3gn3dq3fytr58xq80000gn/T/_MEIvXg1UJ/libintl.8.dylib: cannot load 'libintl.8.dylib' (load command 0x80000034 is unknown)

exit status 255

Compilation error: exit status 255

This is the error message i'm getting when I run a simple

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}


also i'm using a mac high sierra (10.13.6).
i'm able to program and access a normal arduino

You can only have one setup function and one loop function.

ahhh yes sorry that was my bad in posting the code that way here.

I moved your topic to an appropriate forum category @ayooooooo.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi @ayooooooo

This is the cause of the error:

A tool named "esptool" is used during the compilation and upload operations for the ESP32 boards.

As reported here, the minimum compatible version and is 10.15:

The best solution would be to update your operating system.

I realize that is not possible to do with some computers. There are some alternative workarounds:

I'll describe both of them to you and you can chose whichever one you prefer:

Roll back to an older ESP32 platform

Older versions of the ESP32 boards platform are compatible with older versions of macOS. You can use the Arduino IDE Boards Manager to easily install any version of the ESP32 boards platform so it is simple to install the older compatible version.

I'll provide instructions you can follow to do that:

  1. Select Tools > Board > Boards Manager from the Arduino IDE menus.
    The "Boards Manager" dialog will open.
  2. Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
  3. Scroll down through the list of boards platforms until you find the "esp32 by Espressif Systems" entry. Click on it.
    A "Select version" menu will appear in the entry.
  4. Select "1.0.6" from the "Select version" menu.
    I believe 1.0.6 is the newest version that is still compatible with macOS High Sierra.
  5. Click the "Install" button in the "esp32 by Espressif Systems" entry.
  6. Wait for the installation to finish.
  7. Click the "Close" button on the "Boards Manager" dialog.

By default, Arduino IDE periodically checks for newer versions of your installed boards platforms and offers to update them if a newer version is found. You'll need to refrain from updating back to the newer version of the "esp32 by Espressif Systems" platform. If you are bothered by these update offers, you can disable them. I'll provide instructions you can follow to do that:

  1. Select File > Preferences... from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to " Check for updates on startup in the "Preferences" dialog.
  3. Click the "OK" button

:exclamation: This will also disable notifications for newer versions of other boards platforms and libraries that you do want to keep updated.

So make sure to periodically check for newer versions of your other installed platforms in Boards Manager (Tools > Board > Boards Manager) and your other installed libraries in Library Manager (Sketch > Include Library > Manage Libraries...).


Rebuild esptool

The reason the esptool installed with the ESP32 boards platform is not compatible with older versions of macOS is because it was built on a machine that is running the newer macOS version. This means that if you manually build esptool on your own computer then that build will be compatible with your macOS version. You can then replace the esptool executable that was installed with the platform with your own compatible build.

The advantage of this workaround over the alternative of rolling back to the older ESP32 platform version is it allows you to use the latest version of the ESP32 boards platform which contains fixes and improvements and expanded capabilities compared to older versions.

This is an advanced endeavor, but if you are interested in giving it a try, there are instructions for doing so here:

https://github.com/espressif/arduino-esp32/issues/5639#issuecomment-1023906143

2 Likes

Thanks a lot this actually worked.

1 Like

Very useful. I can now flash a sketch to my esp32 D1 mini with Mac Book Pro (macOS Mojave version: 10.14.6). Thanks very much !

You are welcome. I'm glad that it was useful to you and that you are now able to use your ESP32.

Regards,
Per

1 Like

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