Closed outdoorbits closed 11 months ago
@outdoorbits I would make a virtual environment first, e.g.:
python3 -m venv ~/luma-venv
And then install luma.oled using:
~/luma-venv/bin/python -m pip install luma.oled
And exectute your scripts using that python, e.g.
~/luma-venv/bin/python /path/to/script.py
Looks like the docs need to be updated..
At first thank you for this project, it takes an important role on my project https://github.com/outdoorbits/little-backup-box. Since Paspberry Pi OS bookworm I have the following problem: My former installation by
sudo -H pip3 install luma.oled
breaks now:Then I found, the luma packages are in the repository now. So I installed:
sudo apt install python3-luma.core python3-luma.emulator python3-luma.lcd python3-luma.led-matrix python3-luma.oled
But my script
breaks, giving this error:
ImportError: cannot import name 'sh1107' from 'luma.oled.device' (/usr/lib/python3/dist-packages/luma/oled/device/__init__.py)
In the documentation sh1107 is still available, but not into the module.
Thank you!
Type of Raspberry Pi
RPi 4B 8GB
Linux Kernel version
5.15.0-86-generic #96-Ubuntu SMP Wed Sep 20 08:23:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Expected behaviour
import the modules
Actual behaviour
script breaks