xnohat / wordwisecreator

Generate Kindle Wordwise for All type of Ebook (EPUB, MOBI, PRC, AZW3, PDF...)
GNU General Public License v3.0
49 stars 12 forks source link

erorr in acsess ebook-convert #6

Open Monirzadeh opened 2 years ago

Monirzadeh commented 2 years ago

i try to test this project but get below error

Please check did you installed Calibre ? Can you run command ebook-convert in shell ? I cannot
access command ebook-convert in your system shell, This script need Calibre to process ebook texts

i can access to ebook-convert and work fine in terminal somehow it is not acsses that do i need specific config to work correctly

Monirzadeh commented 2 years ago

i test more and find this https://github.com/xnohat/wordwisecreator/blob/b0f2f0e0d66abe747f04b1b9505f7aee321a3764/wordwisecreator.php#L58-L59 it is wrong for linux so if you change that to bellow code it is work fine (wrong error too for this reason)

shell_exec('ebook-convert "'.$bookfile.'" ./book_dump.htmlz');
shell_exec('ebook-convert ./book_dump.htmlz ./book_dump_html');

it is repeat here too so not book create (without any error) https://github.com/xnohat/wordwisecreator/blob/b0f2f0e0d66abe747f04b1b9505f7aee321a3764/wordwisecreator.php#L122-L124