View Single Post
Old 11-28-2010, 08:28 PM   #352
msr
Member
msr began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jul 2009
Device: Kindle2
I'm getting Memory errors with large libraries (~15,000+ books) when trying to generate either epub or mobi catalogs. The end part of the output is:

<code>
Initial parse failed:
Parsing file 'content/book_15985.html' as HTML
Forcing content/book_15985.html into XHTML namespace
Stripping comments and meta tags from content/book_15985.html
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Property: Unknown Property name. [1:1: mso-fareast-font-family]
Property: Unknown Property name. [1:1: mso-fareast-font-family]

[note: this is repeated a lot of times]

Property: Unknown Property name. [1:1: mso-fareast-font-family]
Property: Unknown Property name. [1:1: mso-bidi-font-style]
Property: Unknown Property name. [1:1: mso-bidi-font-style]
Exception MemoryError: in <generator object gen at 0x769E43E8> ignored
Exception MemoryError: in <generator object __iter__ at 0x23EC6A58> ignored
Python function terminated unexpectedly
(Error Code: 1)
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py" , line 122, in __
call__
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 191, in __init__
File "site-packages\cssutils-0.9.7b4-py2.7.egg\cssutils\util.py", line 738, in
namespaces
MemoryError
</code>

This occurs whether I include tags or exclude all of them. I can create a csv catalog without problems. I've also created smaller catalogs without errors, including up to about 8000 books. I believe I've created subsets with every book in my library, so I don't believe it is a specific book causing the problem, rather simply the large overall number. Any other possibilities or anything I can try to create a single catalog?
msr is offline