question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

esptool.py broken on macOS Big Sur Beta

See original GitHub issue

This issue came with the PlatformIO 2.0 IDE update.

Error Message

Traceback (most recent call last):
  File "/Users/phil/.platformio/packages/tool-esptoolpy/esptool.py", line 57, in <module>
    import serial.tools.list_ports as list_ports
  File "/Users/phil/.platformio/penv/lib/python3.8/site-packages/serial/tools/list_ports.py", line 29, in <module>
    from serial.tools.list_ports_posix import comports
  File "/Users/phil/.platformio/penv/lib/python3.8/site-packages/serial/tools/list_ports_posix.py", line 31, in <module>
    from serial.tools.list_ports_osx import comports
  File "/Users/phil/.platformio/penv/lib/python3.8/site-packages/serial/tools/list_ports_osx.py", line 32, in <module>
    kIOMasterPortDefault = ctypes.c_void_p.in_dll(iokit, "kIOMasterPortDefault")
ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found
*** [.pio/build/debug/firmware.bin] Error 1

See: https://github.com/espressif/esptool/issues/540

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
valeroscommented, Nov 19, 2020

Thanks!

esptoolpy v3.0 will be used by default in the next platform release. As for now users on Big Sur can override the package directly in their configuration:

platform_packages =
    platformio/tool-esptoolpy @ ~1.30000.0
3reactions
PhilippMolitorcommented, Sep 10, 2020

I can confirm this version working: https://github.com/espressif/esptool/blob/cb2060c0d768da38c9aa463e315e187a91f761f8/esptool.py

Maybe use this one for the current PlatformIO build instead?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESP32 / Big Sur Mac OS compilation fail - Arduino Forum
I've been researching this bug, which apparently is an issue in Pyserial querying available ports. The errors seen when compiling for ESP32 ...
Read more >
macOS Big Sur dlsym(RTLD_DEFAULT, kIOMasterPortDefault)
I found temporary solution to that problem. Just download https://github.com/espressif/esptool/blob/master/esptool.py and replace it in /.
Read more >
esptool.py fail to install on mac - Apple Stack Exchange
I'm trying to use esptool.py to flash ESP32. ... The same with me: Mac OS M1 Monterey 12.4 can't install esptool (with python...
Read more >
Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux)
In this tutorial we'll show you how to install the ESP32 board in Arduino IDE whether you're using Windows, Mac OS X or...
Read more >
USB interface communication issue. - Parallels Forums
Upgraded to macOS12 Monterey... it didn't work with Big Sur either. ... parallels.com/threads/esptool-py-not-working-on-linux-guests.355828/
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found