0
votes

when compiling a code in Arduino Idea get this error:

Traceback (most recent call last): File "/home/user/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 37, in import serial ImportError: No module named serial

exit status 1 Error compiling for board DOIT ESP32 DEVKIT V1.

2
Compile errors are difficult to diagnose without at least some code.Mode77

2 Answers

3
votes

you should install serial package. use this code:

# For debian base linux
sudo apt-get install python-serial
# For Centos
sudo yum install python3-serial
# For Fedora
sudo dnf install python3-serial
0
votes
sudo apt-get install python-serial

This worked for me. I am using a Linux Machine.