pyside2-rcc and pyside2-uic missing on Gentoo systems [Solved]

Having trouble installing or compiling FreeCAD? Get help here.
Post Reply
clytle374
Posts: 135
Joined: Wed Nov 06, 2013 3:58 am

pyside2-rcc and pyside2-uic missing on Gentoo systems [Solved]

Post by clytle374 » Sun Mar 22, 2020 9:20 am

EDIT:Origonal issue discussed below was caused by the system being out of sync with versions of pyside2 and QT, Edited title to something that matters. Skip to the end.

I hate to show up only when something breaks. Please know that I sincerely thank you all for this great program software. It truly is good enough I'm sure I couldn't afford it.

About twice a year something changes in Gentoo and completely breaks a dependency, or half a dozen. This was today after a large QT update.

I'm using latest git code and getting this error. Not sure what I have going wrong, need a direction to look in.

Code: Select all

[  3%] Copying /home/cory/sources/freecad-code/src/Mod/Material/Templatematerial.yml to /home/cory/freecad2/Mod/Material/Templatematerial.yml
[  3%] Generating Material_rc.py
PySide2 resource compiler
/usr/bin/pyside2-rcc: Unknown option: '--generator=python'
Usage: /usr/bin/pyside2-rcc  [options] <inputs>

Options:
    -o file           Write output to file rather than stdout
    -py2              Generate code for any Python v2.x version
    -py3              Generate code for any Python v3.x version (default)
    -name name        Create an external initialization function with name
    -threshold level  Threshold to consider compressing files
    -compress level   Compress input files by level
    -root path        Prefix resource access path with root path
    -no-compress      Disable all compression
    -version          Display version
    -help             Display this information
make[2]: *** [src/Mod/Material/CMakeFiles/Material.dir/build.make:90: src/Mod/Material/Material_rc.py] Error 1
make[1]: *** [CMakeFiles/Makefile2:3127: src/Mod/Material/CMakeFiles/Material.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
It's pyside2-5.12.5-r3, let me know if I can provide anymore info.
Thanks
Cory
Last edited by clytle374 on Mon Mar 23, 2020 3:30 am, edited 1 time in total.
reox
Posts: 845
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: pyside2-rcc: Unknown option: '--generator=python' build error

Post by reox » Sun Mar 22, 2020 11:02 am

I think this is the same error as here: https://forum.freecadweb.org/viewtopic. ... 1&start=10

As far as I can tell, there is no solution for this still...
clytle374
Posts: 135
Joined: Wed Nov 06, 2013 3:58 am

Re: pyside2-rcc: Unknown option: '--generator=python' build error

Post by clytle374 » Sun Mar 22, 2020 11:23 am

reox wrote:
Sun Mar 22, 2020 11:02 am
I think this is the same error as here: https://forum.freecadweb.org/viewtopic. ... 1&start=10

As far as I can tell, there is no solution for this still...
Yes, that is the same error.
Thanks
Cory
User avatar
kkremitzki
Posts: 1985
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: pyside2-rcc: Unknown option: '--generator=python' build error

Post by kkremitzki » Sun Mar 22, 2020 9:59 pm

Things work if you are using Qt 5.14 with PySide 5.14, but mixing and matching (e.g. PySide 5.14 with Qt 5.13 in Debian's case) doesn't work.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
clytle374
Posts: 135
Joined: Wed Nov 06, 2013 3:58 am

Re: pyside2-rcc: Unknown option: '--generator=python' build error [solved]

Post by clytle374 » Mon Mar 23, 2020 3:10 am

kkremitzki wrote:
Sun Mar 22, 2020 9:59 pm
Things work if you are using Qt 5.14 with PySide 5.14, but mixing and matching (e.g. PySide 5.14 with Qt 5.13 in Debian's case) doesn't work.
Some of my qt is 5.14.0 and 5.14.1, but pyside is also 5.14. Thinking maybe something wasn't consistent from not rebooting after the last pyside updates, I decided to try again and got some strange failures. aka I get much further into the build when not using make in parallel.

Code: Select all

[  2%] Copying /home/cory/sources/freecad-code/src/Mod/Material/Templatematerial.yml to /home/cory/freecad2/Mod/Material/Templatematerial.yml
[  2%] Generating Material_rc.py
/bin/sh: /usr/bin/pyside2-rcc: No such file or directory
make[2]: *** [src/Mod/Material/CMakeFiles/Material.dir/build.make:90: src/Mod/Material/Material_rc.py] Error 127
make[1]: *** [CMakeFiles/Makefile2:3127: src/Mod/Material/CMakeFiles/Material.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs...
So my system is missing /usr/bin/pyside2-rcc and /usr/bin/pyside2-uic I have pyside2, pyside2-tools, and shiboken2 installed. Looking for that issue now.

Thanks
Cory
clytle374
Posts: 135
Joined: Wed Nov 06, 2013 3:58 am

Re: pyside2-rcc: Unknown option: '--generator=python' build error

Post by clytle374 » Mon Mar 23, 2020 3:26 am

Gentoo had the files
/usr/bin/pyside2-rcc
/usr/bin/pyside2-uic
as
/usr/bin/rcc
/usr/bin/uic

Closed, renaming as something useful
Thanks
Cory
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests