An error opening chimerax seesion
Hi all, I'm using chimeraX 0.8 (2018-12-17) on centos 7 (can't remember the build). Sometimes when I load a session that was saved using this version of chimeraX it gives me this error: Unable to restore session, resetting. Traceback (most recent call last): File "/software/graphics/chimerax/lib/python3.6/site-packages/chimerax/core/ session.py", line 593, in restore obj = sm.restore_snapshot(self, data) File "/software/graphics/chimerax/lib/python3.6/site-packages/chimerax/ std_commands/view.py", line 214, in restore_snapshot for k,v in data ['view attrs'].items(): TypeError: 'NoneType' object is not subscriptable After that I can't open the session again, so I need to remake it. Help, Yehuda Halfon
I have a similar problem with ChimeraX 1.11.1 on Windows 11. Unable to restore session, resetting. Traceback (most recent call last): File "C:\Program Files\ChimeraX 1.11.1\bin\Lib\site-packages\chimerax\core\session.py", line 863, in restore obj = sm.restore_snapshot(self, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\a\AppData\Local\UCSF\ChimeraX\1.11\Python311\site-packages\chimerax\artiax\particle\ParticleList.py", line 1232, in restore_snapshot pl.collection_model.displayed_child_positions = copy(pl._displayed_particles) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\ChimeraX 1.11.1\bin\Lib\site-packages\chimerax\graphics\drawing.py", line 266, in __setattr__ super(Drawing, self).__setattr__(key, value) File "C:\Users\a\AppData\Local\UCSF\ChimeraX\1.11\Python311\site-packages\chimerax\artiax\particle\SurfaceCollectionModel.py", line 292, in displayed_child_positions col.display_positions = copy(value) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\ChimeraX 1.11.1\bin\Lib\site-packages\chimerax\graphics\drawing.py", line 266, in __setattr__ super(Drawing, self).__setattr__(key, value) File "C:\Program Files\ChimeraX 1.11.1\bin\Lib\site-packages\chimerax\graphics\drawing.py", line 418, in set_display_positions self._any_displayed_positions = (position_mask.sum() > 0) ^^^^^^^^^^^^^^^^^^^^^^^ TypeError: '>' not supported between instances of 'NoneType' and 'int'
The error is a failure in the ChimeraX session restore for ArtiaX. It means the session somehow contains a closed model. Possibly the you encountered an error in ChimeraX before you saved the session which caused a model not to be fully deleted and then you saved a session with this corrupted state. No way for me to know without seeing the session file. To report a bug in ChimeraX you should use the Report Bug button that appears in ChimeraX when the error occurs. You could attach the problem session file to the bug report if the data is not private and we could look at whether there is a way to recover it. Tom
On Mar 11, 2026, at 3:24 AM, 255426--- via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
I have a similar problem with ChimeraX 1.11.1 on Windows 11.
Unable to restore session, resetting.
Traceback (most recent call last): File "C:\Program Files\ChimeraX 1.11.1\bin\Lib\site-packages\chimerax\core\session.py", line 863, in restore obj = sm.restore_snapshot(self, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\a\AppData\Local\UCSF\ChimeraX\1.11\Python311\site-packages\chimerax\artiax\particle\ParticleList.py", line 1232, in restore_snapshot pl.collection_model.displayed_child_positions = copy(pl._displayed_particles) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\ChimeraX 1.11.1\bin\Lib\site-packages\chimerax\graphics\drawing.py", line 266, in __setattr__ super(Drawing, self).__setattr__(key, value) File "C:\Users\a\AppData\Local\UCSF\ChimeraX\1.11\Python311\site-packages\chimerax\artiax\particle\SurfaceCollectionModel.py", line 292, in displayed_child_positions col.display_positions = copy(value) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\ChimeraX 1.11.1\bin\Lib\site-packages\chimerax\graphics\drawing.py", line 266, in __setattr__ super(Drawing, self).__setattr__(key, value) File "C:\Program Files\ChimeraX 1.11.1\bin\Lib\site-packages\chimerax\graphics\drawing.py", line 418, in set_display_positions self._any_displayed_positions = (position_mask.sum() > 0) ^^^^^^^^^^^^^^^^^^^^^^^ TypeError: '>' not supported between instances of 'NoneType' and 'int' _______________________________________________ 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/
There was a bug when saving that session, so that session file is unusable. We have changed ChimeraX, so if there is a problem saving the session, it will let you report that as a bug instead of leaving you with an invalid session file. The fix is in ChimeraX 0.9. However, at this stage of ChimeraX's development, we recommend that you often. At least as often as when there are production releases :-). Monthly, wouldn't hurt. -- Greg On 7/2/2019 3:03 AM, Yehuda Halfon wrote:
Hi all,
I'm using chimeraX 0.8 (2018-12-17) on centos 7 (can't remember the build).
Sometimes when I load a session that was saved using this version of chimeraX it gives me this error:
Unable to restore session, resetting.
Traceback (most recent call last):
File "/software/graphics/chimerax/lib/python3.6/site-packages/chimerax/core/
session.py", line 593, in restore
obj = sm.restore_snapshot(self, data)
File "/software/graphics/chimerax/lib/python3.6/site-packages/chimerax/
std_commands/view.py", line 214, in restore_snapshot
for k,v in data ['view attrs'].items():
TypeError: 'NoneType' object is not subscriptable
After that I can't open the session again, so I need to remake it.
Help,
Yehuda Halfon
_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
Ok thanks, I'll install the new 0.9 in parallel to the 0.8 so we can open the old sessions. ________________________________ From: Greg Couch <gregc@cgl.ucsf.edu> Sent: Tuesday, July 2, 2019 6:48:10 PM To: Yehuda Halfon; chimerax-users@cgl.ucsf.edu Subject: Re: [chimerax-users] An error opening chimerax seesion There was a bug when saving that session, so that session file is unusable. We have changed ChimeraX, so if there is a problem saving the session, it will let you report that as a bug instead of leaving you with an invalid session file. The fix is in ChimeraX 0.9. However, at this stage of ChimeraX's development, we recommend that you often. At least as often as when there are production releases :-). Monthly, wouldn't hurt. -- Greg On 7/2/2019 3:03 AM, Yehuda Halfon wrote: Hi all, I'm using chimeraX 0.8 (2018-12-17) on centos 7 (can't remember the build). Sometimes when I load a session that was saved using this version of chimeraX it gives me this error: Unable to restore session, resetting. Traceback (most recent call last): File "/software/graphics/chimerax/lib/python3.6/site-packages/chimerax/core/ session.py", line 593, in restore obj = sm.restore_snapshot(self, data) File "/software/graphics/chimerax/lib/python3.6/site-packages/chimerax/ std_commands/view.py", line 214, in restore_snapshot for k,v in data ['view attrs'].items(): TypeError: 'NoneType' object is not subscriptable After that I can't open the session again, so I need to remake it. Help, Yehuda Halfon _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu<mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
0.9 should be able to open all 0.8 sessions. -- Greg On 7/2/2019 8:57 AM, Yehuda Halfon wrote:
Ok thanks,
I'll install the new 0.9 in parallel to the 0.8 so we can open the old sessions.
------------------------------------------------------------------------ *From:* Greg Couch <gregc@cgl.ucsf.edu> *Sent:* Tuesday, July 2, 2019 6:48:10 PM *To:* Yehuda Halfon; chimerax-users@cgl.ucsf.edu *Subject:* Re: [chimerax-users] An error opening chimerax seesion
There was a bug when saving that session, so that session file is unusable. We have changed ChimeraX, so if there is a problem saving the session, it will let you report that as a bug instead of leaving you with an invalid session file. The fix is in ChimeraX 0.9. However, at this stage of ChimeraX's development, we recommend that you often. At least as often as when there are production releases :-). Monthly, wouldn't hurt.
-- Greg
On 7/2/2019 3:03 AM, Yehuda Halfon wrote:
Hi all,
I'm using chimeraX 0.8 (2018-12-17) on centos 7 (can't remember the build).
Sometimes when I load a session that was saved using this version of chimeraX it gives me this error:
Unable to restore session, resetting.
Traceback (most recent call last):
File "/software/graphics/chimerax/lib/python3.6/site-packages/chimerax/core/
session.py", line 593, in restore
obj = sm.restore_snapshot(self, data)
File "/software/graphics/chimerax/lib/python3.6/site-packages/chimerax/
std_commands/view.py", line 214, in restore_snapshot
for k,v in data ['view attrs'].items():
TypeError: 'NoneType' object is not subscriptable
After that I can't open the session again, so I need to remake it.
Help,
Yehuda Halfon
_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu <mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
participants (4)
-
255426@muni.cz -
Greg Couch -
Tom Goddard -
Yehuda Halfon