I have compiled and uploaded a simple led blink sketch with Arduino on Win10 without issue. I am now attempting to do the same on Debian 10.
I am running Arduino 1.8.13. On my 1st attempt in Debian to upload the same sketch to the same ESP32-WROOM-32D, I received:
Code: Select all
Traceback (most recent call last):
File "/home/martin/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 37, in <module>
import serial
ImportError: No module named serial
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
Code: Select all
python setup.py build
sudo python setup.py install
But now I am receiving a new error:
Code: Select all
Arduino: 1.8.13 (Linux), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None"
Sketch uses 207705 bytes (15%) of program storage space. Maximum is 1310720 bytes.
Global variables use 15228 bytes (4%) of dynamic memory, leaving 312452 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Traceback (most recent call last):
Serial port /dev/ttyUSB0
Connecting...
File "/home/me/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 2959, in <module>
_main()
File "/home/me/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 2952, in _main
main()
File "/home/me/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 2653, in main
esp.connect(args.before)
File "/home/me/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 460, in connect
last_error = self._connect_attempt(mode=mode, esp32r0_delay=False)
File "/home/me/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 419, in _connect_attempt
self._setRTS(True) # EN=LOW, chip in reset
File "/home/me/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 391, in _setRTS
self._port.setDTR(self._port.dtr)
AttributeError: 'Serial' object has no attribute 'dtr'
AttributeError: 'Serial' object has no attribute 'dtr'