[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Python2 Errors in Installer
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2016-11-23 14:57:27
Message-ID: E65E0F8F-95D8-48D5-A564-40F5F3F34903 () riverbankcomputing ! com
[Download RAW message or body]

On 17 Nov 2016, at 7:52 pm, Cody Scott <cody@perspexis.com> wrote:
> 
> I am using pynsist to create an installer and that works great.
> 
> During installation it tries to pre generate the __pycache__/ folders but it can't \
> compile some files and they show up as errors. 
> They are caused by using Python2 syntax.
> 
> PyQt5/uic/port_v2/invoke.py
> line 36 except IOError, e:
> line 39 except SyntaxError, e:
> line 42 except NoSuchWidgetError, e:
> line 45 except Exception, e:
> 
> PyQt5\uic\port_v2\load_plugin.py
> line 38 except Exception, e:
> 
> Should be an easy fix
> 
> except Exception as e:
> 
> will work in both Python 2.7 and Python 3
> 
> Maybe the PyQt5/uic/port_v2/ shouldn't be included in the Python 3 wheel?

All the code that was required by Python v2.5 and earlier has now been removed. I \
think that will fix any syntax errors.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://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