<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
To continue my habit of answering my own questions...<br>
<br>
Option 2) from below is the correct one and the reason _socket was
failing to be imported was because I had neglected to pick up the
necessary pyd files...<br>
<br>
My application now compiles and just about limps along (*lots* of
things I need to fix yet!).<br>
<br>
Just want to add a huge thank you to Phil for all your tireless work
on PyQt, sip, pyqtdeploy and all the other things you do.<br>
<br>
Cheers, Rob<br>
<br>
<div class="moz-cite-prefix">On 05/02/2016 18:28, Robert Kent wrote:<br>
</div>
<blockquote cite="mid:56B4E9B5.4060304@gulon.co.uk" type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Hi Phil,<br>
<br>
Having successfully got my application to build on MacOSX, I am
now attempting to do the same on Windows.<br>
<br>
Just for clarity, my setup is as follows:<br>
<br>
Windows 7<br>
MSVC 10.0<br>
Python 3.4.2<br>
Qt5.4<br>
PyQt5.4<br>
pyqtdeploy 1.2<br>
<br>
I have created a static build of all the required modules and have
successfully created a tiny test app that works. I have now got
the stage of attempting to include some .pyd files and am
thoroughly stuck. I have tried:<br>
<br>
1) The method as detailed in the documentation of placing the pyd
with a qualified name in the same directory as the output exe and
setting the sys.path correctly. This runs however I get: <font
face="Courier New, Courier, monospace">ImportError: Don't know
how to import numpy.core.multiarray (type code 3)</font>.
Thinking that this might be the joys of Windows and static
python/dynamic loading issue I tested it using both importlib and
imp and found that the load_dynamic() method is indeed undefined.<br>
<br>
2) I have now tried to configure my project to use the dynamic
Python as delivered by the MSI installer and have therefore set
the project to use platform python and pointed the include/lib
fields at my native install directories. This builds, but fails to
run as it can't import '_socket'. As this in one of the native c
bits and should therefore (I presume) be in the Python DLL I am
left wondering what the hell I've done wrong.<br>
<br>
I would really appreciate some guidance as to how to proceed now
either or a different path.<br>
<br>
Thanks very much indeed as always, Rob<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
<br>
</body>
</html>