﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	notify_on_close	platform	project
1802	"Python shell: tab completion produces ""KeyError: 'matches' "" after failed import"	tic20@…	Conrad Huang	"{{{
The following bug report has been submitted:
Platform:        Linux-3.10.0-957.5.1.el7.x86_64-x86_64-with-centos-7.6.1810-Core
ChimeraX Version: 0.9 (2019-03-25)
Description
- open shell
- attempt to import a non-existent package, e.g.

from chimerax import a
ImportError: cannot import name 'a' from 'chimerax' (unknown location)

After this, trying to tab-complete an import statement in the shell gives this traceback.

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

> toolshed show Shell

/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/IPython/core/history.py:226: UserWarning: IPython History requires
SQLite, your history will not be saved  
warn(""IPython History requires SQLite, your history will not be saved"")  
Traceback (most recent call last):  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/qtconsole/base_frontend_mixin.py"", line 138, in _dispatch  
handler(msg)  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/qtconsole/jupyter_widget.py"", line 152, in _handle_complete_reply  
matches = content['matches']  
KeyError: 'matches'  
  
KeyError: 'matches'  
  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/qtconsole/jupyter_widget.py"", line 152, in _handle_complete_reply  
matches = content['matches']  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 415.27
OpenGL renderer: TITAN Xp/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

}}}
"	defect	closed	major		General Controls		fixed		Eric Pettersen Tom Goddard				all	ChimeraX
