Draft WB - not working - new install FC 0.20

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
maker
Posts: 192
Joined: Sun Apr 01, 2018 10:25 am

Draft WB - not working - new install FC 0.20

Post by maker »

Hi all,

Code: Select all

OS: openSUSE Leap 15.3 (KDE//usr/share/xsessions/default)
Word size of FreeCAD: 64-bit
Version: 0.20.Unknown
Build type: Release
Python 3.6.13, Qt 5.12.7, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: German/Germany (de_DE)

after a new installation of stable 0.20 which has been provided yesterday by openSUSE repo,

Code: Select all

...
Source RPM  : FreeCAD-0.20-lp153.163.1.src.rpm
Build Date  : Mi 15 Jun 2022 19:44:26 CEST
...
I had the problem that draft workbench after start shows the following error messages in the report view:

Code: Select all

00:26:31  Persistent toolbars: Snapper toolbar not managed.
00:26:31  in method 'SoAsciiText_string_set', argument 2 of type 'SoMFString *'
00:26:31  Traceback (most recent call last):
  File "<string>", line 149, in Activated
  File "/usr/lib64/FreeCAD/Mod/Draft/draftguitools/gui_snapper.py", line 1629, in show
    self.setTrackers()
  File "/usr/lib64/FreeCAD/Mod/Draft/draftguitools/gui_snapper.py", line 1673, in setTrackers
    self.grid = trackers.gridTracker()
  File "/usr/lib64/FreeCAD/Mod/Draft/draftguitools/gui_trackers.py", line 989, in __init__
    self.text1.string = " "
  File "/usr/lib64/python3.6/site-packages/pivy/coin.py", line 51919, in <lambda>
    __setattr__ = lambda self, name, value: _swig_setattr(self, SoAsciiText, name, value)
  File "/usr/lib64/python3.6/site-packages/pivy/coin.py", line 80, in _swig_setattr
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)
  File "/usr/lib64/python3.6/site-packages/pivy/coin.py", line 69, in _swig_setattr_nondynamic
    return method(self, value)

00:33:35  ----------------
00:33:35  GuiCommand: Toggle grid
00:33:35  Running the Python command 'Draft_ToggleGrid' failed:
Traceback (most recent call last):
  File "/usr/lib64/FreeCAD/Mod/Draft/draftguitools/gui_grid.py", line 69, in Activated
    Gui.Snapper.setTrackers()
  File "/usr/lib64/FreeCAD/Mod/Draft/draftguitools/gui_snapper.py", line 1673, in setTrackers
    self.grid = trackers.gridTracker()
  File "/usr/lib64/FreeCAD/Mod/Draft/draftguitools/gui_trackers.py", line 989, in __init__
    self.text1.string = " "
  File "/usr/lib64/python3.6/site-packages/pivy/coin.py", line 51919, in <lambda>
    __setattr__ = lambda self, name, value: _swig_setattr(self, SoAsciiText, name, value)
  File "/usr/lib64/python3.6/site-packages/pivy/coin.py", line 80, in _swig_setattr
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)
  File "/usr/lib64/python3.6/site-packages/pivy/coin.py", line 69, in _swig_setattr_nondynamic
    return method(self, value)

in method 'SoAsciiText_string_set', argument 2 of type 'SoMFString *'
Has anyone any ideas, what the error cause could be?
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Draft WB - not working - new install FC 0.20

Post by thomas-neemann »

maker wrote: Wed Jun 15, 2022 10:36 pm ...
is it possible to download the version somewhere?

All draft functions are included in arch. does arch work?
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
maker
Posts: 192
Joined: Sun Apr 01, 2018 10:25 am

Re: Draft WB - not working - new install FC 0.20

Post by maker »

User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Draft WB - not working - new install FC 0.20

Post by thomas-neemann »

maker wrote: Thu Jun 16, 2022 7:01 am ...

on xubuntu with this version

https://www.freecadweb.org/downloads.php?lang=de

it works

Code: Select all

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: German/Germany (de_DE)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Draft WB - not working - new install FC 0.20

Post by Kunda1 »

I wonder if it's the python version being used(v3.6).
@maker can you try the Snap to see if you can replicate the issue.
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
maker
Posts: 192
Joined: Sun Apr 01, 2018 10:25 am

Re: Draft WB - not working - new install FC 0.20

Post by maker »

@Kunda1
Thankyou very much for your qualified reply.
1) I remarked also that the used python version is 3.6.
For the execution of FC is there a certain python version necessary?

2) Problem is: there is no offical snapd package provided for openSUSE Leap 15.3

The installed python versions on my OS are:

Code: Select all

lrwxrwxrwx 1 root root     9 22. Mär 19:41 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root     9 22. Mär 19:41 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root  6304 22. Mär 19:41 /usr/bin/python2.7
lrwxrwxrwx 1 root root     9 16. Mär 17:17 /usr/bin/python3 -> python3.6
-rwxr-xr-x 2 root root 10584 16. Mär 17:17 /usr/bin/python3.6
lrwxrwxrwx 1 root root    17 16. Mär 17:17 /usr/bin/python3.6-config -> python3.6m-config
-rwxr-xr-x 2 root root 10584 16. Mär 17:17 /usr/bin/python3.6m
-rwxr-xr-x 1 root root  3440 16. Mär 17:17 /usr/bin/python3.6m-config
-rwxr-xr-x 1 root root  6416 23. Mär 13:19 /usr/bin/python3.9
lrwxrwxrwx 1 root root    16 16. Mär 17:17 /usr/bin/python3-config -> python3.6-config
lrwxrwxrwx 1 root root    45  9. Jun 2020  /usr/bin/pythontex -> ../share/texmf/scripts/pythontex/pythontex.py
Last edited by maker on Fri Jun 17, 2022 12:39 pm, edited 2 times in total.
maker
Posts: 192
Joined: Sun Apr 01, 2018 10:25 am

Re: Draft WB - not working - new install FC 0.20

Post by maker »

@Kunda1
Thankyou very much for your qualified reply.
1) I remarked also that the used python version is 3.6.
For the execution of FC is there a certain python version necessary?

2) Problem is: there is no offical snapd package provided for openSUSE Leap 15.3

The installed python versions on my OS are:

Code: Select all

lrwxrwxrwx 1 root root     9 22. Mär 19:41 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root     9 22. Mär 19:41 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root  6304 22. Mär 19:41 /usr/bin/python2.7
lrwxrwxrwx 1 root root     9 16. Mär 17:17 /usr/bin/python3 -> python3.6
-rwxr-xr-x 2 root root 10584 16. Mär 17:17 /usr/bin/python3.6
lrwxrwxrwx 1 root root    17 16. Mär 17:17 /usr/bin/python3.6-config -> python3.6m-config
-rwxr-xr-x 2 root root 10584 16. Mär 17:17 /usr/bin/python3.6m
-rwxr-xr-x 1 root root  3440 16. Mär 17:17 /usr/bin/python3.6m-config
-rwxr-xr-x 1 root root  6416 23. Mär 13:19 /usr/bin/python3.9
lrwxrwxrwx 1 root root    16 16. Mär 17:17 /usr/bin/python3-config -> python3.6-config
lrwxrwxrwx 1 root root    45  9. Jun 2020  /usr/bin/pythontex -> ../share/texmf/scripts/pythontex/pythontex.py
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Draft WB - not working - new install FC 0.20

Post by Kunda1 »

Try the AppImage.

Per the https://wiki.freecadweb.org/Release_not ... ompilation
Since this release FreeCAD can only be compiled using Qt 5.x and Python 3.x. The lowest supported Python version is 3.6.9 according to this forum thread.
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
maker
Posts: 192
Joined: Sun Apr 01, 2018 10:25 am

Re: Draft WB - not working - new install FC 0.20

Post by maker »

@Kunda1

I tried the Appimage:

https://github.com/FreeCAD/FreeCAD-Bund ... 9.AppImage

The Draft wb works flawless.

What could be the problem of the openSUSE installation? Is it the used python version?
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Draft WB - not working - new install FC 0.20

Post by Kunda1 »

Is there any of the opensuse downstream maintainers you can notify about this? Not sure what the reason is honestly.
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
Post Reply