<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">I had the same issue when using virtualenv (the python3.dll was not copied). When I use python3 -m venv instead, the dll is copied and PyQt5 does work inside the virtual environment.</div>
<div name="messageSignatureSection"><br />
--<br />
Cosimo Lupo</div>
<div name="messageReplySection"><br />
31 mar 2017, 22:09 +0100, Barry <barry@barrys-emacs.org>, ha scritto:<br />
<blockquote type="cite">Isn't the problem that the venv did not get a copy of a dll that is critical to the python3 world?<br />
<br />
I don't see this as a problem with PyQt5 as it will affect others extentions right?<br />
(i'm giessing this is becuase of the ABI build stuff).<br />
<br />
Am I missing something?<br />
<br />
Barry<br />
<br />
<blockquote type="cite">On 31 Mar 2017, at 16:13, Florian Bruhin <me@the-compiler.org> wrote:<br />
<br />
Hi,<br />
<br />
on Windows, when doing "from PyQt5 import QtCore" in a virtualenv<br />
without the Python installation folder being in PATH (like it's the case<br />
on the AppVeyor CI service), the import fails with "DLL load failed: The<br />
specified module could not be found.".<br />
<br />
I found two ways to fix this:<br />
<br />
- Copy C:\Python36\python3.dll (on AppVeyor) to<br />
venv\Lib\site-packages\PyQt5<br />
- Add C:\Python36 to PATH<br />
<br />
Is there anything PyQt can do about this?<br />
<br />
Florian<br />
<br />
--<br />
http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)<br />
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc<br />
I love long mails! | http://email.is-not-s.ms/<br />
_______________________________________________<br />
PyQt mailing list PyQt@riverbankcomputing.com<br />
https://www.riverbankcomputing.com/mailman/listinfo/pyqt<br /></blockquote>
<br />
_______________________________________________<br />
PyQt mailing list PyQt@riverbankcomputing.com<br />
https://www.riverbankcomputing.com/mailman/listinfo/pyqt</blockquote>
</div>
</body>
</html>