audio-reactive-led-strip icon indicating copy to clipboard operation
audio-reactive-led-strip copied to clipboard

Cant get the GUI to work

Open djp2squared opened this issue 5 years ago • 10 comments

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 "".

djp2squared avatar Nov 11 '19 19:11 djp2squared

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

bjornstevens avatar Nov 12 '19 15:11 bjornstevens

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

djp2squared avatar Nov 12 '19 16:11 djp2squared

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.

bjornstevens avatar Nov 12 '19 16:11 bjornstevens

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

joeybab3 avatar Nov 14 '19 03:11 joeybab3

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 avatar Nov 14 '19 17:11 djp2squared

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.

djp2squared avatar Nov 19 '19 07:11 djp2squared

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

bjornstevens avatar Nov 19 '19 18:11 bjornstevens

I am using anaconda, the latest version.

djp2squared avatar Nov 19 '19 20:11 djp2squared

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

inange avatar Nov 30 '19 12:11 inange

use python 2.7.17

tungheo avatar Mar 31 '20 16:03 tungheo