<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Calibri;
color:windowtext;}
span.msoIns
{mso-style-type:export-only;
mso-style-name:"";
text-decoration:underline;
color:teal;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Hey Elvis,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">That was a good idea, thank you. Dependency Walker isn’t exactly perfect on Windows 10 but its still useable. Unfortunately I didn’t see anything blatantly obvious as missing.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Thanks again,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Nathan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">Elvis Stansvik <elvstone@gmail.com><br>
<b>Date: </b>Wednesday, May 31, 2017 at 11:38 PM<br>
<b>To: </b>Nathan Warmerdam <nbwarmerdam@integrated-informatics.com><br>
<b>Cc: </b>PyQT mailing list <pyqt@riverbankcomputing.com><br>
<b>Subject: </b>Re: [PyQt] PyQt5 for Python 2.7 on Windows 10<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p>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? <o:p></o:p></p>
<p>The other option is that it is found, but cannot be loaded for some reason.<o:p></o:p></p>
<p>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.<o:p></o:p></p>
<p>Elvis<o:p></o:p></p>
<p>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><o:p></o:p></p>
</div>
</body>
</html>