-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError when attempting to view dom.minidom.Element object in Variable Explorer #5642
Comments
Thanks for reporting, but unfortunately your description is not complete. Please post the Python code you used to get Thanks! |
I've reproduced and fixed this by just catching the error where it occurs, and you are now able to view the from xml.dom.minidom import parseString
file = "Data/content226_uifz_block6.txt"
with open(file) as f:
read_data = f.read()
content = parseString(read_data)
tables = content.getElementsByTagName("table:table") |
Description
variable explorers list view crashes on opening nested xml elements
What steps will reproduce the problem?
What is the expected output? What do you see instead?
expected to see content of the xml node, got a crash instead
Please provide any additional information below
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 513, in createEditor
readonly=readonly)
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 1308, in setup
readonly=readonly, remote=remote)
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 1260, in init
title)
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 1145, in init
minmax=minmax)
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 110, in init
self.set_data(data)
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 158, in set_data
self.set_size_and_type()
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 178, in set_size_and_type
for index in range(start, stop) ]
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 178, in
for index in range(start, stop) ]
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 78, in getitem
return getattr(self.obj, key)
AttributeError: _localName
Version and main components
Dependencies
The text was updated successfully, but these errors were encountered: