![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 252
Karma: 1232346
Join Date: Jul 2006
Location: Macau
Device: Kindle Oasis (plus lots of older devices)
|
Problems with downloading newsfeeds in Calibre
I have always had a problem downloading newsfeeds from Calibre and the previous incarnation. I installed the newest version and tried to download the Wired newsfeed. As usual, I get an error message and I have to force quit the program (I am on a Mac). I am wondering if this is because I am in China and the government blocks RSS feeds? Anyway, here is the error message.
'ascii' codec can't decode byte 0xe8 in position 568: ordinal not in range(128) Detailed traceback: Traceback (most recent call last): File "/Applications/Applications/calibre.app/Contents/Resources/main.py", line 707, in news_fetched File "/Applications/Applications/calibre.app/Contents/Resources/main.py", line 1056, in conversion_job_exception UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 568: ordinal not in range(128) |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,341
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
try
Code:
feeds2lrf Newsweek |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 252
Karma: 1232346
Join Date: Jul 2006
Location: Macau
Device: Kindle Oasis (plus lots of older devices)
|
It seemed to work. I got a lot of error messages saying it could not download some stuff and then this
Could not read stylesheet: http://ndn.newsweek.com/site/css/structure.css Could not read stylesheet: http://ndn.newsweek.com/site/css/components.css Could not read stylesheet: http://ndn.newsweek.com/site/css/widgets.css Processing index.html which I assume had something to do with the undownloaded material. The rest seemed to work. So what do i do now? Can I use calibre to install it to the reader? Is there a setting that I can set to get it to work in the program? |
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 252
Karma: 1232346
Join Date: Jul 2006
Location: Macau
Device: Kindle Oasis (plus lots of older devices)
|
Never mind. Found the lrf file. But can I change something in calibre to get it to work?
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,341
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Tell me what line 1056 is in /Applications/Applications/calibre.app/Contents/Resources/main.py
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 252
Karma: 1232346
Join Date: Jul 2006
Location: Macau
Device: Kindle Oasis (plus lots of older devices)
|
The file is very long. Is there a way I can jump to line 1065? I am still kind of new at Macs. If I count, I am sure to make a mistake. Can I search for something?
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,341
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
open it in vim (at a terminal type vim filename)
then type Code:
:1056 |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,341
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
or even easier (at a terminal type)
Code:
head -n 1046 filename | tail -n1 |
![]() |
![]() |
![]() |
#9 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 252
Karma: 1232346
Join Date: Jul 2006
Location: Macau
Device: Kindle Oasis (plus lots of older devices)
|
msg += formatted_traceback + '</pre>'
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,341
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Try the next release, hopefully it will give a more meaningful error message
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems downloading news | Sridhar | Calibre | 3 | 08-29-2010 02:49 PM |
Adding Newsfeeds to Calibre | p3aul | Calibre | 11 | 08-20-2010 11:48 AM |
Remove navbar in newsfeeds for Kindle/mobi [calibre] | TWiTCommander | Calibre | 13 | 07-28-2010 03:09 PM |
035k and Calibre newsfeeds | jerrywojo | Ectaco jetBook | 2 | 07-25-2010 03:18 AM |
Problems downloading from manybooks | BookCat | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 12-19-2008 07:37 AM |