Qt Platform Plugin Windows

This application failed to start because it could not find or load the Qt platfo rm plugin 'windows '. Available platform plugins are: minimal (from C: Python27 lib site-packages PyQt 5 plugins platforms), offscreen (from C: Python27 lib site-packages PyQt5 plugin s platforms), windows (from C: Python27 lib site-packages PyQt5 plugins platform s). Reinstalling the application may fix this problem.

Mar 11, 2018 - This application failed to start because it could not find or load the Qt platform plugin 'windows' in '. Reinstalling the application may fix this.

Having encountered the problem in the past, I could solve it by appending the plugins by hand like this. Import os import sys import PyQt5 dirname = os.path.dirname(PyQt5. __file__) plugin_path = os.path.join(dirname, 'plugins ', 'platforms ') os.environ[ 'QT_QPA_PLATFORM_PLUGIN_PATH '] = plugin_path from PyQt5 import QtWidgets app = QtWidgets.QApplication(sys.argv) However this produces the same error. The odd thing is that it says it can't load the plugin, and then lists the plugin as one of the available ones. Maybe a permission issue?

Yet permissions on the files are unlocked and even replacing it with the source original from the Qt installation yields the same results. Removing the plugin from the directory correctly removes it from plugins found.

Depends.exe Running depends on qwindows.dll yields a few interesting results. However each of these are available directly within the PyQt5 Python package directory.

It works If keeping the original installation of Qt on the PATH, PyQt5 seems to work. From a terminal. Seems to work now. Here are the changes: • Compiled using Qt 5.3.1 rather than 5.3.2 as • Binaries was coming from the Python 3 binaries supplied via but are now coming directly from the Qt distribution.

Shabloni dlya kruzhek png images. • __init__.py now initialises PATH and QT_QPA_PLATFORM_PLUGIN_PATH Platform plug-ins The Riverbank distribution ships with a qt.conf which initialises the PATH and platform plugin path, this release instead initialises these via the __init__.py so as to not need to provide the qt.conf file. Pre-requisities To run this VS2013 compiled release of PyQt5, you'll need the.

Okay, I am using PyCharm, but I am using Python27's python.exe (checked using your code). I think I have the problem. I was running python -c 'import util;util.createqtconf()' from the downloaded directory, so all of the path information was pointing to Downloads python-qt5, instead of the one in site-packages. Lynda c sharp essential training download for windows. I am not sure about the qt.conf.

It currently is pointing to Lib site-packages PyQt5. So having the install directory solved this issue, but raised another, it is trying to find my QtQml dll in my downloads (which doesn't exist).

EDIT: And none of the potential answers have done anything. I think I might need to poke around in my PATH and make sure things are pointing to the right places. EDIT2: Still nothing. I have my PATH pointing towards the right folders, but I still have the problem.

So I got this to work before, and now it's not working again:( PyInstaller Bootloader 3.x LOADER: executable is Q: exec win dist main main.exe LOADER: homepath is Q: exec win dist main LOADER: _MEIPASS2 is NULL LOADER: archivename is Q: exec win dist main main.exe LOADER: No need to extract files to run; setting extractionpath to homepath LOADER: SetDllDirectory(Q: exec win dist main) LOADER: Already in the child - running user's code. LOADER: Python library: Q: exec win dist main python27.dll LOADER: Loaded functions from Python library. LOADER: Manipulating environment (sys.path, sys.prefix) LOADER: sys.prefix is Q: exec win dist main LOADER: Setting runtime options LOADER: Initializing python LOADER: Overriding Python's sys.path LOADER: Post-init sys.path is Q: exec win dist main LOADER: Setting sys.argv LOADER: setting sys._MEIPASS LOADER: importing modules from CArchive LOADER: extracted struct LOADER: callfunction returned. LOADER: extracted pyimod01_os_path LOADER: callfunction returned.

LOADER: extracted pyimod02_archive LOADER: callfunction returned. LOADER: extracted pyimod03_importers LOADER: callfunction returned. LOADER: Installing PYZ archive with Python modules.

LOADER: PYZ archive: out00-PYZ.pyz LOADER: Running pyiboot01_bootstrap.py LOADER: Running pyi_rth_qt5.py Qt: Untested Windows version 10.0 detected! LOADER: Running pyi_rth_qt5plugins.py LOADER: Running pyi_rth_win32comgenpy.py LOADER: Running main.py RUNNING SMARTSHARE: Q: exec win dist main PyQt5 plugins platforms This application failed to start because it could not find or load the Qt platform plugin 'windows'. Here is what I did: • I used the git clone directly to get PyQt version 5.4.0 • I put this line at the very top of my script before Qt is used: import sys; import os; os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = os.path.join(sys._MEIPASS, 'PyQt5', 'plugins', 'platforms') • I removed the qt.conf files from the pyinstaller dist folder • I checked that the pyinstaller dist folder did indeed have PyQt5/plugins/platforms with a qwindows.dll in it.