View Full Version : Problems with downloading newsfeeds in Calibre


Tom Swift
06-04-2008, 02:40 AM
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)

kovidgoyal
06-04-2008, 03:16 AM
try

feeds2lrf Newsweek


at a terminal

Tom Swift
06-04-2008, 04:28 AM
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?

Tom Swift
06-04-2008, 04:32 AM
Never mind. Found the lrf file. But can I change something in calibre to get it to work?

kovidgoyal
06-04-2008, 01:26 PM
Tell me what line 1056 is in /Applications/Applications/calibre.app/Contents/Resources/main.py

Tom Swift
06-04-2008, 09:21 PM
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?

kovidgoyal
06-04-2008, 11:25 PM
open it in vim (at a terminal type vim filename)

then type

:1056

kovidgoyal
06-04-2008, 11:28 PM
or even easier (at a terminal type)


head -n 1046 filename | tail -n1

Tom Swift
06-04-2008, 11:44 PM
msg += formatted_traceback + '</pre>'

kovidgoyal
06-05-2008, 12:03 AM
Try the next release, hopefully it will give a more meaningful error message