[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] py2exe on windows
From: Gianluca Romanin <romaninz () gmail ! com>
Date: 2014-08-16 22:13:04
Message-ID: CAJ2ivdWSsbf5ZSn9dCQ4bxs4EoXrAYaRq4eKStrj+Z_+kKjW7A () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@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@gmail.com>
> Sendt: 16.08.2014 01:30
> Til: pyqt@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@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
[Attachment #5 (text/html)]
<div dir="ltr"><div>Hi,</div><div><br></div>I'm currently using py2exe 0.9.2 with \
python3 on windows and it works:<div>- deploy all dlls</div><div>- copy plugins \
(modify the setup.py script to do that)</div><div>- <span class="" \
style="white-space:pre;color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:17.8430118560791px">--bundle-files</span><span \
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:17.8430118560791px"> \
0<b> does not work</b></span></div> <div><br></div><div>You should provide some \
other infos:</div><div>- version of python</div><div>- pyqt5 modules you \
use</div><div>- type of app: qml or qwidgets? If qml, I can't say a lot. I think \
that is actually unuseful qml with python</div> <div>and it is a little bit difficult \
to work in a real world qml example with pyqt.</div><div>- py2exe configuration and \
script </div><div>- os: i.e. I can't actually use the binaries on some version \
of Xp</div><div> <br></div><div>Best regards,</div></div><div class="gmail_extra"><br \
clear="all"><div><div \
dir="ltr">------------------------------------------------------<br> Gianluca \
Romanin (aka J_Zar)<br>------------------------------------------------------</div> \
</div> <br><br><div class="gmail_quote">On Sat, Aug 16, 2014 at 9:38 AM, Arve Knudsen \
<span dir="ltr"><<a href="mailto:arve.knudsen@gmail.com" \
target="_blank">arve.knudsen@gmail.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div><div><div \
style="font-family:Calibri,sans-serif;font-size:11pt">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.<br>
<br>Arve</div></div><div dir="ltr"><hr><span \
style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Fra: \
</span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a \
href="mailto:afief.h@gmail.com" target="_blank">Afief Halumi</a></span><br>
<span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Sendt: \
</span><span style="font-family:Calibri,sans-serif;font-size:11pt">16.08.2014 \
01:30</span><br><span \
style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Til: \
</span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a \
href="mailto:pyqt@riverbankcomputing.com" \
target="_blank">pyqt@riverbankcomputing.com</a></span><br>
<span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Emne: \
</span><span style="font-family:Calibri,sans-serif;font-size:11pt">[PyQt] py2exe on \
windows</span><br><br></div></div><div class="HOEnZb"> <div class="h5"><div \
dir="ltr"> Hello,<div><br></div><div>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.</div>
<div><br></div><div>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.</div>
<div><br></div><div>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.</div>
<div><br></div><div>Thanks,</div><div>Afief</div></div>
</div></div><br>_______________________________________________<br>
PyQt mailing list <a \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br> <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br></div>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic