<p dir="ltr">Den 31 maj 2017 2:31 fm skrev "Nathan Warmerdam" <<a href="mailto:nbwarmerdam@integrated-informatics.com">nbwarmerdam@integrated-informatics.com</a>>:<br>
><br>
> Hello All,<br>
><br>
>  <br>
><br>
> I have built (with commercial license) PyQt5 for python 2.7.  I used VS 2015 and packaged my build with what I believe to be the appropriate windows redistributables.<br>
><br>
>  <br>
><br>
> With the resulting build I have had success getting it to run on an independent (i.e. not the build machine) Windows 8.1 machine. <br>
><br>
>  <br>
><br>
> However when attempting to get it to run on a Windows 10 I have run into the dreaded:<br>
><br>
> This application failed to start because it could not find or load the Qt platform plugin “windows”<br>
><br>
>  <br>
><br>
> This is usually a sign that the qt.conf is bad but why would it work on Windows 8 but not Windows 10? </p>
<p dir="ltr">The other option is that it is found, but cannot be loaded for some reason.</p>
<p dir="ltr">Perhaps take a look at qwindows.dll with Dependency Walker on the Win 10 machine (or dumpbin /dependents from a VS command prompt if you have one) to see if something is missing, though I expect the dependencies to be minimal.</p>
<p dir="ltr">Elvis</p>
<p dir="ltr"> Furthermore it does not work even if I put a qt.conf file right next to the python.exe.<br>
><br>
>  <br>
><br>
> I have followed the file structure used by Phil in the Python 3 version of PyQt5 (e.g. PyQt5\Qt\bin and PyQt5\plugins, etc) and modified the __init__.py file to set various environment variables.  Like this:<br>
><br>
>  <br>
><br>
> import os<br>
><br>
> import sys<br>
><br>
> dir_name = os.path.dirname(__file__)<br>
><br>
>  <br>
><br>
> _path = os.path.dirname(__file__) + '\\Qt\\bin;' + os.environ['PATH']<br>
><br>
> os.environ['PATH'] = _path<br>
><br>
>  <br>
><br>
> os.environ['QML_IMPORT_PATH'] = os.path.join(dir_name, 'Qt', 'qml')<br>
><br>
> os.environ['QML2_IMPORT_PATH'] = os.path.join(dir_name, 'Qt', 'qml')<br>
><br>
>  <br>
><br>
> os.environ['QT_PLUGIN_PATH'] = os.path.join(dir_name, 'Qt', 'plugins')<br>
><br>
>  <br>
><br>
> os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = os.path.join(dir_name, 'Qt', 'plugins', 'platforms')<br>
><br>
>  <br>
><br>
> However the message persists.<br>
><br>
>  <br>
><br>
> As I said, it works on independent Windows 8.1 machines but not with Windows 10.  Does anyone have any tips or experience or success with PyQt5 for python 2.7 on Windows 10?<br>
><br>
>  <br>
><br>
> With respect,<br>
><br>
> Nathan<br>
><br>
><br>
> _______________________________________________<br>
> PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
> <a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></p>