Closed petitpimousse closed 9 years ago
Hmm, maybe the format of the dotclear export has changed. You can see the fields that are used by pelican (https://github.com/getpelican/pelican/blob/master/pelican/tools/pelican_import.py#L217) and check if it corresponds to your export file. Otherwise can you paste a sample of this export file ?
Thanks a lot for your response.
Indeed it seems that the header has changed. Here's what I get:
[setting setting_id,setting_type,setting_value] ... [user user_id,user_level,user_pwd,user_nom,user_prenom,user_pseudo,user_email,us er_post_format,user_edit_size,user_pref_cat,user_lang,user_delta,user_post_pub] ... [categorie cat_id,cat_libelle,cat_desc,cat_libelle_url,cat_ord] ... [post post_id,user_id,cat_id,post_dt,post_creadt,post_upddt,post_titre,post_titre_url,post_chapo,post_chapo_wiki,post_content,post_content_wiki,post_notes,post_pub,post_selected,post_open_comment,post_open_tb,nb_comment,nb_trackback,post_lang] ... (the blog posts)
Do I better converting dotclear 1.2.8 in dotclear 2.x before the export?
The import from dotclear 2.x went well.
Hello,
I'm trying to import a flatExport file from dotclear 1.2.8 using this command:
$ pelican-import --dotclear -m markdown --dir-cat blog-backup.txt -o content
and here's the output:
74 posts read. Traceback (most recent call last): File "pelican-import", line 11, in
sys.exit(main())
File "pelican_import.py", line 811, in main
attachments = attachments or None)
File "pelican_import.py", line 623, in fields2pelican
kind, in_markup) in fields:
File "pelican_import.py", line 242, in dc2fields
post_meta = fields[27]
IndexError: list index out of range