Results 1 to 3 of 3

Thread: PyQt5 This application failed ... not find or load the Qt platform plugin "windows"

  1. #1
    Join Date
    May 2016
    Posts
    6
    Platforms
    Windows

    Default PyQt5 This application failed ... not find or load the Qt platform plugin "windows"

    Hello everybody,

    Absolute beginner with PyQt. And already stopped after the installation. I have run into the "This application failed to start because it could not find or load the Qt platform plugin "windows" " error.

    First what i try to do: i try to run PyQt5 in the 3d software Blender to create a tool panel there. For that i installed PyQt5 directly in Blender into the python directory. The PyQt5 folder is in 2.76\python\lib\site-packages\ . That way PyQt5 gets at least found. Which should be good enough to get started with some first experiments.

    Unfortunately Blender crashes with the above error when i try to run the first simple script from the PyQt5 introduction tutorial in Blender. The script can be found here: http://zetcode.com/gui/pyqt5/introduction/

    It also crashes with other simple scripts of that kind. So the problem seems not the script.

    What i tried so far:

    Gooled my ass off. Came up with the usual solutions to place libEGL.dll and qwindowsd.dll into the application path. Problem is, they already exists in the needed paths, they are part of the PyQt5 installation. As told, i have installed PyQt5 directly into the python/lib/site-packages directory for now. qwindows.dll is for example in 2.76\python\lib\site-packages\PyQt5\plugins\platforms\ . And i don't know where i should place those files elsewhere. Not that i haven't tried, but the effect was always the same.

    And that was basically what i have found as a possible solution. Which has lead me to this forum now.

    Blender Version: 2.76b
    Blenders internal Python version is 3.4.2 (default, Dec 7 2014, 18:21:18) [MSC v.1800 64 bit (AMD64)]
    PyQt5-5.5.1-gpl-Py3.4-Qt5.5.1-x64.exe (64 bit because i use 64 Bit Blender here. Problem?)
    Windows 7 home

    The qt.conf is in \2.76\python

    Qt Code:
    1. [Paths]
    2. Prefix = Lib/site-packages/PyQt5
    3. Binaries = Lib/site-packages/PyQt5
    To copy to clipboard, switch view to plain text mode 

    In case it plays a role, i have also native Qt installed besides PyQt5. Are there some possible conflicts with the PyQt5 installation?

    And besides everything, what did i wrong here? Does somebody of you have a tip for me how to solve this problem? Every help and hint is very welcome

    Kind regards

    Tiles

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,719
    Thanks
    259
    Thanked 760 Times in 750 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: PyQt5 This application failed ... not find or load the Qt platform plugin "window

    The qwindows.dll file needs to be in the platforms subdirectory under the executable, in this case probably Blender. See the article on Qt Deployment. If it is a 64-bit version of Python, then it needs the 64-bit version of the qwindows.dll file.

    I don't know much about Blender. If it is a Python app, and the Python distro was built using MS Visual Studio 2013 (which is what the "1800" implies), then your qwindows.dll will likely need to be one that was built with that version of the compiler. If the "exe" is actually Python, then the dll probably needs to be installed under its exe path.

  3. #3
    Join Date
    May 2016
    Posts
    6
    Platforms
    Windows

    Default Re: PyQt5 This application failed ... not find or load the Qt platform plugin "window

    Thanks for your answer d_stranz. You brought me at the right track

    I had the qwindows.dll already besides the blender.exe before. But it needs to be in a subfolder called platforms to be found. So simple once you know it.

    The panel is now showing, the crash is gone. Again thanks for your help
    Attached Images Attached Images

Similar Threads

  1. Replies: 11
    Last Post: 1st September 2014, 14:12
  2. Cound not find or load qt platform plugin windows... No working solution yet !
    By bouchebeu in forum Installation and Deployment
    Replies: 1
    Last Post: 28th October 2013, 01:52
  3. Failed to load platform plugin "windows"
    By Eos Pengwern in forum Installation and Deployment
    Replies: 1
    Last Post: 19th September 2013, 17:57
  4. cmake error with Failed to find "glu32" in ""
    By kennethadammiller in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2013, 00:12
  5. Replies: 1
    Last Post: 7th January 2013, 00:29

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.