Opened 3 years ago
Closed 3 years ago
#7008 closed defect (fixed)
ChimeraX nogui mode: AttributeError: 'UI' object has no attribute 'set_fatal_error_log_file'
Reported by: | Tom Goddard | Owned by: | Tom Goddard |
---|---|---|---|
Priority: | moderate | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
$ cx --nogui
Traceback (most recent call last):
File "/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chimerax/core/toolshed/info.py", line 365, in initialize
api._api_caller.initialize(api, session, self)
File "/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chimerax/core/toolshed/init.py", line 1278, in initialize
return cls._get_func(api, "initialize")(session, bi)
File "/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chimerax/bug_reporter/init.py", line 29, in initialize
crash_report.register_signal_handler(session)
File "/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chimerax/bug_reporter/crash_report.py", line 73, in register_signal_handler
session.ui.set_fatal_error_log_file(_fault_handler_file)
AttributeError: 'UI' object has no attribute 'set_fatal_error_log_file'
Bundle 'ChimeraX-BugReporter' custom initialization failed
UCSF ChimeraX version: 1.5.dev202205182013 (2022-05-18)
© 2016-2022 Regents of the University of California. All rights reserved.
cmd>
Fixed.
In nogui mode session.ui is a different class that does not have the set_fatal_error_log_file() method. Also it does not use Qt. Made bug reporter check if the UI.set_fatal_error_log_file() method exists before trying to call it.