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.

Issue with installation

See original GitHub issue

I ran the setup.py from the recent update/changes from the output it looks like all went through correctly, however if I run “sudo python matrix_test.py” I get the following:

Traceback (most recent call last):
  File "matrix_test.py", line 8, in <module>
    import luma.led_matrix.legacy as legacy
ImportError: No module named luma.led_matrix.legacy

I also tried on another PiZero with install va PIP and received the same error/issue.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:29 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
frekelcommented, Feb 24, 2017

I can confirm that pip was the issue. Follow https://github.com/rm-hull/luma.led_matrix/issues/56#issuecomment-277845830 to get this running!

2reactions
rm-hullcommented, Jan 26, 2017

@mB-PiBox - as long as you’ve got a version of pip installed, it should self-update with:

$ sudo -H pip install --upgrade pip
$ pip --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

Next, something clearly something got corrupted along the way on your RPi, so I would suggest running:

$ pip list | grep luma

Then for each luma.* package listed, uninstall it:

$ sudo -H pip uninstall luma.core 
$ sudo -H pip uninstall luma.led_matrix

And so on …

Next re-install… In theory luma.core should be installed as a dependency, but for the sake of caution, do it explicitly:

$ sudo -H pip install luma.core luma.led_matrix

Pull the latest from the git repo (I just made some fixes to the demo), and inside the project root dir:

$ git pull

And retry the demo:

$ python examples/matrix_demo.py
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Identify Windows Installer issues · Click Start, click Run, type cmd, and then click Command Prompt. · At the command prompt, type the...
Read more >
How to Fix the Most Common Windows 10 Installation Problems
How to fix the most common Windows 10 installation problems · Run the Windows Update troubleshooter · Low disk space · ISO image...
Read more >
Fix problems installing Chrome - Google Chrome Help
If you get an error message when you try to download and install Google Chrome, try these fixes. Fix most installation errors.
Read more >
12 irritating Windows 10 installation issues, and how to fix them
Having trouble installing and setting up Windows 10? You aren't alone. Here are a dozen-plus of the most common problems, along with a...
Read more >
Fixed: “There is a problem with this Windows installer package ...
You have an outdated or damaged installer file. You might be trying to install an application with an old or corrupted installer file....
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