question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Luma.OLED RPI3 ImportError: No module named luma....

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:24 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
rm-hullcommented, Dec 30, 2017

@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.oled and if you could post the output of that command here

1reaction
steelxcommented, Dec 10, 2019

thanks again 😃 @thijstriemstra

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source code for luma.core.cmdline
__all__ else: return [name for name, _ in inspect.getmembers(module, inspect.isclass) if name != "device"] except ImportError: return [].
Read more >
error with luma.led_matrix - Raspberry Pi Forums
"error in luma.led_matrix setup command: 'tests_require' must be a string or list of ... ImportError: No module named 'luma.led_matrix'
Read more >
Help with I2C OLED display : r/raspberry_pi - Reddit
I then found the examples and I attempted to run the clock.py and got the first ImportError: No module named 'demo_opts'. The OLED...
Read more >
No module named micropython - ElectronDepot
I am trying to install the ssd1327 driver for a oled display. Adafruit's library file won't install because. This library is not available...
Read more >
unable to install e-paper display, module epd2in7 not found
If you list the files in raspberrypi/python with ls , you should notice an epd2in7.py file among others. That is the missing module...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found