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

Error on Installing DesignSPHysics on Linux #233

Open
qoimzslm opened this issue Dec 24, 2024 · 3 comments
Open

Error on Installing DesignSPHysics on Linux #233

qoimzslm opened this issue Dec 24, 2024 · 3 comments

Comments

@qoimzslm
Copy link

Hello,
I face some issue during installing DesignSPHysics on Linux. First, I try to install the new version through Addons option on FreeCAD.

But when I try to access the execution parameters the error stating like this:
DesignSPHysics version: 0.7.1 (26-11-2024)
Platform: Linux-6.8.0-50-generic-x86_64-with-glibc2.35
FreeCAD Version: 1.0.0
Exception type: <class 'TypeError'>
Exception value: 'NoneType' object is not subscriptable
Traceback:

File "/home/user/snap/freecad/common/Mod/DesignSPHysics/mod/widgets/dock/dock_configuration_widget.py", line 85, in on_execparams_button_presed
ExecutionParametersDialog(parent=get_fc_main_window())
File "/home/user/snap/freecad/common/Mod/DesignSPHysics/mod/widgets/execution_parameters_dialog.py", line 165, in init
densitydt_option_list = [__('None'), __('Molteni'), __('Fourtakas'), __('Fourtakas (Full)')] if Case.the().executable_paths.supports_ddt_fourtakas() else ['None', 'Molteni']
File "/home/user/snap/freecad/common/Mod/DesignSPHysics/mod/dataobjects/executable_paths.py", line 77, in supports_ddt_fourtakas
return bool(get_executable_info_flag(self.dsphysics)["Features"]["DDT_Fourtakas"])
image

Then I also check the setup plugin and it shows this error:
image

I tried to install the Macros manually as well, but the same issue remains. Is anyone have deal with the same problem on Linux? Or is there any procedures I have missed on installing the DesignSPHysics?

Thank you in advance for sharing.

@imestevez
Copy link
Collaborator

The problem may be when using FreeCAD v1.0 on Ubuntu. Have you installed FreeCAD from the Ubuntu Software Center?

@aepoc
Copy link

aepoc commented Jan 8, 2025

I'm on POP_OS and had to install freecad through terminal. After installing this way, I was able to install the macro from within freecad.

@imestevez
Copy link
Collaborator

There is a problem because of some dependencies when installing FreeCAD from the store; by installing the tool from the FreeCAD website and launching it via terminal it should work.
In any case, DesignSPHysics works with older versions of FreeCAD too in case there is any issue with v1.0

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

3 participants