Skip to content

Help_Problems installing SPH to FreeCAD 0.21 #262

Description

@CreasarZ

11:33:41 Traceback (most recent call last):
File "C:/Users/Lenovo/AppData/Roaming/FreeCAD/Macro/DesignSPHysics.FCMacro", line 31, in
from mod.main import boot # pylint: disable=wrong-import-position
File "C:\Program Files\FreeCAD 0.21\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport_feature_.py", line 142, in import
return original_import(name, *args, **kwargs)
File "C:\Program Files\FreeCAD 0.21\Mod\DesignSPHysics\mod\main.py", line 17, in
from mod.constants import APP_NAME, VERSION, REVISION, DEFAULT_WORKBENCH, GITHUB_MASTER_CONSTANTS_URL,
File "C:\Program Files\FreeCAD 0.21\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport_feature
.py", line 142, in import
return original_import(name, *args, **kwargs)
File "C:\Program Files\FreeCAD 0.21\Mod\DesignSPHysics\mod\constants.py", line 6, in
from mod.enums import FreeCADObjectType
File "C:\Program Files\FreeCAD 0.21\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport_feature
.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "C:\Program Files\FreeCAD 0.21\Mod\DesignSPHysics\mod\enums.py", line 338, in
class HelpText:
File "C:\Program Files\FreeCAD 0.21\Mod\DesignSPHysics\mod\enums.py", line 387, in HelpText
YINCREMENTX = __("")
File "C:\Program Files\FreeCAD 0.21\Mod\DesignSPHysics\mod\tools\translation_tools.py", line 36, in __
with open(filename, "w", encoding="utf-8") as f:
<class 'PermissionError'>: [Errno 13] Permission denied: 'C:\Program Files\FreeCAD 0.21\Mod\DesignSPHysics\mod/lang/english.json'

Could anyone please help me how to solve this issue? I have tried several versions of FreeCAD, and in particular, the latest version, FreeCAD 1.1, shows no response when the macro is activated. I hope the team can update the code to work with version 1.1.

Activity

  1. CreasarZ commented on Apr 28, 2026

    @CreasarZ
    Author

    I tried installing Freecad in the APPDATA folder, but this error appeared:
    "11:47:20 Traceback (most recent call last):
    File "C:/Users/Lenovo/AppData/Roaming/FreeCAD/Macro/DesignSPHysics.FCMacro", line 31, in
    from mod.main import boot # pylint: disable=wrong-import-position
    File "C:\Users\Lenovo\AppData\FreeCAD 0.21\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport_feature_.py", line 142, in _import
    return original_import(name, *args, **kwargs)
    <class 'ModuleNotFoundError'>: No module named 'mod'"

  2. elewis-svs commented on May 14, 2026

    @elewis-svs

    Same issue here:

    14:41:29 pyException: Traceback (most recent call last):
    File "C:/Users/[USER]/AppData/Roaming/FreeCAD/Macro/DesignSPHysics.FCMacro", line 31, in
    from mod.main import boot # pylint: disable=wrong-import-position
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\FreeCAD 1.0\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    <class 'ModuleNotFoundError'>: No module named 'mod'

  3. elewis-svs commented on May 14, 2026

    @elewis-svs

    I figured it out, I had forgotten to add the designsphysics folder to the "Mod" folder in FreeCAD

  4. imestevez commented on Jun 10, 2026

    @imestevez
    Collaborator

    It is already compatible with FreeCAD v1.1

  5. luzpaz commented on Jun 13, 2026

    @luzpaz
    Contributor

    Why are you still using FreeCAD v0.21 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions