08-11-2009, 01:11 PM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Aug 2009
Device: Kindle 2
|
Where are the command line tools?
I could not find the command line tools, so I tried to upgrade, but that did not help.
1. I downloaded 0.6.6. (On a MAC OS X 10.5.8.) 2. I uncompressed and copied the Application from the DMG into my Applications/Utilities directory. 3. I ran the Calibre application. It shows the list of Books I had imported previously. 4. I open a console and list the contents of my /usr/bin directory, grepping for links related to Calibre: Anton:ImageMagick paulchernoch$ ls -lsa /usr/bin | grep calibre 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 any2epub -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/any2epub 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 any2lit -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/any2lit 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 any2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/any2lrf 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 any2mobi -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/any2mobi 8 lrwxr-xr-x 1 root wheel 70 Jul 8 13:29 calibre -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/calibre 8 lrwxr-xr-x 1 root wheel 79 Jul 8 13:29 calibre-complete -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/calibre-complete 8 lrwxr-xr-x 1 root wheel 80 Jul 8 13:29 calibre-customize -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/calibre-customize 8 lrwxr-xr-x 1 root wheel 76 Jul 8 13:29 calibre-debug -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/calibre-debug 8 lrwxr-xr-x 1 root wheel 81 Jun 29 23:31 calibre-fontconfig -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/calibre-fontconfig 8 lrwxr-xr-x 1 root wheel 79 Jul 8 13:29 calibre-parallel -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/calibre-parallel 8 lrwxr-xr-x 1 root wheel 77 Jul 8 13:29 calibre-server -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/calibre-server 8 lrwxr-xr-x 1 root wheel 75 Jul 8 13:29 calibre-smtp -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/calibre-smtp 8 lrwxr-xr-x 1 root wheel 72 Jul 8 13:29 calibredb -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/calibredb 8 lrwxr-xr-x 1 root wheel 73 Jun 29 23:31 comic2epub -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/comic2epub 8 lrwxr-xr-x 1 root wheel 72 Jun 29 23:31 comic2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/comic2lrf 8 lrwxr-xr-x 1 root wheel 73 Jun 29 23:31 comic2mobi -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/comic2mobi 8 lrwxr-xr-x 1 root wheel 72 Jun 29 23:31 comic2pdf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/comic2pdf 8 lrwxr-xr-x 1 root wheel 76 Jul 8 13:29 ebook-convert -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/ebook-convert 8 lrwxr-xr-x 1 root wheel 75 Jul 8 13:29 ebook-device -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/ebook-device 8 lrwxr-xr-x 1 root wheel 73 Jul 8 13:29 ebook-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/ebook-meta 8 lrwxr-xr-x 1 root wheel 75 Jul 8 13:29 ebook-viewer -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/ebook-viewer 8 lrwxr-xr-x 1 root wheel 72 Jun 29 23:31 epub-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/epub-meta 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 epub2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/epub2lrf 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 fb2-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/fb2-meta 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 fb22lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/fb22lrf 8 lrwxr-xr-x 1 root wheel 73 Jun 29 23:31 feeds2disk -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/feeds2disk 8 lrwxr-xr-x 1 root wheel 73 Jun 29 23:31 feeds2epub -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/feeds2epub 8 lrwxr-xr-x 1 root wheel 72 Jun 29 23:31 feeds2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/feeds2lrf 8 lrwxr-xr-x 1 root wheel 73 Jun 29 23:31 feeds2mobi -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/feeds2mobi 8 lrwxr-xr-x 1 root wheel 83 Jul 8 13:29 fetch-ebook-metadata -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/fetch-ebook-metadata 8 lrwxr-xr-x 1 root wheel 72 Jun 29 23:31 html2epub -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/html2epub 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 html2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/html2lrf 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 html2oeb -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/html2oeb 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 imp-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/imp-meta 8 lrwxr-xr-x 1 root wheel 75 Jul 8 13:29 librarything -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/librarything 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 lit-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/lit-meta 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 lit2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/lit2lrf 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 lit2oeb -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/lit2oeb 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 lrf-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/lrf-meta 8 lrwxr-xr-x 1 root wheel 70 Jul 8 13:29 lrf2lrs -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/lrf2lrs 8 lrwxr-xr-x 1 root wheel 72 Jul 8 13:29 lrfviewer -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/lrfviewer 8 lrwxr-xr-x 1 root wheel 70 Jul 8 13:29 lrs2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/lrs2lrf 8 lrwxr-xr-x 1 root wheel 79 Jul 8 13:29 markdown-calibre -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/markdown-calibre 8 lrwxr-xr-x 1 root wheel 72 Jun 29 23:31 mobi-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/mobi-meta 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 mobi2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/mobi2lrf 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 mobi2oeb -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/mobi2oeb 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 odt-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/odt-meta 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 odt2oeb -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/odt2oeb 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 oeb2lit -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/oeb2lit 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 oeb2mobi -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/oeb2mobi 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 opf-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/opf-meta 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 pdf-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/pdf-meta 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 pdf2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/pdf2lrf 8 lrwxr-xr-x 1 root wheel 76 Jul 8 13:29 pdfmanipulate -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/pdfmanipulate 8 lrwxr-xr-x 1 root wheel 72 Jun 29 23:31 pdfreflow -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/pdfreflow 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 pdftrim -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/pdftrim 8 lrwxr-xr-x 1 root wheel 69 Jun 29 23:31 prs500 -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/prs500 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 rb-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/rb-meta 8 lrwxr-xr-x 1 root wheel 71 Jun 29 23:31 rtf-meta -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/rtf-meta 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 rtf2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/rtf2lrf 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 txt2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/txt2lrf 8 lrwxr-xr-x 1 root wheel 71 Jul 8 13:29 web2disk -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/web2disk 8 lrwxr-xr-x 1 root wheel 70 Jun 29 23:31 web2lrf -> /Applications/Utilities/calibre.app/Contents/Resources/loaders/web2lrf 5. NEXT: I do a listing of the place where all those symlinks point: Anton:ImageMagick paulchernoch$ ls -1 /Applications/Utilities/calibre.app/Contents/Resources/loaders/ calibre calibre-complete calibre-customize calibre-debug calibre-parallel calibre-server calibre-smtp calibredb ebook-convert ebook-device ebook-meta ebook-viewer fetch-ebook-metadata librarything lrf2lrs lrfviewer lrs2lrf markdown-calibre pdfmanipulate web2disk NOTICE: There are many fewer entries in this directory than there are links in /usr/bin. Where are the missing programs, like html2lrf and html2epub? What list of files should I see there? Are some of the links left over from previous versions of Calibre and obsolete? - Paul Last edited by PaulChernoch; 08-11-2009 at 01:14 PM. |
08-11-2009, 01:25 PM | #2 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
All the *2* tools have been replaced by a single tool, ebook-convert
|
Advert | |
|
08-11-2009, 01:28 PM | #3 |
Junior Member
Posts: 7
Karma: 10
Join Date: Aug 2009
Device: Kindle 2
|
Ahhh! That explains it. Thanks for the quick response.
- Paul |
09-22-2009, 01:35 PM | #4 |
Member
Posts: 13
Karma: 10
Join Date: Sep 2009
Device: Sony PRS-600
|
Hi,
Where can I get the any2epub utility. I'm a windows user. Thanks |
09-22-2009, 01:39 PM | #5 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Shoily ...
Look 2 posts above yours at Kovid's most recent post in this thread for your answer ... |
Advert | |
|
09-22-2009, 03:31 PM | #6 |
Member
Posts: 13
Karma: 10
Join Date: Sep 2009
Device: Sony PRS-600
|
Thanks for your reply. Calibre is installed in the C:\Program Files\calibre folder. I did not find the any2epub.exe there? Where should I look it for?
|
09-22-2009, 03:42 PM | #7 |
Wizzard
Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
|
As kovid said, all the '*2*' utilities have been replaced by the 'ebook-convert' utility.
|
09-22-2009, 03:47 PM | #8 | |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
To quote Kovid from 3 posts above:
Quote:
|
|
09-22-2009, 03:55 PM | #9 |
Member
Posts: 13
Karma: 10
Join Date: Sep 2009
Device: Sony PRS-600
|
I have just bought my PRS-600 yesterday. These utilities are new to me. could not catch Kovid's wording.
I'm trying to convert a chm file to epub using ebook-convert. But there's an error - ValueError: No plugin to handle input format: chm |
09-22-2009, 05:00 PM | #10 |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That's because Calibre does not handle chm as an input type.
|
09-23-2009, 10:10 AM | #11 |
Member
Posts: 13
Karma: 10
Join Date: Sep 2009
Device: Sony PRS-600
|
I've converted the chm file to PRC using mobipocket reader's import menu. Then I tried that PRC to epub. Its stuck since last night.
C:\Program Files\calibre>ebook-convert.exe "d:\data\My eBooks\LinuxKernel.prc" Test.epub 1% Converting input to HTML... InputFormatPlugin: MOBI Input running on d:\data\My eBooks\LinuxKernel.prc Malformed markup, parsing using BeautifulSoup |
09-24-2009, 10:10 AM | #12 |
Member
Posts: 13
Karma: 10
Join Date: Sep 2009
Device: Sony PRS-600
|
I'm trying to convert a 777 pages of HTML to lrf. I'm getting the following error -
C:\Program Files\calibre>ebook-convert.exe Test5.html Test5.lrf 1% Converting input to HTML... InputFormatPlugin: HTML Input running on C:\Program Files\calibre\Test5.html Language not specified Creator not specified Building file list... Parsing file u'Test5.html' as HTML File u'Test5.html' missing <body/> element Parsing file u'test5_ind.html' as HTML Parsing file u'test5s.html' as HTML 34% Running transforms on ebook... Merging user specified metadata... Detecting structure... Auto generated TOC with 0 entries. Flattening CSS and remapping font sizes... Traceback (most recent call last): File "cli.py", line 256, in <module> File "cli.py", line 249, in main File "calibre\ebooks\conversion\plumber.pyo", line 792, in run File "calibre\ebooks\oeb\transforms\flatcss.pyo", line 123, in __call__ File "calibre\ebooks\oeb\transforms\flatcss.pyo", line 167, in baseline_spine ValueError: max() arg is an empty sequence |
09-28-2009, 06:59 PM | #13 |
Enthusiast
Posts: 30
Karma: 16
Join Date: Sep 2009
Device: sony prs-505/600
|
What is the command line to convert a recipe feed result to epub?
I've tried (and it's not working): "C:\Program Files\Calibre\ebook-convert" "C:\Download\Calibre_hold\custom\ChicagoTribune.py " "C:\Download\Calibre_hold\custom\done\ChicagoTribu ne.epub" Thanks -Mike |
10-21-2009, 12:55 AM | #14 |
Member
Posts: 24
Karma: 10
Join Date: May 2007
Device: PRS-505
|
This doesn't appear to have been documented since the changeover, but I just tried adding ".recipe" to the name of the recipe and it appears to work:
"C:\Program Files\calibre\ebook-convert" "Chicago Tribune".recipe "C:\Chicago Tribune.epub" |
10-22-2009, 04:17 PM | #15 |
Addict
Posts: 357
Karma: 1112
Join Date: Oct 2008
Location: Euroland
Device: PocketBook 360°, BeBook (Hanlin V3), iRex DR1000S, iPad
|
OK, I guess I'm just an idiot, but I can no longer get the command line utils to work correctly either.
I'm running on OS X 10.5.8 (latest Leopard). I haven't used Calibre for a while, but last time I needed command line tools I ran mobi2oeb and got pretty nice html outputs. Now with Calibre 0.6.19 my system no longer recognises that command (used to just type in Terminal "mobi2o" then Tab and the command would auto-complete). This thread seems to indicate I can now use ebook-convert. But when I type the command ebook then hit Tab I get "ebook-viewer" only. No ebook-convert command is recognised, even when typed completely. I have checked my /usr/bin and the Calibre links are there (including still the ones like mobi2oeb - maybe that is part of the problem?). But no ebook-convert link is there. Any other Mac user encountered this? Cheers! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why use the command line? | slantybard | Calibre | 6 | 07-22-2009 12:17 PM |
command-line conversion tools in 0.6.0? | WayneD | Calibre | 3 | 06-03-2009 01:30 PM |
Going completely command-line? | ewiplayer | Calibre | 2 | 11-24-2008 05:15 AM |
Errors on Command Line | drnkusv | Calibre | 11 | 11-07-2008 02:59 PM |