Comments (2)
Also, Removing it doesn't help either.
Unless there's something i'm missing 👍
'xml_resp = dicttoxml(json_resp, custom_root='health_report')
File "/usr/lib/python2.6/site-packages/dicttoxml.py", line 389, in dicttoxml
convert(obj, ids, attr_type, item_func, cdata, parent=custom_root),
File "/usr/lib/python2.6/site-packages/dicttoxml.py", line 177, in convert
return convert_kv(item_name, obj, attr_type, cdata)
File "/usr/lib/python2.6/site-packages/dicttoxml.py", line 329, in convert_kv
attr['type'] = get_xml_type(val)
TypeError: 'bool' object does not support item assignment
from dicttoxml.
UPDATE : Issue was resolved once i loaded the json string. it appears just passing in a json string doesnt work, but the error isn't helpful.
Perhaps this can be an error handling enhancement issue instead
from dicttoxml.
Related Issues (20)
- Root and header not formed HOT 1
- dicttoxml vs dict2xml HOT 1
- Converter doesnt support datetime.date HOT 1
- Facing problems with newer versions of python
- Support for enums
- Feature: adding `py.typed` metadata
- Missing 'project.toml' file
- converting python dict to xml taking longer time and sometime hanged the system HOT 6
- 'True' is not a valid value for 'boolean' HOT 2
- Option to omit the xml declaration but keep the root or custom_root HOT 3
- How do I disable encoding type? HOT 2
- Transfer ownership HOT 8
- AttributeError: 'int' object has no attribute 'isdigit' HOT 2
- how to prevent xml escaping HOT 1
- AttributeError: module 'collections' has no attribute 'Iterable' HOT 13
- python 3.9.7: `pip install dicttoxml` is installing only `installed-filed.txt` HOT 5
- collections.Iterable is deprecated HOT 2
- python 3.8: Support dropped in 1.7.5 but not mentioned in release notes or docs HOT 1
- Update readme section on debugging HOT 1
- logging issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dicttoxml.