Title: Problem with Python XML-RPC and ElementTree
Last modified: October 14, 2020

---

# Problem with Python XML-RPC and ElementTree

 *  [benlong](https://wordpress.org/support/users/benlong/)
 * (@benlong)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/problem-with-python-xml-rpc-and-elementtree/)
 * I’m working on a Python 3 script which uses the Python XML-RPC module to add 
   posts to my wordpress site. When I issue the wp.call(NewPost()) command, I get
   a big mess of errors, culminating in:
 * TypeError: cannot marshal <class ‘xml.etree.ElementTree.Element’> objects
 * The post that I’m building does include some data that I’ve pulled from an XML
   file using ElementTree. I assume that it just doesn’t like these data types, 
   but I’m not sure what to do. Any help would be greatly appreciated.
 * Thanks!

The topic ‘Problem with Python XML-RPC and ElementTree’ is closed to new replies.

## Tags

 * [python](https://wordpress.org/support/topic-tag/python/)
 * [XML-RPC](https://wordpress.org/support/topic-tag/xml-rpc/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 0 replies
 * 1 participant
 * Last reply from: [benlong](https://wordpress.org/support/users/benlong/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/problem-with-python-xml-rpc-and-elementtree/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
