I would like to bring LVGL into the LoBo (https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/) Micropython in order to be able to use this GUI library there.
First I cloned the Micropython according to these instructions (https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/build). Without the following steps, everything goes smoothly for compiling and flashing.
Next, according to these instructions (https://github.com/lvgl/lv_binding_micropython#adding-micropython-bindings-to-a-project) I tried to implement LVGL. In micropython / lib I first cloned the lv_binding_micropython from git, changed the required files and tried to run gen_mpy.py. This crashes with the following error message:
Traceback (most recent call last):
File “gen_mpy.py”, line 17, in
from functools import lru_cache
ImportError: cannot import name lru_cache
Now I don’t know what to do next. I’ve installed and tried it on Ubuntu (WSL), Debian (WSL) and Kali (WSL), as well as Ubuntu (desktop). I’m assuming there is a problem with gen_mpy.py.
What I specifically entered:
sudo apt-get update
sudo apt-get install git wget make libncurses-dev flex bison gperf python
git clone --depth 1 https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo.git
cd MicroPython_ESP32_psRAM_LoBo/MicroPython_BUILD/
./BUILD.sh menuconfig
cd micropython/lib/
git clone https://github.com/lvgl/lv_binding_micropython.git
cd lv_binding_micropython/gen
python gen_mpy.py
>>>Traceback (most recent call last):
File "gen_mpy.py", line 17, in <module>
from functools import lru_cache
ImportError: cannot import name lru_cache