Dialog box after dockprep command in 1.7rc202311210000

Hello all, I am on an Apple M1 and have just updated to ChimeraX 1.7rc202311210000. I am just starting to learn how to use ChimeraX from the command line (Terminal). My code that ran from Terminal on ChimeraX 1.6 doesn't seem to be working now with 1.7. Specifically, it seems that the dockprep command now ends by automatically popping up a dialog box prompting you to save a Mol2 file. I think this is causing problems when I try to run in nogui mode. I will include the "error message" at the end of this message, in case it is helpful. If this dialog box is the problem, is there a way to suppress it? Thank you! RN ==== Copied from Terminal ==== ... Dock prep finished Unexpected exception, save your work and exit: Traceback (most recent call last): File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/core/nogui.py", line 232, in execute self._cmd.run(text) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/core/commands/cli.py", line 2908, in run result = ci.function(session, **kw_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 168, in dock_prep_cmd dock_prep_caller(session, structures, memorization=memorize, nogui=True, **kw) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 144, in dock_prep_caller run_steps(session, state, structures) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 159, in run_steps step_mod.run_for_dock_prep(session, state, run_steps, state['memorization'], state['memorize_name'], File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/prep.py", line 107, in prep callback(session, state, structures) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 159, in run_steps step_mod.run_for_dock_prep(session, state, run_steps, state['memorization'], state['memorize_name'], File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/addh/dock_prep.py", line 56, in run_for_dock_prep callback(session, state, structures) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 159, in run_steps step_mod.run_for_dock_prep(session, state, run_steps, state['memorization'], state['memorize_name'], File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/add_charge/dock_prep.py", line 58, in run_for_dock_prep callback(session, state, structures) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 154, in run_steps callback() File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/prep.py", line 101, in postscript show_save_file_dialog(session, format=session.data_formats.save_format_from_suffix(".mol2").name) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/save_command/dialog.py", line 138, in show_save_file_dialog _dlg.display(session, **kw) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/save_command/dialog.py", line 31, in display parent = session.ui.main_window ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'UI' object has no attribute 'main_window'

Hi RN, Thanks for finding and reporting this problem in the release candidate -- we really need this kind of feedback in order to make the production release as reliable as possible. Nonetheless, it would be mildly better to use Help→Report A Bug to report problems, so that it goes to just the ChimeraX developers rather than everyone on the mailing list. Still, happy you reported it. I have fixed the problem and the fix will be in tomorrow's release candidate and daily build. --Eric Eric Pettersen UCSF Computer Graphics Lab
On Nov 22, 2023, at 1:48 AM, r.m.newlon--- via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hello all,
I am on an Apple M1 and have just updated to ChimeraX 1.7rc202311210000.
I am just starting to learn how to use ChimeraX from the command line (Terminal). My code that ran from Terminal on ChimeraX 1.6 doesn't seem to be working now with 1.7.
Specifically, it seems that the dockprep command now ends by automatically popping up a dialog box prompting you to save a Mol2 file. I think this is causing problems when I try to run in nogui mode. I will include the "error message" at the end of this message, in case it is helpful.
If this dialog box is the problem, is there a way to suppress it?
Thank you! RN
==== Copied from Terminal ==== ... Dock prep finished
Unexpected exception, save your work and exit:
Traceback (most recent call last): File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/core/nogui.py", line 232, in execute self._cmd.run(text) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/core/commands/cli.py", line 2908, in run result = ci.function(session, **kw_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 168, in dock_prep_cmd dock_prep_caller(session, structures, memorization=memorize, nogui=True, **kw) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 144, in dock_prep_caller run_steps(session, state, structures) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 159, in run_steps step_mod.run_for_dock_prep(session, state, run_steps, state['memorization'], state['memorize_name'], File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/prep.py", line 107, in prep callback(session, state, structures) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 159, in run_steps step_mod.run_for_dock_prep(session, state, run_steps, state['memorization'], state['memorize_name'], File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/addh/dock_prep.py", line 56, in run_for_dock_prep callback(session, state, structures) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 159, in run_steps step_mod.run_for_dock_prep(session, state, run_steps, state['memorization'], state['memorize_name'], File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/add_charge/dock_prep.py", line 58, in run_for_dock_prep callback(session, state, structures) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/cmd.py", line 154, in run_steps callback() File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/dock_prep/prep.py", line 101, in postscript show_save_file_dialog(session, format=session.data_formats.save_format_from_suffix(".mol2").name) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/save_command/dialog.py", line 138, in show_save_file_dialog _dlg.display(session, **kw) File "/Applications/ChimeraX-1.7-rc2023.11.21.app/Contents/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/chimerax/save_command/dialog.py", line 31, in display parent = session.ui.main_window ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'UI' object has no attribute 'main_window' _______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
participants (2)
-
Eric Pettersen
-
r.m.newlon@gmail.com