Python Errors With Drafting Tools

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
Okkine
Posts: 2
Joined: Sat Jul 02, 2022 2:58 pm

Python Errors With Drafting Tools

Post by Okkine »

Good Morning!

I'm new to the forum, and new to FreeCAD.

I installed FreeCAD on Linux laptop the other day (Kubuntu 22.04, Python 3), and am currently just playing around, figuring out how to use it. I find that I'm getting Python errors whenever I try to use even basic tools. Any thoughts on what may be causing this? I've included a couple examples, but the errors come up for every tool that I try.

Thanks!
Steve

OS: Kubuntu 22.04
Python: V3
Install Method: sudo apt-get install freecad

Code: Select all

09:03:46  Running the Python command 'Draft_Circle' failed:
Traceback (most recent call last):
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_arcs.py", line 71, in Activated
    super(Arc, self).Activated(name=translate("draft","Arc"))
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_base_original.py", line 290, in Activated
    super(Creator, self).Activated(name, noplanesetup)
  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

Code: Select all

Running the Python command 'Draft_Rectangle' failed:
Traceback (most recent call last):
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_rectangles.py", line 60, in Activated
    super(Rectangle, self).Activated(name)
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_base_original.py", line 290, in Activated
    super(Creator, self).Activated(name, noplanesetup)
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_base_original.py", line 117, in Activated
    App.activeDraftCommand.finish()
  File "/usr/share/freecad/Mod/Draft/draftguitools/gui_arcs.py", line 100, in finish
    self.linetrack.finalize()

'Circle' object has no attribute 'linetrack'
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Python Errors With Drafting Tools

Post by chrisb »

The packages of the distributions often contain outdated FreeCADs. To get started it is best to use the AppImage from https://www.freecadweb.org/downloads.php.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Okkine
Posts: 2
Joined: Sat Jul 02, 2022 2:58 pm

Re: Python Errors With Drafting Tools

Post by Okkine »

That did the trick! Thanks!
Post Reply