Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1632 closed defect (fixed)

TypeError: __getattr__() missing 1 required positional argument: 'attr_name'

Reported by: Conrad Huang Owned by: Greg Couch
Priority: normal Milestone: 0.9
Component: Sessions Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Windows-10-10.0.17134
ChimeraX Version: 0.9 (2019-01-22)
Description
Opened volume file and tried to save a session.

Log:
UCSF ChimeraX version: 0.9 (2019-01-22)  
How to cite UCSF ChimeraX  

> open 5625 fromDatabase emdb

Summary of feedback from opening 5625 fetched from emdb  
---  
note | Fetching compressed map 5625 from
ftp://ftp.ebi.ac.uk/pub/databases/emdb/structures/EMD-5625/map/emd_5625.map.gz  
  
Opened emd_5625.map, grid size 56,56,56, pixel 4.23, shown at level 4.2, step
1, values float32  

> save testvol

Missing filename suffix testvol  

> save testvol.cxs

Session file format is not finalized, and thus might not be restorable in
other versions of ChimeraX.  

Error in saving session for "PseudobondManager":  
Traceback (most recent call last):  
File "D:\chimerax\ChimeraX.app\bin\lib\site-
packages\chimerax\core\session.py", line 255, in process  
data = sm.take_snapshot(obj, session, self.state_flags)  
File "D:\chimerax\ChimeraX.app\bin\lib\site-
packages\chimerax\atomic\molobject.py", line 561, in take_snapshot  
'custom attrs': get_custom_attrs(PseudobondManager, self)}  
File "D:\chimerax\ChimeraX.app\bin\lib\site-
packages\chimerax\atomic\molobject.py", line 37, in get_custom_attrs  
from .attr_registration import NO_DEFAULT  
File "<frozen importlib._bootstrap>", line 1019, in _handle_fromlist  
TypeError: __getattr__() missing 1 required positional argument: 'attr_name'  
  

Unable to save "PseudobondManager". Session might not restore properly.  




OpenGL version: 3.3.0 - Build 25.20.100.6323
OpenGL renderer: Intel(R) HD Graphics 530
OpenGL vendor: Intel

Change History (2)

comment:1 by Eric Pettersen, 7 years ago

Component: UnassignedSessions
Milestone: 0.9
Owner: set to Greg Couch
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionTypeError: __getattr__() missing 1 required positional argument: 'attr_name'

Python 3.7 seems to have broken this.

comment:2 by Greg Couch, 7 years ago

Resolution: fixed
Status: assignedclosed

Problem was that attr_registration.py defined a __getattr__ function at the module level, and in Python 3.7, that is now used for module attributes.

Last edited 7 years ago by Greg Couch (previous) (diff)
Note: See TracTickets for help on using tickets.