Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1797 closed defect (duplicate)

'Session' object has no attribute 'preset_mgr'

Reported by: kpwulab@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Graphics Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-18.2.0-x86_64-i386-64bit
ChimeraX Version: 0.9 (2019-03-05)
Description
Cannot load saved session using this version but okay for session files saved 3 months ago.

Log:
UCSF ChimeraX version: 0.9 (2019-03-05)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open /Users/kpwu/Desktop/xxxx.cxs

Unable to restore session, resetting.  
  
Traceback (most recent call last):  
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/session.py", line 594, in restore  
obj = sm.restore_snapshot(self, data)  
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/preset_mgr/manager.py", line 48, in restore_snapshot  
return session.preset_mgr  
AttributeError: 'Session' object has no attribute 'preset_mgr'  
  
opened ChimeraX session  
Traceback (most recent call last):  
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/triggerset.py", line 130, in invoke  
return self._func(self._name, data)  
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/map/volume.py", line 3482, in _update_drawings  
if v.display:  
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/graphics/drawing.py", line 317, in get_display  
return self._any_displayed_positions and len(self._positions) > 0  
TypeError: object of type 'NoneType' has no len()  
  
Error processing trigger "graphics update": object of type 'NoneType' has no
len():  
TypeError: object of type 'NoneType' has no len()  
  
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/graphics/drawing.py", line 317, in get_display  
return self._any_displayed_positions and len(self._positions) > 0  
  
See log for complete Python traceback.  
  




OpenGL version: 4.1 INTEL-12.2.17
OpenGL renderer: Intel(R) Iris(TM) Plus Graphics 655
OpenGL vendor: Intel Inc.

Change History (4)

comment:1 by pett, 7 years ago

Component: UnassignedGraphics
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionself._positions is None

comment:2 by pett, 7 years ago

Resolution: duplicate
Status: assignedclosed
Summary: self._positions is None'Session' object has no attribute 'preset_mgr'

Hi Kuen,

This problem was fixed the day after the version you got(!), so if you get a newer version you won't run into this problem. Sorry for the inconvenience.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

in reply to:  3 ; comment:3 by kpwulab@…, 7 years ago

Hi,

Yes, I download the daily build version (3/22) and relaunched ChimeraX on
my mac. It can load session file perfectly.  Thanks for providing ChimeraX.

Kuen.

On Tue, Mar 26, 2019 at 2:02 AM ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
wrote:

comment:4 by pett, 7 years ago

Great!

--Eric

Note: See TracTickets for help on using tickets.