onlaj / Piano-LED-Visualizer

Piano LED Visualizer: Connect an LED strip to your Raspberry Pi and create an immersive visual experience for your piano playing
MIT License
545 stars 115 forks source link

Flask #243

Closed Logan-Orr closed 3 years ago

Logan-Orr commented 3 years ago

So, this project has been working fine, but one day i turned it on and it did not boot, it was stuck at the white screen, I reinstalled the software, it worked. But, I still had to update it, I updated it and tried to boot it, same thing. Did not work. I was able to ssh into it and it said the it was missing something called Flask, I did not do anything to the software in any way that would make it stop working, please help.

Here is the error after updating: C84572F7-4C56-4E98-AC14-FD24BDEAAD2D

onlaj commented 3 years ago

Hello. Sorry for this inconvience, but in latest updates I added a lot of new features which requires additional libraries. You can install them using command:

sudo pip3 install -r requirements.txt

Logan-Orr commented 3 years ago

Do I reinstalled then do this, cause it gives me this error CCB49047-3EF8-432A-B616-7B0EA0FCDDD7

onlaj commented 3 years ago

You need to be in visualizer directory

cd /home/Piano-LED-Visualizer/

Logan-Orr commented 3 years ago

Ok

Logan-Orr commented 3 years ago

Now this; ![Uploading 55F10104-3471-47E0-93F5-03971022B51B.png…]()

Logan-Orr commented 3 years ago

7BD4E19B-5A71-4FC0-8E94-93B8B2329940

Logan-Orr commented 3 years ago

Maybe I installed the wrong version?

Logan-Orr commented 3 years ago

Should I try to restart?

onlaj commented 3 years ago

What did it show after sudo pip3 install -r requirements.txt?

Logan-Orr commented 3 years ago

It installed everything, no error

Logan-Orr commented 3 years ago

Including flask

onlaj commented 3 years ago

Try to restart then, you can check installed packages with pip3 list

Logan-Orr commented 3 years ago

Like reintall and stuff Everythings there on the list, flask is 2.0.1

onlaj commented 3 years ago

For now just restart RPi, I doubt it will help but it's worth a try

Logan-Orr commented 3 years ago

K

Logan-Orr commented 3 years ago

Yeah did not work

Logan-Orr commented 3 years ago

Would this mean that it will not work for everyone else?

onlaj commented 3 years ago

Works for me, other users also tested latest update and no one reported problems with importing flask module.

I will soon make new release with everything configured.

Logan-Orr commented 3 years ago

Should I re download the image of the github page and use that have you updated the image recently

onlaj commented 3 years ago

No, image is not updated. btw. try to sudo pkill python3 before launching new script. When you ssh it autostart script, maybe you have moer scripts running and it can cause some problems.

Logan-Orr commented 3 years ago

Where am I supposed ptut this

Logan-Orr commented 3 years ago

You can just tell me the exact instructions or walkthrough of this like what commands to enter and when

onlaj commented 3 years ago

SSH to your RPi, then go into visualizer directory cd /home/Piano-LED-Visualizer/

stop all python scripts, just in case sudo pkill python3

start script sudo python3 /home/Piano-LED-Visualizer/visualizer.py

Logan-Orr commented 3 years ago

Did not work

onlaj commented 3 years ago

What does it show? Still the same error?

Logan-Orr commented 3 years ago

same error

Logan-Orr commented 3 years ago

I just installed a fresh software and its booted, and still on the old version, so no learn midi etc

Logan-Orr commented 3 years ago

what do I do now

onlaj commented 3 years ago

Well, I can only recommend that you reinstall everything (maybe try to follow manual setup?) or wait till I release new image.

I'd like to finish the webinterface first tho; hopefully, I'll be able to do it this week.

Logan-Orr commented 3 years ago

I GOT IT, what you have to do is run sudo pip3 install Flask before you update, and then right after you update, you have to install the requirements again before you reboot

Logan-Orr commented 3 years ago

oh and the web interface is cool! Keep working on it