G-Node / G-Node/python-odml

Attribute error when writing xml output

Đang mở
#306 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
25
Fork
30
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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'
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.