Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Problem with Python XML-RPC and ElementTree

$
0
0

Replies: 0

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!


Viewing all articles
Browse latest Browse all 59525

Trending Articles