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
498 stars 107 forks source link

from werkzeug.utils import safe_join #450

Closed Sadvarsco closed 1 year ago

Sadvarsco commented 1 year ago

This is the error I get trying to run the visualizer

sudo python3 /home/Piano-LED-Visualizer/visualizer.py Socket listening on: 192.168.2.10:8765 Traceback (most recent call last): File "/home/Piano-LED-Visualizer/visualizer.py", line 17, in from webinterface import webinterface File "/home/Piano-LED-Visualizer/webinterface/init.py", line 43, in from webinterface import views_api File "/home/Piano-LED-Visualizer/webinterface/views_api.py", line 3, in from werkzeug.utils import safe_join ImportError: cannot import name 'safe_join' from 'werkzeug.utils' (/usr/lib/pyth on3/dist-packages/werkzeug/utils.py)

Can anyone help me? I think if I just disable web interface itll work, but I was planning on relying on that.

Sadvarsco commented 1 year ago

I ended up changing "werkzeug.utils" to "werkzeug.security"