Cannot compile for esp32 boards

Good Morning,

Im currently trying to compile an empty sketch (just clicked the "new sketch" button) for a esp32 board (wemos d1 mini esp32).
I downloaded/installed the esp32 boards and selected wemos d1 mini esp32 and got the following error when compiling (not uploading, just compiling)

Traceback (most recent call last):
  File "esptool.py", line 57, in <module>
  File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
  File "serial/tools/list_ports.py", line 29, in <module>
  File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
  File "serial/tools/list_ports_posix.py", line 31, in <module>
  File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
  File "serial/tools/list_ports_osx.py", line 32, in <module>
ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found
Failed to execute script esptool
exit status 255
/Applications/Arduino.app/Contents/Java/arduino-builder gab 255 zurück
Fehler beim Kompilieren für das Board WEMOS D1 MINI ESP32.

this also occurs if i select ANY other esp32 board as build target...
what might cause this?

Hi,
Welcome to the forum.

Please read http://forum.arduino.cc/index.php/topic,148850.0.html.

What version IDE and what OS are you using?

Tom... :slight_smile:

When the ESP is not plugged into the USB select, in the Arduino IDE, Tool|Port,, and write down the port numbers.

When the ESP is plugged into the USB select, in the Arduino IDE, Tool|Port,, and write down the port numbers.

Compare the port number lists, do they match or is their more ports available when the ESP is plugged in?

Hi,
I ran this code and it compiled, IDE 1.8.13 with Win12.
wemos d1 mini esp32 selected.

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

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

Did you put this in the preferences box?

https://dl.espressif.com/dl/package_esp32_index.json

Thanks.. Tom... :slight_smile:

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