[SOLVED] ESP32-S3: python troubles

Hello everybody,

I have received a new ESP32-S3 board and I'm trying to test it by running one of the demo examples, namely the

arduino_gfx_demo

I got from here

When I try to compile it I get the following error:

WARNING: Category '' in library ESP RainMaker is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library WiFiProv is not valid. Setting to 'Uncategorized'
Traceback (most recent call last):
  File "/home/giulio/arduino-1.8.8/portable/packages/esp32/tools/esptool_py/4.2.1/esptool.py", line 31, in <module>
    import esptool
  File "/home/giulio/arduino-1.8.8/portable/packages/esp32/tools/esptool_py/4.2.1/esptool/__init__.py", line 42, in <module>
    from esptool.cmds import (
  File "/home/giulio/arduino-1.8.8/portable/packages/esp32/tools/esptool_py/4.2.1/esptool/cmds.py", line 14, in <module>
    from .bin_image import ELFFile, ImageSegment, LoadFirmwareImage
  File "/home/giulio/arduino-1.8.8/portable/packages/esp32/tools/esptool_py/4.2.1/esptool/bin_image.py", line 14, in <module>
    from .loader import ESPLoader
  File "/home/giulio/arduino-1.8.8/portable/packages/esp32/tools/esptool_py/4.2.1/esptool/loader.py", line 21, in <module>
    import serial
ModuleNotFoundError: No module named 'serial'
exit status 1
Error compiling for board ESP32S3 Dev Module.

Serial module is missing.... :thinking: This is very strange.
I already set the python environment for the Visual Studio Code without problems by making it pointing at my absolute python path:

/usr/local/bin/python3.8

What python version is Arduino IDE pointing to?
(As I see it uses the one in the esp32 packages... there is a way to change that?)

It might not solve your problem but one thing that I would look at is to make sure you only have one serial module installed and that module should be pyserial. If there are other serial modules then uninstall them

You addressed me in the right direction!
Today I have installed the Python 3.8.1 to make Visual Studio Code finally working, but I forgot to add the command

pip3 install pyserial

to get the serial module for the version 3.8.1 too. :grinning:
Now the problem with the serial module has gone away!

P.S.
I have a more "affordable" compilation error now:

arduino_gfx_demo:2:10: error: Arduino_GFX_Library.h: No such file or directory

I do not use the arduino IDE since more than one year, but I think I can manage that... (I hope).
THANKS!