]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/tips/Importing_posts_from_Wordpress/discussion.mdwn
(no commit message)
[ikiwiki.git] / doc / tips / Importing_posts_from_Wordpress / discussion.mdwn
index d70e8e0778061ecbade4d3fb70f03642487b2c93..e39bfe5f0355250abac779d102b57cc5f3737257 100644 (file)
@@ -5,6 +5,8 @@ Thanks!!
 
 -----
 
+### KeyError: 146
+
 I also get this error, here's the output (it seems to stem from an error in the python script):
 
 <pre>
@@ -21,3 +23,22 @@ git-fast-import statistics:
 </pre>
 
 etc.
+
+
+> Well, if this really is a script error, it's not really the script, but the wordpress XML dump, referring to a
+> possible malformed or invalid unicode character in the dump file. This is what I can gather from other scripts.
+> I'll be checking my dump file shortly.
+
+>> This is only part of the problem... I'm not exactly sure what's going on, and it's get late/early for me....
+
+>>> I used --force for fast-import, but then everything seems deleted, so you end up doing a reset, checkout, add, *then* commit.
+>>> Seems really odd. I edited the script however, maybe this is why... this is my changes:
+
+    -print "data %d" % len(data)
+    +print "data %d merge refs/heads/%s\ f" % (len(data), branch)
+
+>>> That control character is a ^q^0 in emacs, see git fast-import --help for more info.
+>>> I'll be trying an import *without* that change, to see what happens.
+
+>>>> (5 minutes later)
+>>>> Removing it makes it behave sanely. heh. Learned something new :). So ignore the comment just above, except for the --force part. You have to do that because fast-import assumes a clean uninitialized space.