ESP32 / Arduino IDE problem - ModuleNotFoundError: No module named 'serial'

DronePilot
Posts: 7
Joined: Mon Mar 27, 2023 10:43 am

ESP32 / Arduino IDE problem - ModuleNotFoundError: No module named 'serial'

Postby DronePilot » Mon Mar 27, 2023 10:49 am

Hello forum!

I am trying to verify sample / example code for ESP32 and I got error every time:
Traceback (most recent call last):
File "/home/cc/.arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool.py", line 31, in <module>
import esptool
File "/home/cc/.arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool/__init__.py", line 41, in <module>
from esptool.cmds import (
File "/home/cc/.arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool/cmds.py", line 14, in <module>
from .bin_image import ELFFile, ImageSegment, LoadFirmwareImage
File "/home/cc/.arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool/bin_image.py", line 14, in <module>
from .loader import ESPLoader
File "/home/cc/.arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool/loader.py", line 30, in <module>
import serial
ModuleNotFoundError: No module named 'serial'

exit status 1

Compilation error: exit status 1
I have installed pyserial with command:

python -m pip install pyserial

but this did not solve the problem

I am using Linux Ubuntu and Arduino IDE.


Thanks for help!

User avatar
corz.org
Posts: 80
Joined: Fri Feb 03, 2023 10:44 pm
Location: Aberdeen
Contact:

Re: ESP32 / Arduino IDE problem - ModuleNotFoundError: No module named 'serial'

Postby corz.org » Tue Mar 28, 2023 3:31 am

What version of Python are you using?
Also, ensure you have the correct upload settings in your IDE.

NigelTwo
Posts: 1
Joined: Wed Mar 29, 2023 12:48 am

Re: ESP32 / Arduino IDE problem - ModuleNotFoundError: No module named 'serial'

Postby NigelTwo » Wed Mar 29, 2023 1:23 am

With LinuxMint21.1 (Ubuntu derivative) I found that installing the deb package esptool fixed this.

DronePilot
Posts: 7
Joined: Mon Mar 27, 2023 10:43 am

Re: ESP32 / Arduino IDE problem - ModuleNotFoundError: No module named 'serial'

Postby DronePilot » Tue Apr 11, 2023 9:20 am

Problem solved - I have installed Arduino IDE from "Ubuntu Software". Now IDE works good!

tempAccount123456
Posts: 1
Joined: Sun Apr 16, 2023 6:18 am

Re: ESP32 / Arduino IDE problem - ModuleNotFoundError: No module named 'serial'

Postby tempAccount123456 » Sun Apr 16, 2023 6:46 am

lol for me i was messing around with my usergroups. I am part of dialout but sometimes in couldnt see USB0 when using ls /dev/tty*. Somehow i ended up adding myself to a group with root and then chmodding group perms for rw. Worked. But not safe. Whatever though. Its my personal machine lol

Who is online

Users browsing this forum: Google [Bot] and 73 guests