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

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 01-25-2016, 05:49 PM   #1
20Gt
Member
20Gt began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2013
Device: Android
ERROR: Unhandled exception: (MemoryError)

Calibre usually works just fine.

I'm trying to help my Uncle turn his books into ebooks and I get this error when I try to import this large html file
The file I'm importing is very large (178mb)

Quote:
calibre, version 2.15.0
ERROR: Unhandled exception: <b>MemoryError</b>:

calibre 2.15 isfrozen: True is64bit: False
Windows-8-6.2.9200 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '8', '6.2.9200')
Python 2.7.8
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: Databazeknih
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\boss.py", line 1244, in edit_file_requested
File "site-packages\calibre\gui2\tweak_book\boss.py", line 1214, in edit_file
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 504, in raw_data
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 439, in decode
File "encodings\utf_8.py", line 16, in decode
MemoryError

Last edited by 20Gt; 01-25-2016 at 06:38 PM.
20Gt is offline   Reply With Quote
Advert
Old 01-25-2016, 06:52 PM   #2
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 10,011
Karma: 9778218
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@20Gt - looks like you ran out of memory, see that last line

What OS are you using?

If Windows then:
is it 32bit or 64 bit Windows,
if 64 bit are you using 64 bit calibre, if not try it

What is the source of the 178mb of HTML? I'm guessing that your uncle didn't hand craft it in a text editor

BR
BetterRed is offline   Reply With Quote
Old 01-25-2016, 06:54 PM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,238
Karma: 83049305
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
A 178 MB file is pretty large... for an HTML file, which is plain text!

Try splitting up the file into multiple logical chunks (by chapter?) and importing them separately.
Alternatively, where did you get that file from? If it was a Word export-as-filtered-html, don't do that -- the Editor can directly import DOCX.

The Editor's DOCX conversion is far better than the trash MS Word calls filtered HTML.

...

Another thing, you are using a 32-bit calibre on 64-bit Windows. Do yourself a favor and uninstall calibre, then install the 64-bit version.
(None of your settings will be lost.)

64-bit calibre can access more RAM than 32-bit calibre -- which is good when you are dealing with an Out Of Memory error!
eschwartz is offline   Reply With Quote
Old 01-25-2016, 06:56 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,238
Karma: 83049305
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by BetterRed View Post
@20Gt - looks like you ran out of memory, see that last line

What OS are you using?

If Windows then:
is it 32bit or 64 bit Windows,
if 64 bit are you using 64 bit calibre, if not try it
Ahhh, you ninjaed me while I was drafting a response myself.

See the lines in the error output that say:
Code:
calibre 2.15 isfrozen: True is64bit: False
Windows-8-6.2.9200 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '8', '6.2.9200')
eschwartz is offline   Reply With Quote
Old 01-25-2016, 07:16 PM   #5
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 10,011
Karma: 9778218
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by eschwartz View Post
Ahhh, you ninjaed me while I was drafting a response myself.

See the lines in the error output that says:
Code:
calibre 2.15 isfrozen: True is64bit: False
Windows-8-6.2.9200 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '8', '6.2.9200')
- that all went straight past me - watching a video editor doing its thing

BR
BetterRed 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
Unhandled Exception Error KyBunnies Calibre 21 03-28-2015 03:20 AM
ERROR: Unhandled exception KyBunnies Devices 8 12-22-2014 03:17 PM
error: Unhandled exception library addict Calibre 4 08-28-2013 06:41 AM
Unhandled Exception Error Mi3ke Calibre 0 06-03-2012 09:43 PM
ERROR: Unhandled exception: <b>TypeError</b> mdurham Calibre 3 08-27-2010 11:31 PM


All times are GMT -4. The time now is 01:31 AM.


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