Error from Arduino Cloud when uploading to esp32

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!

Hello again,
At this point I successfully managed to uplaod my sketch from a windows 10 computer so my guess is that my esptool.py on Mac OS is being problematic. Still, I don't know wether this kind of error could come from the Arduino Cloud editor/ide or from My OS (python3.9.4 installed)
Thank you

I am also facing the same issue or getting the same error. I tried my also possibility to solve this, but I can't. I'm using window 7. so, I just confirm, this problem which facing is because of window 7...?

I think this is the cause of the error problem.

As reported here, the minimum compatible version is 10.15:

The best solution would be to update your operating system, but I realize that is not possible to do with some computers.

When using Arduino IDE on your computer, you can workaround this problem by using Boards Manager to install the last compatible version of the ESP32 boards platform: 1.0.6

That workaround is not available when using Arduino Cloud because there you have no option in which version of the ESP32 boards platform that is used because it is pre-installed on the Arduino Cloud servers (currently using version 2.0.4 of the platform).

Arduino periodically updates the boards platforms on Arduino Cloud, so this can cause things to break even when you didn't make any changes on your own computer. They recently updated the ESP32 boards platform from one of the 1.x versions (I think it was 1.0.5, but I'm not certain about that) to 2.0.4.

Is it the 32 bit version of Windows? If so, this is not supported, as reported here:

You can use the same workaround I mentioned above: use Arduino IDE instead of Arduino Cloud and install ESP32 boards platform version 1.0.6. If you would like instructions for doing that, I would be happy to provide them, but I would need to know which version of Arduino IDE you are using (the instructions are a little different for 1.x than for 2.x). For Windows 7, I think you will be best off to use Arduino IDE 1.8.19, since Arduino does not officially support Windows 7 on Arduino IDE 2.x (even though some users have reported it works):

https://www.arduino.cc/en/software#legacy-ide-18x

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