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 03-22-2010, 04:58 AM   #1
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
Error on import

This is the error message I'm getting.

"ERROR: Adding failed: The add books process seems to have hung. Try restarting calibre and adding the books in smaller increments, until you find the problem book."

I'm trying to add one book that is about 4MB in HTML. No images.

I tried re-starting Calibre and importing but that didn't work. I'm not sure how much memory is needed to import long ebooks?

Any advice would be appreciated. In the past I used to be able to import large ebooks without problem so I'm not sure if this is a problem due to upgrading to the newest Calibre 6.45.
Amalthia is offline   Reply With Quote
Old 03-22-2010, 05:56 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,885
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Amalthia View Post
This is the error message I'm getting.

"ERROR: Adding failed: The add books process seems to have hung. Try restarting calibre and adding the books in smaller increments, until you find the problem book."

I'm trying to add one book that is about 4MB in HTML. No images.

I tried re-starting Calibre and importing but that didn't work. I'm not sure how much memory is needed to import long ebooks?

Any advice would be appreciated. In the past I used to be able to import large ebooks without problem so I'm not sure if this is a problem due to upgrading to the newest Calibre 6.45.
I'm betting it has less to do with size and more with what code might be inside.

Can you currently add other books?
DoctorOhh is offline   Reply With Quote
Old 03-22-2010, 01:56 PM   #3
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
Quote:
Originally Posted by dwanthny View Post
I'm betting it has less to do with size and more with what code might be inside.

Can you currently add other books?
Yes I can add other ebooks to Calibre. I'm not doing anything weird to the code in the file. I converted it to html using WordPerfect's plain HTML option and then removed the unnecessary html tags.

It's as plain as it's going to get. The story is however about 800k words long. I also noticed with other files that get about that length Calibre sometimes takes them and sometimes doesn't.

I can check the HTML again to see if I find any unenclosed tags? I'm not sure what kind of code would produce this error message.
Amalthia is offline   Reply With Quote
Old 03-22-2010, 07:53 PM   #4
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,885
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Amalthia View Post
Yes I can add other ebooks to Calibre. I'm not doing anything weird to the code in the file. I converted it to html using WordPerfect's plain HTML option and then removed the unnecessary html tags.

It's as plain as it's going to get. The story is however about 800k words long. I also noticed with other files that get about that length Calibre sometimes takes them and sometimes doesn't.

I can check the HTML again to see if I find any unenclosed tags? I'm not sure what kind of code would produce this error message.
You've exceeded my minimal knowledge. Hopefully someone will step in to help out.

If you were using Word I would say to save it as Filtered HTML but it sounds like that is what you're doing.

You can try saving it as some other format and converting that or ... if you can save it in one of the following formats
Quote:
* Rich Text Format documents (RTF)
* MS Word 6.0/95/97/2000/XP/2003 documents (DOC)
* MS Word 2007 documents (DOCX)
* OpenDocument documents (ODT)
* Atlantis Encrypted Documents (COD)
* MS Write documents (WRI)
* Plain text documents (TXT)
then consider downloading the trial version of Atlantis Word Processor and save it straight as an ebook (epub).

Good Luck.
DoctorOhh is offline   Reply With Quote
Old 03-22-2010, 08:59 PM   #5
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,044
Karma: 5936659
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Amalthia View Post
Yes I can add other ebooks to Calibre. I'm not doing anything weird to the code in the file. I converted it to html using WordPerfect's plain HTML option and then removed the unnecessary html tags.

It's as plain as it's going to get. The story is however about 800k words long. I also noticed with other files that get about that length Calibre sometimes takes them and sometimes doesn't.

I can check the HTML again to see if I find any unenclosed tags? I'm not sure what kind of code would produce this error message.
Try Open Office (it is free), I use it to convert Word to HTML

Note. I have had Calibre baulk at odd characters (odd dashes).
theducks is online now   Reply With Quote
Old 03-22-2010, 09:19 PM   #6
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
Quote:
Originally Posted by theducks View Post
Try Open Office (it is free), I use it to convert Word to HTML

Note. I have had Calibre baulk at odd characters (odd dashes).
Corel WordPerfect gives cleaner code than Open Office. I'll have to see if the story has any dashes, that's about the only thing that might make it stand out from other stories. Since I used WordPerfect for the other stories and used the same plain html option...

Thanks
Amalthia is offline   Reply With Quote
Old 03-22-2010, 09:21 PM   #7
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
Quote:
Originally Posted by dwanthny View Post
You've exceeded my minimal knowledge. Hopefully someone will step in to help out.

If you were using Word I would say to save it as Filtered HTML but it sounds like that is what you're doing.

You can try saving it as some other format and converting that or ... if you can save it in one of the following formats
then consider downloading the trial version of Atlantis Word Processor and save it straight as an ebook (epub).

Good Luck.
Well I'm currently kind of happy with Corel WordPerfect (the code it produces is not nearly as messy as Word filtered, html, or Open Office)

The main problem is that I'm still stuck on LRF as my perferred format. Though it's tempting to get Atlantis and output to epub and then import that to Calibre and convert to LRF...

Thanks for trying to help.
Amalthia is offline   Reply With Quote
Old 03-23-2010, 01:26 AM   #8
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: 26,300
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@amalthia. Sometimes HTML has bugs in it that can cause parsing to hang. Can you keep an eye on the memory/cpu usage of your computer when you are importing the html to see if it is indeed one of these problems.

Another was to get more detailed debug output is to run the import from the command line as

calibredb.exe add "C:\path to the\html\file.html"

Or you could just opena ticket and attach the html file in question
kovidgoyal is offline   Reply With Quote
Old 03-23-2010, 04:04 PM   #9
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
Quote:
Originally Posted by kovidgoyal View Post
@amalthia. Sometimes HTML has bugs in it that can cause parsing to hang. Can you keep an eye on the memory/cpu usage of your computer when you are importing the html to see if it is indeed one of these problems.

Another was to get more detailed debug output is to run the import from the command line as

calibredb.exe add "C:\path to the\html\file.html"

Or you could just opena ticket and attach the html file in question
Last night I decided to zip the file before I uploaded it to Calibre and it worked perfectly.

It also converted to LRF without problems. However, I am curious to see why I had to zip the file first in order for Calibre to import it so I'll do as you suggested with the debugging.
Amalthia is offline   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
error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac NewDay ePub 3 10-07-2010 02:47 PM
ERROR: Error: Error communicating with device JWood Calibre 10 04-20-2010 08:28 PM
0.6.14 - error on import JohnDoe Calibre 7 10-01-2009 07:59 AM
Unable to import large db keep getting an error Student1 Calibre 20 02-27-2009 12:02 AM
04.95 crashes with import-error (OS X 10.5.5) embe71 Calibre 0 10-11-2008 10:51 AM


All times are GMT -4. The time now is 08:44 PM.


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