Ubuntu daily-PPA Bug in Path-module

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
michaeln
Posts: 8
Joined: Sun May 29, 2022 6:08 am

Ubuntu daily-PPA Bug in Path-module

Post by michaeln »

Hello,
the path module does not work in the PPA-Daily-Installation in Ubuntu 22.04.
With the Weekly-Appimage or on Windows it is working.
Please fix it.
Thanks!
Michael
Screenshot_20220529_075308.png
Screenshot_20220529_075308.png (228.43 KiB) Viewed 1301 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ubuntu daily-PPA Bug in Path-module

Post by Kunda1 »

@yorik who's on PPA duty now that kkremitzki is occupied with IRL stuff?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Ubuntu daily-PPA Bug in Path-module

Post by adrianinsaval »

Please follow the guidelines and post your full freecad info, the error looks like those from the pivy incompatibility with python 3.10, if Ubuntu 22.04 is using python 3.10 it probably needs an update in pivy.
Also when posting errors from report view please copy and paste the text and put it inside code tags ( the </> button) instead of a screenshot.
michaeln
Posts: 8
Joined: Sun May 29, 2022 6:08 am

Re: Ubuntu daily-PPA Bug in Path-module

Post by michaeln »

Thanks for your answers and sorry for my incomplete request.

The system and FreeCAD info:

Code: Select all

OS: Ubuntu 22.04 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: 8676d67a87e8147a04de2785c585ea4a191a439b
Python 3.10.4, Qt 5.15.3, Coin 4.0.0, OCC 7.5.1
Locale: German/Germany (de_DE)
Always after select the PATH module and create PATH Job:
17:02:35 Traceback (most recent call last):
File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJobGui.py", line 130, in attach
self.axs = coin.SoType.fromName("SoAxisCrossKit").createInstance()
File "/usr/lib/python3/dist-packages/pivy/coin.py", line 491, in createInstance
return _coin.SoType_createInstance(self)
<class 'SystemError'>: <built-in function SoType_createInstance> returned a result with an exception set
17:02:35 PathJobGui.ERROR: <built-in function SoFieldContainer_getField> returned a result with an exception set
17:02:35 SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
17:02:35
The above exception was the direct cause of the following exception:

17:02:35 Traceback (most recent call last):
17:02:35 File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJobGui.py", line 1646, in Create
obj.ViewObject.Proxy.editObject(obj.Stock)
17:02:35 File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJobGui.py", line 194, in editObject
return self.openTaskPanel("Stock")
17:02:35 File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJobGui.py", line 178, in openTaskPanel
self.showOriginAxis(True)
17:02:35 File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJobGui.py", line 153, in showOriginAxis
self.switch.whichChild = sw
17:02:35 File "/usr/lib/python3/dist-packages/pivy/coin.py", line 3998, in __setattr__
field = self.getField(name)
17:02:35 File "/usr/lib/python3/dist-packages/pivy/coin.py", line 3873, in getField
return _coin.SoFieldContainer_getField(self, name)
17:02:35 SystemError: <built-in function SoFieldContainer_getField> returned a result with an exception set
17:02:35

With the Weekly-Appimage or on Windows it is working.

Thanks.

Michael
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Ubuntu daily-PPA Bug in Path-module

Post by adrianinsaval »

Yeap, python 3.10 seems to be the issue, can you check were does your system get pivy from? The default repos or the PPA?

Recently I've seen a post were some packages in Debian could run with either python 3.10 or 3.9, anybody knows if this is possible in Ubuntu with freecad from the PPA?
michaeln
Posts: 8
Joined: Sun May 29, 2022 6:08 am

Re: Ubuntu daily-PPA Bug in Path-module

Post by michaeln »

Hello,

there is only the python3-pivy package from Ubuntu in version 0.6.5-1build6.
In the PPA-Repositiory is only a pivy package for 18.04, not for the newer version of Ubuntu.

Michael
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Ubuntu daily-PPA Bug in Path-module

Post by adrianinsaval »

I think you need 0.6.6 or 0.6.7 you can either find a way to install that yourself or stick to other packaging formats for the time being (snap flatpak and appimage are available).
Or find a way to make freecad run with python 3.9.
Sadly I think we don't have an active maintainer for the PPA so I don't think the situation there is going to improve any time soon, it might even be better to shut it down...
michaeln
Posts: 8
Joined: Sun May 29, 2022 6:08 am

Re: Ubuntu daily-PPA Bug in Path-module

Post by michaeln »

Thanks for your answer,
I saw the Ubuntu Beta (22.10) have the package python3-pivy in version 0.6.7.
I will test it with this (but not today).
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Ubuntu daily-PPA Bug in Path-module

Post by yorik »

Kunda1 wrote: Sun May 29, 2022 11:17 am @yorik who's on PPA duty now that kkremitzki is occupied with IRL stuff?
Nobody, I'm afraid... It would be great to have more ubuntu people to help there
michaeln
Posts: 8
Joined: Sun May 29, 2022 6:08 am

Re: Ubuntu daily-PPA Bug in Path-module

Post by michaeln »

Hello,

i tested it now. with the manually installed package python3-pivy in version 0.6.7. from Ubuntu Beta (22.10) it works.

But i think this SNAP is now the the better alternative.
Post Reply