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.
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'
After installing TRNSYS with a different path, (TRNSYS18 -> TRNSYS18-32), pytrnsys is still pointing to the old path.
The
trnsysBinaryPathin thesettings.jsonis used in e.g. themassFlowSolver, 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.
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'