#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 , 7 years ago
| Component: | Unassigned → Sessions |
|---|---|
| Milestone: | → 0.9 |
| Owner: | set to |
| Platform: | → all |
| Project: | → ChimeraX |
| Status: | new → assigned |
| Summary: | ChimeraX bug report submission → TypeError: __getattr__() missing 1 required positional argument: 'attr_name' |
comment:2 by , 7 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
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.
Version 0, edited 7 years ago by (next)
Note:
See TracTickets
for help on using tickets.
Python 3.7 seems to have broken this.