![]() |
#1 |
Member
![]() 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 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 Last edited by Thisiswhatiam; 06-16-2012 at 11:28 PM. Reason: Improved clarity |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() 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 |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 11
Karma: 10
Join Date: May 2012
Device: Kindle
|
From the perl script my variables are :
/bin:/usr/bin:/usr/local/bin |
![]() |
![]() |
![]() |
#5 |
Member
![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Environment variables are not limited to PATH. Run
env |
![]() |
![]() |
![]() |
#7 |
Member
![]() 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 |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |