Traceback (most recent call last):
File "cpconvert.py", line 848, in <module>
main()
File "cpconvert.py", line 821, in main
version,stories,images = importStories(verbose)
File "cpconvert.py", line 679, in importStories
for line in storiesCSV:
_csv.Error: line contains NULL byte
pretty straightforward, but I don't know a whole lot about Python. Can anybody help?
Daniel
> --
> You received this message because you are a part of CoPress (http://www.copress.org/).
> - To post a message to this group, send email to cop...@googlegroups.com
> - To unsubscribe from this group, send an email to copress+u...@googlegroups.com
> - For more options, visit this group at http://groups.google.com/group/copress
> - Get connected on Twitter http://www.twitter.com/copress or Facebook http://www.facebook.com/copress
>
> http://www.copress.org/
I checked the encoding of the CSV file and it's telling me: Non-ISO extended ASCII HTML document text, with very long lines, with CRLF line terminators.
The error I get is:
Traceback (most recent call last):
File "cpconvert.py", line 848, in <module>
main()
File "cpconvert.py", line 821, in main
version,stories,images = importStories(verbose)
File "cpconvert.py", line 722, in importStories
story = [line[0],line[2],line[3],line[4],line[6],line[7],line[8],line[5]]
IndexError: list index out of range
and here's what the last few lines of text in my CSV before the error (in verbose mode, answering "yes" to "would you like to run a test") looks like:
$%?m(?O` "<p>
Q
A
"
?
N<p>
qra?\
i
O[?HD??=?A~r
-/ ?="#?+$?+%<p>
Any ideas?
I haven't dealt with this in well over a year, but that a story is screwing up the CSV parsing -- it thinks that "
On Mar 7, 2011 7:49 PM, "Matthew Gerring" <beat...@gmail.com> wrote:
>
> Ouch- almost got there, but then I got a message from WordPress 3.0 that the files produced by the script are not valid WXR. Says in the file that the generator is WordPress 2.7.1.
What version of the WordPress Importer plugin are you running? Be sure you're on 0.3 and preferably running PHP 5.2. If that still doesn't work, try adding this to wp-config.php, for expanded error reporting:
define('IMPORT_DEBUG', true);
Nacin
--
You received this message because you are a part of CoPress (http://www.copress.org/).
- To post a message to this group, send email to cop...@googlegroups.com
- To unsubscribe from this group, send an email to copress+u...@googlegroups.com
- For more options, visit this group at http://groups.google.com/group/copress
- Get connected on Twitter http://www.twitter.com/copress or Facebook http://www.facebook.com/copress
http://www.copress.org/