Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
night-kat opened this issue Aug 31, 2024 · 3 comments
Open

Comments

@night-kat
Copy link

night-kat commented Aug 31, 2024

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
Copy link
Author

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
Copy link
Author

image

@night-kat night-kat reopened this Aug 31, 2024
@Britaliope
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants