Lots of errors when activate Draft

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
_AndreaS_
Posts: 34
Joined: Sat Jun 06, 2020 12:19 pm

Lots of errors when activate Draft

Post by _AndreaS_ »

I write here because I think this is an install issue. I installed FreeCad under Ubuntu 22.04 using `apt`:

Code: Select all

OS: Ubuntu 22.04 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.10.2
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.1
Locale: Italian/Italy (it_IT)
When I activate the Draft workbench I get the following errors:

Code: Select all

15:17:35  Persistent toolbars: Snapper toolbar not managed.
15:17:35  <built-in function SoFieldContainer_getField> returned a result with an exception set
15:17:35  Traceback (most recent call last):
  File "<string>", line 132, in Activated
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_snapper.py", line 1635, in show
    self.setTrackers()
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_snapper.py", line 1679, in setTrackers
    self.grid = trackers.gridTracker()
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_trackers.py", line 974, in __init__
    pick.style.setValue(coin.SoPickStyle.UNPICKABLE)
  File "/usr/lib/python3/dist-packages/pivy/coin.py", line 3989, in __getattr__
    field = self.getField(name)
  File "/usr/lib/python3/dist-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)
if I try to click any function, like scale:

Code: Select all

15:19:55  Running the Python command 'Draft_Scale' failed:
Traceback (most recent call last):
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_scale.py", line 77, in Activated
    super(Scale, self).Activated(name=self.name)
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_base_original.py", line 154, in Activated
    Gui.Snapper.setTrackers()
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_snapper.py", line 1679, in setTrackers
    self.grid = trackers.gridTracker()
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_trackers.py", line 974, in __init__
    pick.style.setValue(coin.SoPickStyle.UNPICKABLE)
  File "/usr/lib/python3/dist-packages/pivy/coin.py", line 3989, in __getattr__
    field = self.getField(name)
  File "/usr/lib/python3/dist-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)

<built-in function SoFieldContainer_getField> returned a result with an exception set
Is it a known behavior? How to fix it?
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Lots of errors when activate Draft

Post by adrianinsaval »

Ubuntu's build is broken IIRC, please install and test with another method, there are appimage, flatpak and snap available and a ppa but I think the ppa doesn't have 22.04 builds yet. These alternative methods also have the advantage of letting you update to 0.20 which is about to be released as stable.
User avatar
dpward
Posts: 27
Joined: Sun Jan 01, 2023 6:06 pm
Contact:

Re: Lots of errors when activate Draft

Post by dpward »

Fix released for pivy package in Ubuntu 22.04 LTS (and Ubuntu 22.10).
https://bugs.launchpad.net/ubuntu/+sour ... ug/2000840
Post Reply