Traceback (most recent call last):

 "<stdin>", line 1, in <module>

 "/usr/lib64/python2.7/site-packages/gevent/hub.py", line 105, in signal
return core.signal(signalnum, lambda: spawn_raw(_wrap_signal_handler, handler, args, kwargs))

 "core.pyx", line 367, in gevent.core.signal.__init__ (gevent/core.c:5723)

 "core.pyx", line 252, in gevent.core.event.add (gevent/core.c:3365)IOError: [Errno 9] Bad file descriptor
Traceback (most recent call last):


 "/Library/Frameworks/Python.framework/Versions/3.8/bin/esptool.py", line 57, in <module>

import serial.tools.list_ports as list_ports


 "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/serial/tools/list_ports.py", line 29, in <module>

from serial.tools.list_ports_posix import comports


 "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/serial/tools/list_ports_posix.py", line 31, in <module>

from serial.tools.list_ports_osx import comports


 "/Library/Frameworks/Python.framework/Versions/3.8/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
