Hi,
I'm trying to run a script that I've created to add some metadata to ebook files using calibre's command line tools. The script is working fine on my test machine, however when I put it live on my host it does not work.
Here's the command I want to run:
Code:
/path/to/calibre/ebook-meta /path/to/ebook/file.mobi --tags "test"
Here's my PHP:
PHP Code:
$command = '/path/to/calibre/ebook-meta /path/to/ebook/file.mobi --tags "test"';
exec( $command . ' 2>&1', $output, $return_val);
The $output is as follows:
Code:
Traceback (most recent call last):
File "site.py", line 59, in main
File "site-packages/calibre/ebooks/metadata/cli.py", line 12, in
File "site-packages/calibre/customize/ui.py", line 15, in
File "site-packages/calibre/customize/builtins.py", line 654, 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
The $return_val is 1 (not incredibly useful).
Any idea what's causing this? Or, alternatively, has it been fixed since calibre-1.48.0-x86_64? I must use the older version since my host is on an older centos.