[PySide] Packaging PySide2 for Fedora

Richard Shaw hobbes1069 at gmail.com
Wed Mar 27 01:22:05 CET 2019


Ok, I gave up on the setuptools build and moved on to CMake. I've got
everything building and installing but it fails during bytecompiling:

Bytecompiling .py files below
/builddir/build/BUILDROOT/python-pyside2-5.12.1-1.fc31.x86_64/usr/lib/debug/usr/lib64/python3.7
using /usr/bin/python3.7
Bytecompiling .py files below
/builddir/build/BUILDROOT/python-pyside2-5.12.1-1.fc31.x86_64/usr/lib64/python3.7
using /usr/bin/python3.7
*** Error compiling
'/builddir/build/BUILDROOT/python-pyside2-5.12.1-1.fc31.x86_64/usr/lib64/python3.7/site-packages/pyside2uic/port_v2/invoke.py'...
  File "/usr/lib64/python3.7/invoke.py", line 36
    except IOError, e:
                  ^
SyntaxError: invalid syntax

*** Error compiling
'/builddir/build/BUILDROOT/python-pyside2-5.12.1-1.fc31.x86_64/usr/lib64/python3.7/site-packages/pyside2uic/port_v2/load_plugin.py'...
  File "/usr/lib64/python3.7/load_plugin.py", line 36
    except Exception, e:
                    ^
SyntaxError: invalid syntax

Does the "port_v2" mean python2? Since I'm building this for future Fedora
31 which will basically be Python 3 only, can I remove these files?

Thanks,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20190326/1a6e25d0/attachment.html>


More information about the PySide mailing list