[PyQt] Dependency on python3.dll

Cosimo Lupo cosimo.lupo at daltonmaag.com
Fri Mar 31 22:17:42 BST 2017


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.

--
Cosimo Lupo

31 mar 2017, 22:09 +0100, Barry <barry at barrys-emacs.org>, ha scritto:
> Isn't the problem that the venv did not get a copy of a dll that is critical to the python3 world?
>
> I don't see this as a problem with PyQt5 as it will affect others extentions right?
> (i'm giessing this is becuase of the ABI build stuff).
>
> Am I missing something?
>
> Barry
>
> > On 31 Mar 2017, at 16:13, Florian Bruhin <me at the-compiler.org> wrote:
> >
> > Hi,
> >
> > on Windows, when doing "from PyQt5 import QtCore" in a virtualenv
> > without the Python installation folder being in PATH (like it's the case
> > on the AppVeyor CI service), the import fails with "DLL load failed: The
> > specified module could not be found.".
> >
> > I found two ways to fix this:
> >
> > - Copy C:\Python36\python3.dll (on AppVeyor) to
> > venv\Lib\site-packages\PyQt5
> > - Add C:\Python36 to PATH
> >
> > Is there anything PyQt can do about this?
> >
> > Florian
> >
> > --
> > http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
> > GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
> > I love long mails! | http://email.is-not-s.ms/
> > _______________________________________________
> > PyQt mailing list PyQt at riverbankcomputing.com
> > https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170331/e0a8aeba/attachment.html>


More information about the PyQt mailing list