![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Oct 2016
Device: none
|
command line tools are not working with php's exec() function
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" PHP Code:
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 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. |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Oct 2016
Device: none
|
Bump, any ideas on this or any idea where I could look for more information? Been trying to fix this for about a full work day now without any luck yet.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,337
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That appears to be an error importing the ctypes standard python module. Most likely an issue with libffi incompatibility -- but given that 1.48 is so old you're not going to get any help with it.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
docx to epub conversion working from command-line but not from PHP | velsankar | ePub | 2 | 11-20-2016 01:06 AM |
Command Line Tools in 2.0 | ssholloway | Calibre | 2 | 08-24-2014 04:20 PM |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 09:57 AM |
Where are the command line tools? | PaulChernoch | Calibre | 17 | 10-23-2009 12:08 PM |
command-line conversion tools in 0.6.0? | WayneD | Calibre | 3 | 06-03-2009 01:30 PM |