luma.examples: Luma.OLED RPI3 ImportError: No module named luma....
Sorry to be a pain but having spent an hour here and an hour there on this and followed through all the other people having similar issues, I still cannot get any of the examples to run on my RPI3 running the latest Raspian.
Iβve remove, installed, pulled the latest examples down and haveβ¦
luma.core (0.5.4)
luma.oled (2.2.5)
β¦both installed. Iβm also using pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
running python examples/demo.py gives:
Traceback (most recent call last):
File "examples/demo.py", line 17, in <module>
from luma.core.render import canvas
ImportError: No module named luma.core.render
and as another example, running python examples/welcome.py gives:
File "examples/welcome.py", line 14, in <module>
from luma.core.virtual import viewport, snapshot, range_overlap
ImportError: No module named luma.core.virtual
Any and all help would be much appreciated.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 24 (5 by maintainers)
@nishabe:
The pip installed on Jessie was quite old AFAICR, so we needed to bootstrap the latest pip and setuptools from pypi. Maybe that advice no longer applies on the latest Rasbian image.
You should just install the latest luma.oled from pypi using
sudo -H pip install --upgrade --force-reinstall --ignore-installed luma.oledand if you could post the output of that command herethanks again π @thijstriemstra
itβs because you installed luma using
sudo pip3. Take a look atvirtualenvwrapperlibrary to create a virtual environment where you can install and use luma without sudo.yea, try that command with
sudoThank you. It did fix it. π― Here is the output of the command: