![]() |
#1 |
Member
![]() Posts: 21
Karma: 10
Join Date: Nov 2008
Device: iPhone
|
Errors on Command Line
I am sure I am doing something wrong, but I am having an odd problem:
Everything works fine for me from the GUI, but when I try to run feeds2epub from the command line, it starts up properly and grabs the feeds, but then it runs into a lot of errors as it goes along saying that it was not able to download specific articles. (I have tried this with WSJ and NY Times). I end up with an epub that has maybe 40% of the content that is generated when I run the same recipe with the GUI. Anyone have any idea what the problem is? This is the command I am running: /Applications/calibre.app/Contents/Resources/loaders/feeds2epub -u username -p password "The Wall Street Journal" (obviously I replace username and password with my actual username and password) As it runs, I get a whole bunch of error messages that look like this: WARNING: Could not fetch link http://online.wsj.com/article/SB122598031749104947.html ERROR: Failed to download article: Red Ink at Blackstone Gets Deeper from http://online.wsj.com/article/SB122598031749104947.html |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,209
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You should run the commands as /usr/bin/feeds2epub
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 21
Karma: 10
Join Date: Nov 2008
Device: iPhone
|
Thanks -- but exactly the same result (same error messages).
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,209
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Run it with --debug to see why the errors are happening
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 21
Karma: 10
Join Date: Nov 2008
Device: iPhone
|
Ran it with --debug. It is generating some explanatory information, but nothing that I can figure out. Output is attached, in case you have time to take a quick look.
Thanks. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,209
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Those are some very strange errors, it's almost like the connection to the remote host is being closed between the calls to open and read
I'll add a partial workaround that should make it more robust. |
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 21
Karma: 10
Join Date: Nov 2008
Device: iPhone
|
Thanks. The really strange part (at least to me) is that it works ok with the GUI and only causes these problems at the command line.
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,209
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's a multi-threading issue, those are never predictable
![]() |
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 21
Karma: 10
Join Date: Nov 2008
Device: iPhone
|
Works great under 103. Thanks!
|
![]() |
![]() |
![]() |
#10 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
This might be related. Running calibredb from the command line with 103:
Quote:
Cheers, Crazy |
|
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,209
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That exception can be ignored (it happens during interpreter shutdown)
|
![]() |
![]() |
![]() |
#12 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Where are the command line tools? | PaulChernoch | Calibre | 17 | 10-23-2009 12:08 PM |
Adding books from the command line | edembowski | Calibre | 1 | 08-29-2009 11:18 AM |
Why use the command line? | slantybard | Calibre | 6 | 07-22-2009 12:17 PM |
Going completely command-line? | ewiplayer | Calibre | 2 | 11-24-2008 05:15 AM |