adammorris/Luis-Rei-Wordpress-to-Evernote — Issue #2: 'NoneType' object has no attribute 'data'
Author: Isegrimm
Created: 2012-02-29 08:29:25+00:00
State: open

Hi, I tried running this script to migrate my posts from Wordpress to Evernote, but it stops with an error.
This is the full output:
C:\Python27>python wordpress.py -o c:\python27\ .\isegrimm24-2.xml
Traceback (most recent call last):
File "wordpress.py", line 166, in
main(sys.argv)
File "wordpress.py", line 164, in main
convert(infile, outdir, splitByYear, categories)
File "wordpress.py", line 49, in convert
post["title"] = node.getElementsByTagName('title')[0].firstChild.data
AttributeError: 'NoneType' object has no attribute 'data'

Any idea what the issue could be? I tried altering the syntax in line 49, but it always returns this error.

To get this far I had to add the following to the rss-section of the exported xml:
xmlns:atom="http://www.w3.org/2005/Atom"
Otherwise the script would give this error:
xml.parsers.expat.ExpatError: unbound prefix: line 48, column 1