Running the Python command 'Draft_Move' failed

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
proghettolab
Posts: 52
Joined: Sat Jun 27, 2020 3:09 pm

Running the Python command 'Draft_Move' failed

Post by proghettolab »

Hi all.
Since I upgraded to Ubuntu 22.04 i have problems with freecad 0.19.
First of all, every time I switch from the Start workbench to Arch, BIM or Draft, freecad responds with:
<built-in function SoFieldContainer_getField> returned a result with an exception set
Traceback (most recent call last):
File "<string>", line 434, 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)
Then, when I try to use any command, for example Move, the following error appears in the console
Running the Python command 'Draft_Move' failed:
Traceback (most recent call last):
File "/usr/share/freecad/Mod/Draft/draftguitools/gui_move.py", line 69, in Activated
super(Move, self).Activated(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
My Python version in 3.10.4

Using Appimage, on the other hand, everything is fine.

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)

Thanks in advance for the help.
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Running the Python command 'Draft_Move' failed

Post by thomas-neemann »

proghettolab wrote: Sat May 07, 2022 10:03 am ..
..
with 22.04 there still seems to be problems
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
marioalexis
Posts: 124
Joined: Wed Jun 19, 2019 7:44 pm

Re: Running the Python command 'Draft_Move' failed

Post by marioalexis »

There is an incompatibility between your current version of Pivy and Python 3.10.
The same as here: https://forum.freecadweb.org/viewtopic.php?f=3&t=67542
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Running the Python command 'Draft_Move' failed

Post by Kunda1 »

Is there an upstream pivy ticket tracking this?
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
dpward
Posts: 27
Joined: Sun Jan 01, 2023 6:06 pm
Contact:

Re: Running the Python command 'Draft_Move' failed

Post by dpward »

Kunda1 wrote: Sun May 08, 2022 1:39 am Is there an upstream pivy ticket tracking this?
Yes, a fix is released now:
https://bugs.launchpad.net/ubuntu/+sour ... ug/2000840
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Running the Python command 'Draft_Move' failed

Post by thomas-neemann »

many thanks
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
mwlandolsi
Posts: 135
Joined: Sun Jan 31, 2021 10:49 pm

Re: Running the Python command 'Draft_Move' failed

Post by mwlandolsi »

Hello
could anyone explain to us how to fix this on mint 20.02 Cinnamon? I am not a Linux professional, I am just a simple user.
Post Reply