[SOLVED] Uploading to the ESP32 fails with compile error 255

Hi, I just recently bought the Elegoo Smart Robot Car v4.0, and following the instructions here: (https://www.youtube.com/watch?v=j7p44vxyvdM&t=141s) when I upload the edited code files to the ESP32, I get the following error: (Note: I uploaded the unedited code as well, got same error)

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

Compilation error: exit status 255

I'm new to this kind of stuff, so please help! Originally the error was different, so I looked across other forums, but the only thing I got was to install Python 2, which I did, and got this error.

If it helps, I'm running my semi-old work Macbook Pro Monterey v12.6.5, but I have a PC I can use if necessary.

Thanks!

Just. Stinking. Use. A. PC.

1 Like

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