[Solved]Compile: Freecad Pyside2 error on Debian

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
petit_chat_noir
Posts: 87
Joined: Wed Oct 02, 2019 6:45 pm

[Solved]Compile: Freecad Pyside2 error on Debian

Post by petit_chat_noir »

Hello, just for information
After updating my Debian OS testing/unstable, I've found that cmake try to search Pyside2 in "/usr/lib/include/Pyside2", it's a bug in shiboken or pyside packaging I think.
what i did to make it working(uggly i know):
You have to copy /usr/include/Pyside2 folder to /usr/lib/include/Pyside2 and that's all
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: [Solved]Compile: Freecad Pyside2 error on Debian

Post by reox »

I noticed the same and opened a bugreport in debian. The problem should be fixed in pyside2 from experimental.
But due to the transition to python3.8, it might take a while until it comes to testing.
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: [Solved]Compile: Freecad Pyside2 error on Debian

Post by kkremitzki »

I uploaded it to experimental because there was a problem with compiling FreeCAD with that version, so if you feel brave feel free to try it. If you can confirm FreeCAD works with it then I can upload PySide 2 to unstable and begin its migration to testing.
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.
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: [Solved]Compile: Freecad Pyside2 error on Debian

Post by reox »

I had a build running against experimental, and the build itself seems to have worked.
But when I try to install it on my machine I get some errors regarading missing libpc-*1.9 - seems like I build against a wrong version, as the current version in testing is 1.10.
I'll try to restart the experimental build now.
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: [Solved]Compile: Freecad Pyside2 error on Debian

Post by reox »

So one problem is that libshiboken 5.14 does not automatically remove 5.13:

Code: Select all

Unpacking libshiboken2-py3-5.14 (5.14.0-1~exp1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-3JhUiK/0-libshiboken2-py3-5.14_5.14.0-1~exp1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/python3/dist-packages/shiboken2/__init__.py', which is also in package libshiboken2-py3-5.13 5.13.2-2.2+b1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
It can be solved though by removing 5.13 manually first.

However, it looks fine:

Code: Select all

OS: Debian GNU/Linux bullseye/sid (i3/i3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19520 (Git)
Build type: Release
Branch: master
Hash: c01c1f7fde6851219d4b5ed38d906024be58e890
Python version: 3.8.1
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.3.0
Locale: German/Austria (de_AT)
Is there anything specific I can test to check if it works?

What I see is, that netgen seems to work less and less. Now I get segfaults when switching into FEM workbench even:

Code: Select all

/usr/lib/freecad-daily/lib/libNETGENPlugin.so: undefined symbol: _ZTVN6netgen11NgExceptionE
Traceback (most recent call last):
  File "<string>", line 46, in Initialize

Program received signal SIGSEGV, Segmentation fault.
But yeah, netgen seems to be another issue :(

edit: removed Netgen from build, and I can now open FEM workbench too.
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: [Solved]Compile: Freecad Pyside2 error on Debian

Post by kkremitzki »

The problem I was running into was that the files generated by the new uic/rcc binaries was bad, particularly Mod/Draft/Draft_rc.py, and thus Draft WB and its dependents were broken.
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.
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: [Solved]Compile: Freecad Pyside2 error on Debian

Post by reox »

I usually not work with draft, but i created some shapes and it seems to work... But I'm not sure if this is what you asked for :mrgreen:
User avatar
f3nix
Posts: 346
Joined: Sat May 30, 2015 11:58 am

Re: [Solved]Compile: Freecad Pyside2 error on Debian

Post by f3nix »

kkremitzki wrote: Sun Feb 09, 2020 11:30 pm The problem I was running into was that the files generated by the new uic/rcc binaries was bad, particularly Mod/Draft/Draft_rc.py, and thus Draft WB and its dependents were broken.
Hi Kurt!
I've just compiled the version from experimental but I see the pyside2-tools are missing uic and rcc. Are you using the old tools?

I thought that we have to wait for Qt 5.14 in unstable to gain the ability to generate resources. https://bugreports.qt.io/browse/PYSIDE-1098

EDIT: Draft works using the old pyside2-tools and after installing new pyside2-qtsvg


Cheers,
Mateusz
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: [Solved]Compile: Freecad Pyside2 error on Debian

Post by reox »

as far as I can tell from the changelog, the -uic package was removed, because it was merged into something else?
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: [Solved]Compile: Freecad Pyside2 error on Debian

Post by kkremitzki »

pyside2-uic and pyside2-rcc and now just uic and rcc, and you have to add a flag to get the previous Python generation behavior.
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.
Post Reply