here https://wiki.freecadweb.org/Compile_on_ ... _3_and_Qt5 it says package python3-pyside2uic is needed to compile on ubuntu but there is no such package on ubuntu ...
https://packages.ubuntu.com/search?keyw ... ection=all
ubuntu and python3-pyside2uic
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: ubuntu and python3-pyside2uic
For Ubuntu 18.04 get it from the FreeCAD-daily PPA
For Ubuntu 20.04 see here: https://forum.freecadweb.org/viewtopic. ... 20#p395462
For Ubuntu 20.04 see here: https://forum.freecadweb.org/viewtopic. ... 20#p395462
"fight the good fight"
Re: ubuntu and python3-pyside2uic
For Ubuntu Bionic there are no official packages for PySide2. I had to install it from a PPA and the package is called pyside2-tools.
When checking the official pyside2-tools for Ubuntu Focal then it lacks of the uic or rcc tools. It only provides pyside2-lupdate.
I haven't found any package that provides a uic for Python but I can imagine that this is not needed any more and possibly Qt's uic is able to produce Python code too as PySide is now officially supported by Qt.
When checking the official pyside2-tools for Ubuntu Focal then it lacks of the uic or rcc tools. It only provides pyside2-lupdate.
I haven't found any package that provides a uic for Python but I can imagine that this is not needed any more and possibly Qt's uic is able to produce Python code too as PySide is now officially supported by Qt.
Re: ubuntu and python3-pyside2uic
This is the source code of uic and here is an option to generate Python code from a ui file:
https://github.com/qt/qtbase/blob/dev/s ... n.cpp#L140
https://github.com/qt/qtbase/blob/dev/s ... n.cpp#L140
Re: ubuntu and python3-pyside2uic
thanks guys.
Re: ubuntu and python3-pyside2uic
For Focal(20.04) Kurt is using python3-pyqt5 and patching FreeCAD for the daily PPA.
https://packages.ubuntu.com/focal/amd64 ... 5/filelist
https://salsa.debian.org/science-team/f ... ontrol#L54
https://salsa.debian.org/science-team/f ... ide2.patch
I think this is specific to QT5.14 and in QT5.15 it will be fixed https://doc.qt.io/qtforpython/tutorials ... files.html
"fight the good fight"
Re: ubuntu and python3-pyside2uic
OK, thanks for the hints.
- kkremitzki
- Veteran
- Posts: 2511
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: ubuntu and python3-pyside2uic
Unfortunately the Ubuntu 20.04 release people took my experimental pyside2 package out of Debian Experimental even though it wasn't ready due to this change regarding rcc and uic Basically pyside2uic and pyside2rcc binaries' functionality was moved to Qt5's uic and rcc binaries, but the version of Qt 5 in 20.04 is too old for this feature. However it's possible to use the binaries from pyqt5-dev-tools in lieu of pyside2 for this purpose.
Re: ubuntu and python3-pyside2uic
Thanks, this speaks to what wmayer was saying. So in the future FreeCAD will need to be ported to use QT's native uic?kkremitzki wrote: ↑Mon Oct 19, 2020 10:46 pm Basically pyside2uic and pyside2rcc binaries' functionality was moved to Qt5's uic and rcc binaries
And this will be packaged with QT somewhere?
"fight the good fight"
- kkremitzki
- Veteran
- Posts: 2511
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: ubuntu and python3-pyside2uic
It's already been taken care of in cMake/FindPySide2Tools.cmake, if the Qt version is new enough it's just a matter of using rcc --generator=python instead of pyside2-rcc, same for uic and pyside2-uic. And on Debian/Ubuntu the necessary Qt package is qtbase5-dev-tools, version 5.14 minimum.sgrogan wrote: ↑Mon Oct 19, 2020 10:53 pmThanks, this speaks to what wmayer was saying. So in the future FreeCAD will need to be ported to use QT's native uic?kkremitzki wrote: ↑Mon Oct 19, 2020 10:46 pm Basically pyside2uic and pyside2rcc binaries' functionality was moved to Qt5's uic and rcc binaries
And this will be packaged with QT somewhere?