-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with installation #56
Comments
What is the output of:
Also:
One should work, one shouldn't - I cant remember which dir they are deployed to by default. It should list something like:
Also which version of pip are you using?
|
@mB-PiBox - can you try running the example from the project root directory:
Also, you shouldn't strictly need to use sudo if you add your user to the relevant spi and gpio groups:
(you'll need to log out and back in again for this to take effect) |
(same on both PiZeros) There is no luma folder under dist-packages or site-packages. running
|
Could you try upgrading your pip version, and then try re-installing?
|
Why not from luma.led_matrix import legacy. Why import legacy as legacy? |
@rm-hull I'll have to work on updating pip later, with Raspbian python come packaged within which uses python-pip via apt-get (which is not updated often, unfortunately.) So I'll have to install an updated PIP version manually from 'get-pip.py' which supposedly could 'cause issues if python is managed by the OS. I'm going to have to figure/find out how to get the current install of python removed from OS control, and install python manually via download from python.org. Work is super busy at the moment, so I don't have time to play around with it, and certainly no time if something breaks to fix it... so I will put this on hold for a short time until I can get back too it. Hopefully this will be soon, as I've been looking for Vertical scrolling on the matrix for some time to complete several projects that have been on hold. I'll post back if all work or not when I get that time to work on it. Thank you for taking the time to review the issue, and big thanks for the update with vertical scrolling ;) |
@mB-PiBox take a look at virtualenv, no need to install a python from source. |
Good point... it was late, i have no other excuse ;-) |
Alright cool, I thought it was some other python voodoo. I'll open PRs where I encounter it. |
@rm-hull the other example is still using the incorrect max7219 import |
Yes, I hadn't got round to updating it yet... There's an outstanding ticket to address this: #54 |
@rm-hull is it correct the matrix example doesn't fully work yet? It's only displaying parts of the whole demo, e.g. the alternative font stuff is not displaying anything. The 7-segment example worked fine. |
If you look here, I tried it with 2 daisy chained devices: https://github.com/rm-hull/luma.led_matrix/blob/master/examples/matrix_demo.py#L17 If you've only got one device, change it to be |
@mB-PiBox - as long as you've got a version of pip installed, it should self-update with:
Next, something clearly something got corrupted along the way on your RPi, so I would suggest running:
Then for each luma.* package listed, uninstall it:
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:
Pull the latest from the git repo (I just made some fixes to the demo), and inside the project root dir:
And retry the demo:
|
I changed the |
@rm-hull I tried all things I could think of to update pip, including your example command. Unfortunately they all return the same
|
Yea, it's not possible to upgrade the system pip for some reason. with sudo doesnt help either. that's why a virtual environment is probably a better idea, where you can freely update your packages. |
I was running a very old version of pip (same as yours) and I encountered this message as well, although pip did actually update. Have you rebooted since?
Here's what I used to update pip:
sudo pip install --upgrade pip
|
@mB-PiBox Also, try with -i if that doesn't work:
Ultimately, perhaps the only way out of this is to go down the I don't remember having any of this bother upgrading pip, but appreciate when things do wrong they generally go spectacularly wrong. I think part of the reason why we're seeing these issues is that we've used some setup features that the stock pip on RPi doesn't support, and this leaves packages installed in a broken state. |
This comment suggests: download pip:
Then run the following (even if it is already installed):
Looking at the other comments in that thread I suggest we use these instructions as well. Fuck system pip 👎 |
@rm-hull works great now, thanks. For this ticket I suggest updating the pip installation instructions and letting people know they have to upgrade or this package will be broken :( |
Hello, I used a pi-top at first finding out no pip update was done as it was owned bi the OS. SPI is turned ON Did following as well: ...just to make sure: also used $ sudo -H pip install luma.core luma.led_matrix Still loads of errors of modules not found when running matrix_demo.py When doing pip list grep luma .... I do get: Now this last line says luma.led-matrix (0.4.4) and not luma.led_matrix (0.4.4) But anyway I do not know what to do to get it to work. Some advise anyone? |
Hi @Pete-r61, The default version of pip installed on Raspian is really old and I think this is the cause of issues people are having. Can you confirm which version of pip you have? try:
If yours reports a different version from 9.0.1, can you try:
Make sure there are no stray And then try and re-install:
This is what I see:
So I don't think the underscore / dash in the name is a problem per se. |
problem seems pip... but I can not install 9.0.1... While using the install cmd this version is downloaded... but even on this RP2 (so no pi-top) it is not installed ...it says: pi@raspberrypi:~ $ sudo pip install --upgrade pip pi@raspberrypi:~ $ sudo pip --version So if problem is the version of pip.... then how can I get it installed. Seems OS blocks it. |
@Pete-r61 can you try these instructions: #56 (comment) |
@Pete-r61 it looked like pip 9.0.1 installed ok, but 1.5.6 still takes preference. Try:
Hopefully it should report 9.0.1 now. I updated the install instructions yesterday to reflect this. If you then resume as per here: |
I can confirm that pip was the issue. Follow #56 (comment) to get this running! |
@rm-hull let's include these instructions and close this ticket? what's the current status? |
The install instructions reflect the fact that pip 9.0.1 is required, and what steps are needed to get there. |
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:
I also tried on another PiZero with install va PIP and received the same error/issue.
The text was updated successfully, but these errors were encountered: