URJCMakerGroup / MakerWorkbench

https://makerworkbench.readthedocs.io/en/stable/
GNU Lesser General Public License v3.0
34 stars 11 forks source link

Tons of error messages when entering the workspace for the extension #34

Open night-kat opened 2 months ago

night-kat commented 2 months ago

when i try entering the workspace for this extension i get this error:

19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:294: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:1140: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:1295: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:1742: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:1808: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:1951: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:3578: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:3742: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:3861: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:4028: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:4419: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:4649: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:4731: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:5034: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:5338: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:6214: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:7128: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:7216: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:7414: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./fcfun.py:7553: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:16 /home/jonash/.local/share/FreeCAD/Mod/MakerWorkbench/./kcomp.py:290: SyntaxWarning: invalid escape sequence '\ ' """ 19:33:19 Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/freecad/bin/qtwebengine_dictionaries' 19:33:20 (qt.qpa.wayland) eglSwapBuffers failed with 0x300d, surface: 0x0 19:33:29 No module named 'PySide2' 19:33:29 Traceback (most recent call last): File "", line 65, in Initialize

night-kat commented 2 months ago

i installed it from the addon manager, on garuda linux. it was a fresh install and happened when i tried using it the first time.

night-kat commented 2 months ago

image

Britaliope commented 3 weeks ago

The workspace seems broken as-is.

I started to fix the syntax warning : they are caused because backslashes are used unescaped in the docstring (it should use \\ instead of \ to insert a backslash)

The pyside2 error is because there are many pyside2 import which are not supported and unnecessary in freecad (cf https://wiki.freecad.org/PySide#PySide_in_FreeCAD_with_Qt5). I managed to fix it by sed-ing every occurence of PySide2 by PySide in the source code. The workbench then seems to work, but it generate another ton of syntax warning because of unescaped backslasles.

I'll try to find time to have a look at these, see if fixing those issues don't break the documentation and submit a pull request here