This worked for me!! 
Thanks 

On Sunday, 4 May 2014 20:02:17 UTC+5:30, Alex wrote:
>
> I met the same issue with Mezzanine 3.1.3. 
> Wordpress exports invalid pubDate "Wed, 30 Nov -0001 00:00:00 +0000" for 
> draft (not published) posts.
> I've fixed it by adding the following check in 
> mezzanine/blog/management/commands/import_wordpress.py:
>             if pub_date is None:
>                 print "Invalid pubDate, entry skipped"
>                 continue
>
> just before line 64 where it crashes on invalid date:
>             pub_date = datetime.fromtimestamp(mktime(pub_date))
>
>
> On Thursday, April 25, 2013 5:19:38 PM UTC+1, Christian Bahls wrote:
>>
>> I finally tried to import our old blog into our new Mezzanine installation
>>
>> what is got was
>>
>> # python manage.py import_wordpress --mezzanine-user=theadmin -n -f 
>>> --url=wordpress.2013-04-25.xml 
>>> /home/e/MEZZANINE-ENV/local/lib/python2.7/site-packages/feedparser.py:364: 
>>> DeprecationWarning: To avoid breaking existing software while fixing issue 
>>> 310, a temporary mapping has been created from `updated_parsed` to 
>>> `published_parsed` if `updated_parsed` doesn't exist. This fallback will be 
>>> removed in a future version of feedparser.
>>>   DeprecationWarning)
>>> TypeError: argument must be 9-item sequence, not None
>>
>>
>> The Wordpress version that i used to export the XML was 3.5.1
>>
>> Anybody having similar difficulties?
>>
>> Christian
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to