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.

No module named luma.led.matrix.device

See original GitHub issue

I’ll start by apologising, I’m new to python and raspberry pi. I have very limited programming experience from when I used to mess around with some things a few years ago but mostly forgotten.

I’m trying to program an array of 4 8x8 LED matrices to display crypto currency prices. Right now Im stuck on the basics

I’ve cloned the repository, and when I try to run $ python examples/matrix_demo.py i get hit with Traceback (most recent call last): File "examples/matrix_demo.py", line 10, in <module> from luma.led_matrix.device import max7219 ImportError: No module named luma.led_matrix.device

My pip version is 9.0.1 and python version 2.7

I’ve been trying to figure out why its happening but I really dont know Please help 😦

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rm-hullcommented, Apr 9, 2018

@boringtrousers - see comment https://github.com/rm-hull/luma.examples/issues/24#issuecomment-379677387 - maybe a force reinstall will work for you?

Obviously the package would be different:

sudo -H pip install --upgrade --force-reinstall --ignore-installed luma.led_matrix
1reaction
boringtrouserscommented, Apr 19, 2018

Thank you, I saw your comment but I haven’t been able to try this for the past couple of weeks, as I have been away. Just tried force reinstalling and it fixed the problem. Thanks a lot

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'luma.led_matrix'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'luma.led_matrix' How to remove the Mo.
Read more >
error with luma.led_matrix - Raspberry Pi Forums
This is driving me nuts! I am trying to setup the environment for my led modules Max7219 but every time I try I...
Read more >
luma.led-matrix - PyPI
Version Description Date 1.6.1 Trigger publish on github actions 2022/01/09 1.6.0 Remove redundant ws2812 package 2022/01/03 1.4.1 Make contrast an optional constructor argument 2019/12/08
Read more >
Installation - Luma.LED_Matrix - Read the Docs
If you have no /dev/spi files and nothing is showing using lsmod then this implies the kernel SPI driver is not loaded. Enable...
Read more >
8 x 8 LED array driven by max7219 on the Raspberry Pi via ...
I could not find enough data on the device to answer that. ... Going a little nuts here: I get a “No 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