Hello everyone reading,
I encounter a problem when I try to upload a simple sketch from the Arduino cloud onto my esp32 (DEVKIT 1). It seems related to the esptool.py program but I really don't have any other clue since it would work perfectly just about a month ago. I havn't changed my computer configuration (both soft&hardware) and the usb cable I use is the same. I can also upload onto this esp 32 from the offline Arduino IDE.
I tried on 2 different computers (both MAC OS running Mojave 10.14 - Arduino create agent up to date as well as Firefox browser) and the problem remains. Here is the log file attached. If anyone had the same experience recently, I would take any advice gratefully. Thank you all for your time and consideration.
/usr/local/bin/arduino-cli compile --fqbn esp32:esp32:esp32doit-devkit1:DebugLevel=none,FlashFreq=80,UploadSpeed=921600 --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/292501756/build --build-path /tmp/arduino-build-D0D09EF88C9043D4F1E3B833A529FFEF /tmp/292501756/MonThing_apr05a
Sketch uses 895617 bytes (68%) of program storage space. Maximum is 1310720 bytes.
Global variables use 40748 bytes (12%) of dynamic memory, leaving 286932 bytes for local variables. Maximum is 327680 bytes.
/home/builder/opt/libraries/latest/arduinoiotcloud_1_7_0/src/property/Property.cpp:25:19: note: #pragma message: No RTC available on this architecture - ArduinoIoTCloud will not keep track of local change timestamps .
#pragma message "No RTC available on this architecture - ArduinoIoTCloud will not keep track of local change timestamps ."
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Upload started
Programming with: Serial
Flashing with command:/Users/sheutran/.arduino-create/esp32/esptool_py/4.2.1/esptool --chip esp32 --port /dev/cu.SLAB_USBtoUART --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 /var/folders/s7/4k66vxv13_bfml0f20lrmw7r0000gn/T/extrafiles772990104/MonThing_apr05a.bootloader.bin 0x8000 /var/folders/s7/4k66vxv13_bfml0f20lrmw7r0000gn/T/extrafiles772990104/MonThing_apr05a.partitions.bin 0xe000 /var/folders/s7/4k66vxv13_bfml0f20lrmw7r0000gn/T/extrafiles772990104/tools/partitions/boot_app0.bin 0x10000 /var/folders/s7/4k66vxv13_bfml0f20lrmw7r0000gn/T/arduino-create-agent992205533/MonThing_apr05a.bin
Traceback (most recent call last):
File "esptool/loader.py", line 48, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 493, in exec_module
File "serial/tools/list_ports.py", line 31, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 493, in exec_module
File "serial/tools/list_ports_posix.py", line 33, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 493, in exec_module
File "serial/tools/list_ports_osx.py", line 26, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 493, in exec_module
File "ctypes/__init__.py", line 7, in <module>
ImportError: dlopen(/var/folders/s7/4k66vxv13_bfml0f20lrmw7r0000gn/T/_MEICHH5Pn/lib-dynload/_ctypes.cpython-38-darwin.so, 2): Symbol not found: _ffi_closure_alloc
Referenced from: /var/folders/s7/4k66vxv13_bfml0f20lrmw7r0000gn/T/_MEICHH5Pn/lib-dynload/_ctypes.cpython-38-darwin.so (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libffi.dylib
in /var/folders/s7/4k66vxv13_bfml0f20lrmw7r0000gn/T/_MEICHH5Pn/lib-dynload/_ctypes.cpython-38-darwin.so
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "esptool.py", line 31, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 493, in exec_module
File "esptool/__init__.py", line 42, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 493, in exec_module
File "esptool/cmds.py", line 14, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 493, in exec_module
File "esptool/bin_image.py", line 14, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 493, in exec_module
File "esptool/loader.py", line 53, in <module>
AttributeError: module 'sys' has no attribute 'VERSION'
[691] Failed to execute script 'esptool' due to unhandled exception!