[SOLVED] Arduino 1.8.19 compile error : ImportError: no module named serial [Raspberry Pi]

EdtheWino
Posts: 13
Joined: Sun Jan 09, 2022 7:03 pm

[SOLVED] Arduino 1.8.19 compile error : ImportError: no module named serial [Raspberry Pi]

Postby EdtheWino » Sun Mar 13, 2022 12:58 am

Using a Raspberry Pi platform I am getting a "no module named serial" error on compile of ESP32 sketch under 1.8.19 Arduino IDE.

The Espressif library is installed. Does anyone know what causes this error generation or how to correct it? I have installed python3.

Code: Select all

Traceback (most recent call last):
  File "/home/pi/.arduino15/packages/esp32/tools/esptool_py/3.1.0/esptool.py", line 38, in <module>
    import serial
ImportError: No module named serial
Multiple libraries were found for "WiFi.h"
 Used: /home/pi/.arduino15/packages/esp32/hardware/esp32/2.0.2/libraries/WiFi
 Not used: /home/pi/Arduino/libraries/WiFiNINA
 Not used: /opt/arduino-1.8.19/libraries/WiFi
exit status 1
Error compiling for board ESP32 Dev Module.


EdtheWino
Posts: 13
Joined: Sun Jan 09, 2022 7:03 pm

Re: [SOLVED] Arduino 1.8.19 compile error : ImportError: no module named serial [Raspberry Pi]

Postby EdtheWino » Fri Mar 18, 2022 1:02 am

Solution:

Code: Select all

sudo apt install python-is-python3

Who is online

Users browsing this forum: No registered users and 135 guests