Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
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
Old 05-24-2011, 05:32 AM   #2
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 1,114
Karma: 1510908
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Aura HD
Quote:
Originally Posted by blobbo View Post
(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.
You're aware that the command line syntax of any2mobi and ebook-convert is different, are you?

http://calibre-ebook.com/user_manual...k-convert.html
mbovenka is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line - HOW? bookfanmd Calibre 19 01-12-2013 09:17 AM
command-line only e-book conversion running Conversion 1 01-30-2011 08:09 AM
--language variable in command line conversion marekl Calibre 1 01-21-2011 08:11 AM
Command line conversion not working rockeh Calibre 1 08-24-2010 06:23 PM
command-line conversion tools in 0.6.0? WayneD Calibre 3 06-03-2009 01:30 PM


All times are GMT -4. The time now is 08:58 AM.


MobileRead.com is a privately owned, operated and funded community.