[PyQt] bug: Python 2 exception in PyQt-Py3.1-gpl-4.8.1-1

KONTRA, Gergely pihentagy at gmail.com
Sat Dec 4 09:32:25 GMT 2010


It worked for me with 3.1, I just have to delete the python2 pyqt bindings
from the site-packages...


+-[ Gergely Kontra <pihentagy at gmail.com> ]------------------+
|                                                           |
| Mobile:(+36 20)356 9656                                   |
|                                                           |
+- "Olyan lángész vagyok, hogy poroltóval kellene járnom!" -+


On Sat, Dec 4, 2010 at 02:16, Daniel Goertzen <
dang at networkintegritysystems.com> wrote:

> Ah, sounds like a cx_freeze problem them.  Other than that issue, cx_freeze
> appeared to work fine.
>
> The pyInstaller homepage says that it only supports up to python 2.7.
>  Since I'm using 3.1, I didn't even try it.
>
> Thanks,
> Dan.
>
>
>
> On Fri, Dec 3, 2010 at 4:21 PM, Hans-Peter Jansen <hpj at urpla.net> wrote:
>
>> On Friday 03 December 2010, 21:47:06 Daniel Goertzen wrote:
>> > While running cx_freeze with an installation of
>> > PyQt-Py3.1-gpl-4.8.1-1, I got the following error:
>> >
>> >
>> >   File
>> > "C:\Python31\lib\site-packages\PyQt4\uic\port_v2\load_plugin.py",
>>                                           ^^^^^^^
>> > line 17
>> >     except Exception, e:
>> >                     ^
>> > SyntaxError: invalid syntax
>> > make: *** [freeze] Error 1
>> >
>> >
>> >
>> > Changing the line to a Python 3 style exception fixed it:
>> >
>> >   except Exception as e:
>>
>> but it should have picked up port_v3, if things would had gone right.
>> For some reason, cx_freeze picked the wrong interpreter.
>>
>> You may also try using PyInstaller, which has explicit PyQt4 support.
>>
>> Pete
>> _______________________________________________
>> PyQt mailing list    PyQt at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>
>
>
> --
> Daniel Goertzen
> -----------------
> dang at networkintegritysystems.com (work)
> daniel.goertzen at gmail.com (home)
> -----------------
> 1 204 272 6149 (home/office)
> 1 204 470 8360 (mobile)
> -----------------
>
>
>
>
> _______________________________________________
> 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/20101204/bda0184e/attachment.html>


More information about the PyQt mailing list