Hi,
This is a bug.  It is fixed in tomorrow's daily build (look for a build dated Dec. 20, 2022 or later).  You can get your script to run right now by preventing the Model Panel tool from auto-starting.  Start Chimera normally (i.e. not nogui) and use Favorites→Add to Favorites/Toolbar... to turn off Model Panel auto-starting and click Save.  Then your script should run.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab


On Dec 20, 2022, at 12:06 AM, 夏前程 via Chimera-users <chimera-users@cgl.ucsf.edu> wrote:

Hi,

I've tried to use chimera nogui mode to save chimera sessions for a large number of tasks (one session for each task). However, an error message was returned and without the wanted output.py being written. The command I used is chimera --nogui --silent run.cmd. ( followed this https://www.cgl.ucsf.edu/pipermail/chimera-users/2011-October/006863.html​)


The content of run.cmd

-------------------------------------

background solid white
set silhouette
open rec.crg.pdb xtal-lig.pdb
sel #1-2
zone sel 5
~sel #1-2
sel up
~rib ~ sel
color white sel
color byhet sel
rlabel sel
color black ,lr
dis sel
~dis HC
open rec.crg.pdb
save output.py
stop

-------------------------------------

The error message returned

-------------------------------------

Starting extension 'Model Panel' failed

Error processing trigger "save session":
AttributeError: 'ModelPanel' object has no attribute '_updateHandler'

  File "/home/xiaqc/.local/UCSF-Chimera64-1.16/share/ModelPanel/base.py", line 1301, in _saveGroups
    if _mp._updateHandler:

See reply log for Python traceback.


Error while processing run.cmd:
AttributeError: 'ModelPanel' object has no attribute '_updateHandler'

  File "/home/xiaqc/.local/UCSF-Chimera64-1.16/share/ModelPanel/base.py", line 1301, in _saveGroups
    if _mp._updateHandler:

See reply log for Python traceback.

--------------------------------------​


I've tested ​1.16 (build 42360) and 1.15 (build 42233). Both of them failed.






_______________________________________________
Chimera-users mailing list: Chimera-users@cgl.ucsf.edu
Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users