Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-20-2008, 01:03 AM   #1
bnajari
Junior Member
bnajari began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2008
Device: PRS505
Converting a large file to lrf in calibre

Hi, I just got my PRS505 for graduation a couple of days ago and I've been trying all sorts of ways to fit a medical textbook onto my reader. I have the book in .chm format, and it is 380MB. I used hh.exe to decompile it, zipped it into a zip file, and then used calibre, but I get the following error message:

Detailed traceback:
Traceback (most recent call last):
File "main.py", line 370, in add_books
File "main.py", line 395, in _add_books
File "calibre\gui2\library.pyo", line 123, in add_books
File "calibre\library\database.pyo", line 1295, in add_books
MemoryError

I have also tried ABC Amber Converter, which converts it to a 7MB lit file. When I try using calibre on the lit file, the job just keeps processing and never stops. I've left it for a couple of hours and the hour glass just keeps spinning.

Any advice?
bnajari is offline   Reply With Quote
Old 05-20-2008, 07:36 AM   #2
Deputy-Dawg
Groupie
Deputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-books
 
Deputy-Dawg's Avatar
 
Posts: 155
Karma: 799
Join Date: Dec 2007
Device: sony prs505
Have you tried doing the conversion from the command line? As in

Code:
html2lrf
or

Code:
lit2lrf
Deputy-Dawg is offline   Reply With Quote
 
Enthusiast
Old 05-20-2008, 09:04 AM   #3
bnajari
Junior Member
bnajari began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2008
Device: PRS505
Actually, after posting my first message I did try the conversion from the the command line. lit2lrf completed the conversion fine. But when I load the 10MB file onto the reader, the last page is "NaN" and it won't load up either of the pages. I am just stuck on the Begin, End, Bookmarks, TOC, etc screen. There is also no TOC.

When I try html2lrf on the zipped output from hh.exe, I get this:

C:\Program Files\calibre>html2lrf --minimize-memory-usage d:\camp.zip
Processing camp.zip
Traceback (most recent call last):
File "convert_from.py", line 1929, in <module>
File "convert_from.py", line 1923, in main
File "convert_from.py", line 1815, in process_file
File "convert_from.py", line 269, in __init__
File "convert_from.py", line 377, in add_file
File "calibre\ebooks\chardet\__init__.pyo", line 49, in xml_to_unicode
File "calibre\ebooks\chardet\__init__.pyo", line 26, in detect
File "calibre\ebooks\chardet\universaldetector.pyo" , line 115, in feed
File "calibre\ebooks\chardet\charsetgroupprober.pyo ", line 59, in feed
File "calibre\ebooks\chardet\sjisprober.pyo", line 53, in feed
MemoryError
bnajari is offline   Reply With Quote
Old 05-20-2008, 10:27 AM   #4
bnajari
Junior Member
bnajari began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2008
Device: PRS505
So just now I tried a smaller .chm book that was only about 30MB, and the same thing happens when I ABC Amber CHM Converter to export a .lit file and the use lit2lrf. It freezes on the 1st screen of the book.

I also did the same hh.exe -decompile, zipped the output file, and run html2lrf. This is what I get with that:

C:\Program Files\calibre>html2lrf d:\SGU.zip
Processing SGU.zip
Traceback (most recent call last):
File "convert_from.py", line 1929, in <module>
File "convert_from.py", line 1923, in main
File "convert_from.py", line 1815, in process_file
File "convert_from.py", line 269, in __init__
File "convert_from.py", line 377, in add_file
File "calibre\ebooks\chardet\__init__.pyo", line 59, in xml_to_unicode
TypeError: decode() argument 1 must be string, not None
bnajari is offline   Reply With Quote
Old 05-20-2008, 12:41 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,622
Karma: 4998489
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Interesting, send me you small zip file.
kovidgoyal is online now   Reply With Quote
Old 05-22-2008, 09:06 AM   #6
Deputy-Dawg
Groupie
Deputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-books
 
Deputy-Dawg's Avatar
 
Posts: 155
Karma: 799
Join Date: Dec 2007
Device: sony prs505
Kovid,
I don't think that Mr. bnajari is altogether on the up and up. He did post me the .lit file on one of the share servers. The file contained about 11 pages of binary data that the beginning of the file which choked calibre. Moreover he had done the conversion of the file with a demo version of ABC Amber CHM converter which is limited in several interesting ways but the most interesting limitation would exist in even the production versions in that it creates a single flat file with no directory data and on such a large project the toc would be mandatory I would think.
Deputy-Dawg is offline   Reply With Quote
Old 05-22-2008, 10:50 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,622
Karma: 4998489
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well he sent me the zip file, which I told him how to fix.
kovidgoyal is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting large book (Bible) MI3Guy Calibre 2 06-10-2010 07:23 AM
JBL- Calibre ePub sometimes = "File too Large" Error Ken Maltby Ectaco jetBook 13 01-09-2010 01:27 PM
Error converting accented characters into LRF with calibre Seabound Calibre 5 10-19-2008 12:15 AM
problem with calibre converting pdf to lrf badr Calibre 11 05-23-2008 10:16 AM
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything vasbinde Calibre 6 02-14-2008 12:16 PM


All times are GMT -4. The time now is 02:17 AM.


MobileRead.com is a privately owned, operated and funded community.