[PyQt] App Crash with Python 3.3 and PyQt5 on Windows 7

Robert Kent rob at gulon.co.uk
Tue Mar 25 12:41:20 GMT 2014


Hi Florian,

Thanks for you're reply. The numerous bugs you picked (double underscores
etc.) was my email editor 'correcting' my content when I cut and pasted
it. The original scripts genuinely did run (as per your corrections). I'm
glad this built and ran though, can you tell me your configuration
(version of Python, PyQt5, cx_Freeze) and how you installed them (source
build, MSI etc.) just so I can try workout the differences?

Thanks very much for your efforts,

Rob

On 25/03/2014 12:34, "Florian Bruhin" <me at the-compiler.org> wrote:

>Hi,
>
>* Robert Kent <rob at gulon.co.uk> [2014-03-25 09:01:50 +0000]:
>> I'm just wondering if anybody out there has had any success with
>>freezing a
>> PyQt5 app into an executable with cx_Freeze yet? I can successfully
>>create a
>> distribution with an executable in it, but when this is run the
>>application
>> crashes with the classic 'widget_test.exe has stopped working dialog'
>>from
>> Windows. This seems to occur at the point of instantiating a
>>QApplication
>> object, if I use QCoreApplication everything works fine. The PyQt app
>> couldn't be simpler and looks as follows:
>
>Yes, for me using cx_Freeze for PyQt5 works fine; even with your
>example (after fixing countless bugs in it):
>
>> If _name_=="_main_":
>
>This should say    if __name__=="__main__"
>(double underlines, "if", not "If")
>
>> options={
>>     'build_exe': {
>>         'includes': 'atexit'
>There is a closing } missing here.
>> }
>
>
>> executables=[
>>     Executable(
>>         script='widget_test.py',
>>         base=base
>There is a closing ) missing here.
>> ]
>
>
>So I'm going to refuse to believe this is what you actually did run.
>
>Florian
>
>-- 
>() ascii ribbon campaign - stop html mail    www.asciiribbon.org
>/\ www.the-compiler.org  | I love long mails http://email.is-not-s.ms/
>I can resist anything but temptation.
>_______________________________________________
>PyQt mailing list    PyQt at riverbankcomputing.com
>http://www.riverbankcomputing.com/mailman/listinfo/pyqt




More information about the PyQt mailing list