DualSPHysics / DesignSPHysics

Module for FreeCAD intended to use with DualSPHysics fluid simulator.
Other
112 stars 40 forks source link

'PermissionError':Exception value: [Errno 1] Operation not permitted: './dualsphysics/bin/DualSPHysics5.2_linux64' #205

Closed WANG-KUI-TJU closed 1 week ago

WANG-KUI-TJU commented 6 months ago

description

when i click Execution Parameters,error coming. 图片 图片

Error

DesignSPHysics version: 0.7.0 (15-09-2023)
Platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.14
FreeCAD Version: 0.21.2
Exception type: <class 'PermissionError'>
Exception value: [Errno 1] Operation not permitted: './dualsphysics/bin/DualSPHysics5.2_linux64'
Traceback:
 ‘File "/usr/share/freecad/Mod/DesignSPHysics/mod/widgets/dock/dock_configuration_widget.py", line 84, in on_execparams_button_presed
    ExecutionParametersDialog(parent=get_fc_main_window())
  File "/usr/share/freecad/Mod/DesignSPHysics/mod/widgets/execution_parameters_dialog.py", line 164, in __init__
    densitydt_option_list = [__('None'), __('Molteni'), __('Fourtakas'), __('Fourtakas (Full)')] if Case.the().executable_paths.supports_ddt_fourtakas() else ['None', 'Molteni']
  File "/usr/share/freecad/Mod/DesignSPHysics/mod/dataobjects/executable_paths.py", line 77, in supports_ddt_fourtakas
    return bool(get_executable_info_flag(self.dsphysics)["Features"]["DDT_Fourtakas"])
  File "/usr/share/freecad/Mod/DesignSPHysics/mod/executable_tools.py", line 53, in get_executable_info_flag
    ensure_process_is_executable_or_fail(executable)
  File "/usr/share/freecad/Mod/DesignSPHysics/mod/executable_tools.py", line 82, in ensure_process_is_executable_or_fail
    chmod(cli_path, st.st_mode | unix_stat.S_IEXEC)

try to solve

how to solver this problem

WANG-KUI-TJU commented 6 months ago

1.Use command ls -l /path/to/dualsphysics/bin/DualSPHysics5.2_linux64 and find that -rwxrwxrwx 1 root root 47341728 5月 21 22:21 ./dualsphysics/bin/DualSPHysics5.2_linux64,so its not a question of access.

imestevez commented 5 months ago

Could it be that you are trying to load a case generated by an older version of DesignSPHysics?