Attribute error when writing xml output
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start with odml/tools/xmlparser.py, especially save_element around line 82, and reproduce the writer.write_file('{0}.xml'.format("bla")) call shown in the traceback. Done means XML output can be written without the reported AttributeError.
Written by the indexing model from the issue text.
Description
odml version 1.4.1
INFO:rdflib:RDFLib Version: 4.2.2
Traceback:
writer.write_file('{0}.xml'.format("bla"))
File "/usr/local/lib/python2.7/dist-packages/odml/tools/xmlparser.py", line 128, in write_file
data = unicode(self).encode('utf-8')
File "/usr/local/lib/python2.7/dist-packages/odml/tools/xmlparser.py", line 122, in __unicode__
return ET.tounicode(self.save_element(self.doc), pretty_print=True)
File "/usr/local/lib/python2.7/dist-packages/odml/tools/xmlparser.py", line 108, in save_element
ele = XMLWriter.save_element(v)
File "/usr/local/lib/python2.7/dist-packages/odml/tools/xmlparser.py", line 108, in save_element
ele = XMLWriter.save_element(v)
File "/usr/local/lib/python2.7/dist-packages/odml/tools/xmlparser.py", line 82, in save_element
cur = E(fmt.name)
AttributeError: 'unicode' object has no attribute 'name'
- Dominant language
- Python
- Stars
- 25
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from G-Node/python-odml
-
RDF
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
G-Node/python-odml#172 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
G-Node/python-odml#420 ·
-
Sparse file output Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
G-Node/python-odml#418 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
G-Node/python-odml#417 · 8 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
G-Node/python-odml#406 ·
All issues in G-Node/python-odml
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·