View Single Post
Old 05-24-2011, 03:34 AM   #1
blobbo
Junior Member
blobbo began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2011
Device: Kindle
Bulk Command Line Conversion?

(This is not a question about PDF.)

I used to use this Bash script / command line to use Calibre command line tools to convert in bulk a bunch of files to mobi format.

for f in *.epub
do
any2mobi --dest-profile=Kindle "$files"
done


But this does not work when I substitute the old calibre command (any2mobi) for the new command ebook-convert.

I get a bunch of python errors -

Python function terminated unexpectedly: Input file must have an extension
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 147, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 116, in run_entry_point
return getattr(pmod, func)()
File "site-packages/calibre/ebooks/conversion/cli.py", line 271, in main
File "site-packages/calibre/ebooks/conversion/cli.py", line 258, in create_option_parser
File "site-packages/calibre/ebooks/conversion/plumber.py", line 594, in __init__
ValueError: Input file must have an extension


I'd be very grateful if someone could help me fix my problem, thank you.
blobbo is offline   Reply With Quote