How to fix qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" error
-
Hi,
You should have had way more messages than that. There should be a full plugin dump.
-
@SGaist Thats all i got. Maybe i'm doing something wrong? i used this: os.environ["QT_DEBUG_PLUGINS"] = "1"
@Gokalp said in How to fix qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" error:
i used this: os.environ["QT_DEBUG_PLUGINS"] = "1"
This is not going to work this way.
Set it in a terminal and then start your app in this terminal. -
@Gokalp said in How to fix qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" error:
i used this: os.environ["QT_DEBUG_PLUGINS"] = "1"
This is not going to work this way.
Set it in a terminal and then start your app in this terminal. -
@jsulm said in How to fix qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" error:
os.environ["QT_DEBUG_PLUGINS"] = "1"
How can i set it in the terminal?
-
Can you retry with an environment stored in a path without space or accented character ?
-
@SGaist How can i do that? My brother happened to be at home when this pc arrived so he made the username his name which contains Ö and Ğ characters... I tried to change the username several times but it never changed on the terminal so i really don't know what to do. Maybe there is another way that i can do what you're saying?
-
Install your python environment in a folder starting from the root of your disk. For example "C:/Code/name_of_your_environment".
-
Install your python environment in a folder starting from the root of your disk. For example "C:/Code/name_of_your_environment".
-
How did you install Python ?
How are you managing your virtual environments ? -
Then I would recommend reconsidering that modus operandi.
-
@SGaist I have never messed with environments, i installed python from its site and used it globally. All of my modues are also installed globally.
@Gokalp said in How to fix qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" error:
i installed python from its site
Which site?
Using Python installer from official Python website allows you to select the installation folder. -
@Gokalp said in How to fix qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" error:
i installed python from its site
Which site?
Using Python installer from official Python website allows you to select the installation folder. -
So what happens now ?
-
Might be the space in the path.
-
I know it is looks like not an answer but stupid mistake, but I step on that rakes ones again and according to some questions on "StackOverflow" not only me.
I placed.exe
file alongside with all.dlls
bywindeployqt
and with folderplugins
containing my plugin. The problem appears when I load plugin in my app. Solution is pretty simple: I runwindeployqt
for my.exe
but myplugin.dll
requires own specific dlls and I didn't place them along. Putting all.exe's
andplugin's
dlls together helped me to get rid of that message.