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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-12-2011, 01:10 AM   #1
Tegan
Connoisseur
Tegan began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
Simple Recipe Breaks in Latest Version

I've been trying to help someone with a simple Blog recipe. It didn't work for her, but I was having no problem running it. I finally figured out that I was running 0.7.43 while she was running the latest version, 0.7.45. So I upgraded, and now the recipe doesn't work. Any idea why not?

Code:
class AdvancedUserRecipe1297484821(BasicNewsRecipe):
  title = u'Book Blogs'
  oldest_article = 30
  max_articles_per_feed = 100
  use_embedded_content = True

  feeds = [(u'Book Goggle', u'http://mybookgoggles.blogspot.com/feeds/posts/default'), (u'Book Chick City', u'http://www.bookchickcity.com/feeds/posts/default')]
Tegan is offline   Reply With Quote
Old 02-12-2011, 02:15 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,779
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What error do you get?
kovidgoyal is online now   Reply With Quote
Advert
Old 02-12-2011, 12:14 PM   #3
Tegan
Connoisseur
Tegan began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
Quote:
Originally Posted by kovidgoyal View Post
What error do you get?
Sorry, I should have given details.

In the older version, the recipe works great, produces the expected articles, yay, etc.

In the newer version, the recipe runs and generates a book that has this for the contents:
Failed feed: Book Goggles
TypeError('expected string or buffer',)
Table of Contents
Failed feed: Book Chick City
Failed feed: Book Goggles

After I upgraded and discovered that I got the same error, I rolled back my version to 0.7.43 and ran the recipe again. And again it worked fine. So my theory is that something changed between the versions.

I haven't yet tried 0.7.44, as I had to get some sleep.
Tegan is offline   Reply With Quote
Old 02-12-2011, 12:15 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,779
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yeah, I uploaded a fixed build, just re-install 0.7.45 and you should be fine.
kovidgoyal is online now   Reply With Quote
Old 02-12-2011, 12:44 PM   #5
Tegan
Connoisseur
Tegan began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
Quote:
Originally Posted by kovidgoyal View Post
Yeah, I uploaded a fixed build, just re-install 0.7.45 and you should be fine.
You fixed it already?!?? Holy crap, you are incredible. *ahem*

Thanks Kovid.
Tegan is offline   Reply With Quote
Advert
Old 02-14-2011, 05:10 AM   #6
hiperlink
Enthusiast
hiperlink began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
Quote:
Originally Posted by kovidgoyal View Post
Yeah, I uploaded a fixed build, just re-install 0.7.45 and you should be fine.
Dear Kovid,
is reinstalling applies to the linux (Archlinux) version as well?
I'm on 0.7.45 already, and getting the same error:


Spoiler:
Code:
Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 19, in <module>
    sys.exit(main())
  File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 279, in main
    plumber.run()
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 904, in run
    accelerators, tdir)
  File "/usr/lib/calibre/calibre/customize/conversion.py", line 204, in __call__
    log, accelerators)
  File "/usr/lib/calibre/calibre/web/feeds/input.py", line 105, in convert
    ro.download()
  File "/usr/lib/calibre/calibre/web/feeds/news.py", line 734, in download
    res = self.build_index()
  File "/usr/lib/calibre/calibre/web/feeds/news.py", line 873, in build_index
    log=self.log)
  File "/usr/lib/calibre/calibre/web/feeds/__init__.py", line 337, in feeds_from_index
    max_articles_per_feed=max_articles_per_feed)
  File "/usr/lib/calibre/calibre/web/feeds/__init__.py", line 164, in populate_from_preparsed_feed
    article = Article(id, title, link, author, description, published, content)
  File "/usr/lib/calibre/calibre/web/feeds/__init__.py", line 47, in __init__
    self.text_summary = clean_ascii_chars(summary)
  File "/usr/lib/calibre/calibre/utils/cleantext.py", line 24, in clean_ascii_chars
    return pat.sub('', txt)
TypeError: expected string or buffer


Thanks in advence!
hiperlink is offline   Reply With Quote
Old 02-14-2011, 10:48 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,779
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you are installing the official calibre binary yes. If you are installing the distro package, no.
kovidgoyal 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
Recipe for latest posts in mobileread forum oecherprinte Recipes 1 11-07-2010 09:49 PM
Latest Version of Calibre and Stanza Problem MerLock Calibre 9 07-27-2010 04:36 AM
is there virus in the latest version ichthyosaur Calibre 1 01-19-2010 03:58 PM
latest version for Ubuntu Lago Calibre 7 01-15-2010 01:54 PM
Guardian Recipe messed up in latest version?? pars_andy Calibre 6 11-14-2009 03:50 PM


All times are GMT -4. The time now is 10:47 PM.


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