Skip to content

GUI CRASHING BUG: trnsysBinaryPath cannot be reset. #631

@ahobeost

Description

@ahobeost

After installing TRNSYS with a different path, (TRNSYS18 -> TRNSYS18-32), pytrnsys is still pointing to the old path.
The trnsysBinaryPath in the settings.json is used in e.g. the massFlowSolver, and the config export.

When changing the path via the menu and clicking on “Done”, the program closes itself.
After re-opening, the old path still persists.

Image

This is the associated error.
2026-03-26 08:49:46,289 - CRITICAL - gui - Uncaught exception
Traceback (most recent call last):
File "C:\pytrnsys_versions\pytrnsys-gui-master-gui_624c05a-pytrnsys_0206bae-2026-03-24T14_44_31__00_00\site-packages\trnsysGUI\mainWindow.py", line 192, in askForSaveAndLoadSettings
self.askUserForSettingsValuesAndSave()
File "C:\pytrnsys_versions\pytrnsys-gui-master-gui_624c05a-pytrnsys_0206bae-2026-03-24T14_44_31__00_00\site-packages\trnsysGUI\mainWindow.py", line 702, in askUserForSettingsValuesAndSave
while newSettings == _sdlg.CANCELLED:
^^^^^^^^^^^^^^^
AttributeError: module 'trnsysGUI.settingsDlg' has no attribute 'CANCELLED'
2026-03-26 08:51:46,551 - INFO - schemas - Resource 'XMLSchema.xsd' is already loaded
2026-03-26 08:51:50,673 - INFO - Editor - Initializing the diagram editor
2026-03-26 08:51:51,535 - INFO - Editor - Decoding C:\pytrnsys_versions\pytrnsys-gui-master-gui_624c05a-pytrnsys_0206bae-2026-03-24T14_44_31__00_00\pytrnsys_gui_data\examples\solar_dhw_GUI\solar_dhw_GUI.json
2026-03-26 08:51:56,107 - WARNING - frontend_widget - kernel restarted
2026-03-26 08:56:36,526 - CRITICAL - gui - Uncaught exception
Traceback (most recent call last):
File "C:\pytrnsys_versions\pytrnsys-gui-master-gui_624c05a-pytrnsys_0206bae-2026-03-24T14_44_31__00_00\site-packages\trnsysGUI\mainWindow.py", line 192, in askForSaveAndLoadSettings
self.askUserForSettingsValuesAndSave()
File "C:\pytrnsys_versions\pytrnsys-gui-master-gui_624c05a-pytrnsys_0206bae-2026-03-24T14_44_31__00_00\site-packages\trnsysGUI\mainWindow.py", line 702, in askUserForSettingsValuesAndSave
while newSettings == _sdlg.CANCELLED:
^^^^^^^^^^^^^^^
AttributeError: module 'trnsysGUI.settingsDlg' has no attribute 'CANCELLED'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions