scottlawsonbc / audio-reactive-led-strip

:musical_note: :rainbow: Real-time LED strip music visualization using Python and the ESP8266 or Raspberry Pi
MIT License
2.68k stars 644 forks source link

Cant get the GUI to work #247

Open djp2squared opened 4 years ago

djp2squared commented 4 years ago

In the Config file if i put use gui=False all is good, if i change to =True it spits this out at me. I'm using anaconda python 3.5, I'm also fairly new to python so any help is much appreciated.

(visualization-env) C:\Users\MyPC\Desktop\lights\python>python visualization.py QObject::moveToThread: Current thread (0x375f240) is not the object's thread (0x375fb20). Cannot move to target thread (0x375f240)

This application failed to start because it could not find or load the Qt platform plugin "windows" in "".

bjornstevens commented 4 years ago

What Windows version are you using? (Windows key + R and type out winver and hit ENTER)

djp2squared commented 4 years ago

It's Windows 7 pro, Ver 6.1 (build 7601: SP1)

bjornstevens commented 4 years ago

Hmm, i've never tested in Windows 7. You know Windows 7 won't be supported anymore next year right? Might be some things to do with Windows 7 then.

joeybab3 commented 4 years ago

Can you run echo %QT_PLUGIN_PATH% in command prompt (Win + r, cmd, enter) and let me know what it outputs?

djp2squared commented 4 years ago

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\MyPC>echo %QT_PLUGIN_PATH% %QT_PLUGIN_PATH%

C:\Users\MyPC>cd/

C:>echo %QT_PLUGIN_PATH% %QT_PLUGIN_PATH%

djp2squared commented 4 years ago

OK so i found out my virus software was causing some issues. Instead now i get this.

Also I have updated to Windows 10 pro version 1909(OS Build 18363.476)

Traceback (most recent call last): File "visualization.py", line 257, in import pyqtgraph as pg File "C:\ANACONDA\envs\visualization-env\lib\site-packages\pyqtgraph__init__.py", line 13, in from .Qt import QtGui File "C:\ANACONDA\envs\visualization-env\lib\site-packages\pyqtgraph\Qt.py", line 153, in from PyQt5 import QtGui, QtCore, QtWidgets, uic ImportError: DLL load failed: The specified module could not be found.

bjornstevens commented 4 years ago

Try using Anaconda. I got the exact same issue with the DLL, on my notebook and workstation. Using anaconda seemed to fix it

djp2squared commented 4 years ago

I am using anaconda, the latest version.

inange commented 4 years ago

I am using win10 so can't promise that this will work Uninstall pyqtgraph, PyQt5 by typing pip uninstall pyqtgraph and pip uninstall PyQt5 then pip3 install pyqtgraph and pip3 install PyQt5 i think pip3 is the trick here, but not sure

tungheo commented 4 years ago

use python 2.7.17