Wordpress2blogger error "time data did not match format"???

123 views
Skip to first unread message

Heidi Estrin

unread,
Mar 13, 2013, 9:42:20 AM3/13/13
to google-blog...@googlegroups.com
Hi. When I try to convert the xml file I downloaded from Wordpress, using wordpress2blogger, this is the error I get (below). How can I fix this? Any help appreciated! - Heidi

Error encountered during conversion.

Traceback (most recent call last):
File "/base/data/home/apps/wordpress2blogger/1.351455968489003159/wordpress2blogger.py", line 43, in post
translator.Translate(input, self.response.out)
File "/base/data/home/apps/wordpress2blogger/1.351455968489003159/wp2b.py", line 150, in Translate
xml.sax.parseString(self.RemoveMetaData(doc), self)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/__init__.py", line 49, in parseString
parser.parse(inpsrc)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/expatreader.py", line 304, in end_element
self._cont_handler.endElement(name)
File "/base/data/home/apps/wordpress2blogger/1.351455968489003159/wp2b.py", line 188, in endElement
handler(self.contents.strip())
File "/base/data/home/apps/wordpress2blogger/1.351455968489003159/wp2b.py", line 214, in endPubdate
self._ToBlogTime(self._WordpressPubDateToTime(content)))
File "/base/data/home/apps/wordpress2blogger/1.351455968489003159/wp2b.py", line 517, in _WordpressPubDateToTime
return time.strptime(wp_date[:-6], '%a, %d %b %Y %H:%M:%S')
File "/base/python_runtime/python_dist/lib/python2.5/_strptime.py", line 330, in strptime
(data_string, format))
ValueError: time data did not match format: data=Fri Jun 05 07:02:34 -070 fmt=%a, %d %b %Y %H:%M:%S

Tommy Andy

unread,
Mar 20, 2013, 6:46:00 AM3/20/13
to google-blog...@googlegroups.com
Hey. I got the same problem. I hope somebody knows how to fix this problem. Please!

"Error encountered during conversion.

Traceback (most recent call last):
File "/base/data/home/apps/wordpress2blogger/1.351455968489003159/wordpress2blogger.py", line 43, in post
translator.Translate(input, self.response.out)
File "/base/data/home/apps/wordpress2blogger/1.351455968489003159/wp2b.py", line 150, in Translate
xml.sax.parseString(self.RemoveMetaData(doc), self)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/__init__.py", line 49, in parseString
parser.parse(inpsrc)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/expatreader.py", line 304, in end_element
self._cont_handler.endElement(name)
File "/base/data/home/apps/wordpress2blogger/1.351455968489003159/wp2b.py", line 188, in endElement
handler(self.contents.strip())
File "/base/data/home/apps/wordpress2blogger/1.351455968489003159/wp2b.py", line 298, in endPost_Date
blogger_time = self._ToBlogTime(self._WordpressDateToTime(content))
File "/base/data/home/apps/wordpress2blogger/1.351455968489003159/wp2b.py", line 521, in _WordpressDateToTime
return time.strptime(wp_date, '%Y-%m-%d %H:%M:%S')
File "/base/python_runtime/python_dist/lib/python2.5/_strptime.py", line 440, in strptime
datetime_date(year, 1, 1).toordinal() + 1
ValueError: day is out of range for month"
Reply all
Reply to author
Forward
0 new messages