[PyQt] py2exe on windows
Gianluca Romanin
romaninz at gmail.com
Sat Aug 16 23:13:04 BST 2014
Hi,
I'm currently using py2exe 0.9.2 with python3 on windows and it works:
- deploy all dlls
- copy plugins (modify the setup.py script to do that)
- --bundle-files 0* does not work*
You should provide some other infos:
- version of python
- pyqt5 modules you use
- type of app: qml or qwidgets? If qml, I can't say a lot. I think that is
actually unuseful qml with python
and it is a little bit difficult to work in a real world qml example with
pyqt.
- py2exe configuration and script
- os: i.e. I can't actually use the binaries on some version of Xp
Best regards,
------------------------------------------------------
Gianluca Romanin (aka J_Zar)
------------------------------------------------------
On Sat, Aug 16, 2014 at 9:38 AM, Arve Knudsen <arve.knudsen at gmail.com>
wrote:
> We're deploying PyQt5 on Windows with the help of cx_Freeze, which works
> really well in our experience. I think we have to copy QtSql plugin files
> though IIRC. Try it, it's easy.
>
> Arve
> ------------------------------
> Fra: Afief Halumi <afief.h at gmail.com>
> Sendt: 16.08.2014 01:30
> Til: pyqt at riverbankcomputing.com
> Emne: [PyQt] py2exe on windows
>
> Hello,
>
> After the good experience I had with pyqt5 on Linux I decided to give it a
> shot on Windows. I was able to build the application easily enough (using
> qtwidgets and qtsql), but I am having issues deploying it.
>
> py2exe generated a folder with a lot of dll files, but it didn't include
> the necessary plugins, copying the contents of the plugins/ directory into
> the executable's directory seems to have helped (no longer getting a
> message that qt's windows plugin is missing) but now the application simply
> crashes as soon as it starts. The error message it displays is an
> uninformative "program.exe stopped working". I tried to run the executable
> from the commandline in the hopes of catching some output telling me what I
> did wrong, but nothing was displayed.
>
> I know this is not a "learn to develop on windows" mailing list and
> apologize for asking this here, but the problem seems so pyqt related that
> I was hoping that I see nowhere else I can turn.
>
> Thanks,
> Afief
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140817/43343872/attachment.html>
More information about the PyQt
mailing list