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 06-16-2012, 11:26 PM   #1
Thisiswhatiam
Member
Thisiswhatiam began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2012
Device: Kindle
Calibre throwing a Memory Exception

Hi guys,

When i run the
Code:
ebook-convert some.html some.mobi
I get the following exception. It is to be noted that i am calling this using backticks from my perl application.
ebook-convert --help works fine. But when i try to convert it throws the following error.
Code:
  Traceback (most recent call last):
  File "site.py", line 58, in main
  File "site-packages/calibre/ebooks/conversion/cli.py", line 307, in main
  File "site-packages/calibre/ebooks/conversion/cli.py", line 260, in create_option_parser
  File "site-packages/calibre/ebooks/conversion/plumber.py", line 10, in 
  File "site-packages/calibre/customize/ui.py", line 15, in 
  File "site-packages/calibre/customize/builtins.py", line 639, in 
  File "site-packages/calibre/devices/apple/driver.py", line 8, in 
  File "ctypes/__init__.py", line 555, in 
  File "ctypes/__init__.py", line 279, in _reset_cache
MemoryError
This is weird as i dont know what exacltly is causing the problem. Could someone please help me out.

Last edited by Thisiswhatiam; 06-16-2012 at 11:28 PM. Reason: Improved clarity
Thisiswhatiam is offline   Reply With Quote
Old 06-16-2012, 11:49 PM   #2
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,352
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's an error that occurs in importing a python stdlib module. You've got something screwy in the environment when launching from perl. Make sure the env vars are all the same as when you are launching from a shell.
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Old 06-17-2012, 12:19 AM   #3
Thisiswhatiam
Member
Thisiswhatiam began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2012
Device: Kindle
I hate to sound stupid but how exactly would i go about comparing the two environment variable as i am running this on a bluehost server?

An echo $PATH from the ssh turned up the following

/usr/local/jdk/bin:/home3/username/perl5/bin:/usr/lib64/qt-3.3/bin:/home3/username/perl5/bin:/ramdisk/php/53/bin:/usr/php/53/usr/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin:/home3/username/bin

Thanks for the quick reply!

Last edited by Thisiswhatiam; 06-17-2012 at 12:24 AM. Reason: clarity
Thisiswhatiam is offline   Reply With Quote
Old 06-17-2012, 12:38 AM   #4
Thisiswhatiam
Member
Thisiswhatiam began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2012
Device: Kindle
From the perl script my variables are :

/bin:/usr/bin:/usr/local/bin
Thisiswhatiam is offline   Reply With Quote
Old 06-17-2012, 02:11 AM   #5
Thisiswhatiam
Member
Thisiswhatiam began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2012
Device: Kindle
Okay. I have the same set of paths in both but still the errors persist.
Thisiswhatiam is offline   Reply With Quote
Old 06-17-2012, 02:14 AM   #6
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,352
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Environment variables are not limited to PATH. Run

env
kovidgoyal is offline   Reply With Quote
Old 06-17-2012, 02:44 AM   #7
Thisiswhatiam
Member
Thisiswhatiam began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2012
Device: Kindle
The env i printed in perl has a http header while that in my ssh does not. Also i cannot compare the two as there are many titles (MODULEBUILDRC and others) which dont even appear when i run the perl cgi env. Also i noted that in my error log there was a line saying:
Code:
(13)Permission denied: access to /bmz_cache/5/somenumber.image.200x150.jpg denied
Could this be an issue which is causing the Memory Error.
Thisiswhatiam 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
Database Exception Error Calibre markyfr Calibre 0 04-16-2012 07:39 AM
Just Throwing It Out There.... Shopaholic Sony Reader 37 06-27-2011 01:01 PM
Mildly annoying calibre unhandled exception chaley Calibre 2 01-21-2010 04:00 PM
Unhandled exception in calibre.exe (python26.dll) jusmee Calibre 0 12-14-2009 12:53 AM
ERROR: Unhandled exception when opening Calibre-0.4.80 megacoupe Calibre 1 08-05-2008 06:23 PM


All times are GMT -4. The time now is 01:55 PM.


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