dianariyanto / google-blog-converters-appengine

Automatically exported from code.google.com/p/google-blog-converters-appengine
Apache License 2.0
0 stars 0 forks source link

TypeError: cannot serialize #108

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Using ubuntu, and latest svn r93.

here is the traceback I get:

<traceback>
box # /bin/blogger2wordpress.sh fromblogspot.xml
Traceback (most recent call last):
  File "/bin/../src/blogger2wordpress/b2wp.py", line 270, in <module>
    print translator.Translate()
  File "/bin/../src/blogger2wordpress/b2wp.py", line 136, in Translate
    return wxr.WriteXml()
  File "/src/blogger2wordpress/wordpress.py", line 143, in WriteXml
    return XML_HEADER + ElementTree.tostring(indent(self._ToElementTree()))
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1126, in tostring
    ElementTree(element).write(file, encoding, method=method)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 817, in write
    self._root, encoding, default_namespace
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 886, in _namespaces
    _raise_serialization_error(tag)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1052, in _raise_serialization_error
    "cannot serialize %r (type %s)" % (text, type(text).__name__)
TypeError: cannot serialize <function CDataSection at 0x7f1ea635e230> (type 
function)
</traceback>

I have validated the xml file that I am feeding to blogger2wordpress.sh and it 
is ok.

Original issue reported on code.google.com by adem.meda@gmail.com on 23 Dec 2014 at 4:29