View Single Post
Old 09-22-2011, 07:25 PM   #1
aruangra
Connoisseur
aruangra has learned how to read e-booksaruangra has learned how to read e-booksaruangra has learned how to read e-booksaruangra has learned how to read e-booksaruangra has learned how to read e-booksaruangra has learned how to read e-booksaruangra has learned how to read e-books
 
Posts: 83
Karma: 888
Join Date: May 2010
Device: Nook Touch, iPad1, iPad2, iPod Touch 4G, Pixel Qi
Error when running Calibre on Nook Touch

Hello,

I setup the Debian 6.0.0 chroot environment for ARMEL in my Nook Touch. I can use debian packages (for example openssh, lighttpd webserver) successfully. I want to use Calibre to automatically fetch news to the device. So I installed "calibre 0.7.7" using "apt-get install calibre" . It installed a lot of dependencies (400 MB in total).

When I use the command:

Code:
ebook-convert nasa.recipe nasa.epub
It started fetching news until the progress at 34% and I got the following errors:

Code:
32% Article downloaded: u'NASA Accepting Applications For Aeronautics Scholarships'
33% Article downloaded: u'NASA Earth-Observing Satellite Arrives In California For Launch'
34% Article downloaded: u'NASA Administrator To Kick Off Aviation Forum'
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 254, in main
    plumber.run()
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 815, in run
    accelerators, tdir)
  File "/usr/lib/calibre/calibre/customize/conversion.py", line 211, in __call__
    log, accelerators)
  File "/usr/lib/calibre/calibre/web/feeds/input.py", line 104, in convert
    ro.download()
  File "/usr/lib/calibre/calibre/web/feeds/news.py", line 705, in download
    res = self.build_index()
  File "/usr/lib/calibre/calibre/web/feeds/news.py", line 937, in build_index
    self.create_opf(feeds)
  File "/usr/lib/calibre/calibre/web/feeds/news.py", line 1243, in create_opf
    opf.render(opf_file, ncx_file)
  File "/usr/lib/python2.6/contextlib.py", line 34, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/lib/python2.6/contextlib.py", line 113, in nested
    yield vars
  File "/usr/lib/calibre/calibre/web/feeds/news.py", line 1243, in create_opf
    opf.render(opf_file, ncx_file)
  File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 1074, in render
    lang = get_lang().replace('_', '-')
AttributeError: 'NoneType' object has no attribute 'replace'
root@localhost:/usr/share/calibre/recipes#
Please suggest me how to solve this problem. Thank you.

aruangra

Last edited by aruangra; 09-22-2011 at 10:28 PM.
aruangra is offline   Reply With Quote