Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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
Old 09-22-2011, 08:18 PM   #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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Set the LANG environment variable correctly.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-22-2011, 09:18 PM   #3
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
Quote:
Originally Posted by kovidgoyal View Post
Set the LANG environment variable correctly.
Thank you very much. I set the LANG environment variable using the command:

Code:
export LANG=en_US.UTF-8
Then I could get the epub file. calibredb also works

The last step is to run the content server. But I got this error:

Code:
root@localhost:/usr/share/calibre# calibre-server --with-library /usr/share/calibre/serve/
Traceback (most recent call last):
  File "/usr/bin/calibre-server", line 18, in <module>
    from calibre.library.server.main import main
  File "/usr/lib/calibre/calibre/library/server/main.py", line 12, in <module>
    from calibre.library.server.base import LibraryServer
  File "/usr/lib/calibre/calibre/library/server/base.py", line 23, in <module>
    from calibre.library.server.opds import OPDSServer
  File "/usr/lib/calibre/calibre/library/server/opds.py", line 15, in <module>
    import routes
ImportError: No module named routes
root@localhost:/usr/share/calibre#
Please advice. Thank you.
aruangra is offline   Reply With Quote
Old 09-22-2011, 10:29 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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You're missing python-routes
kovidgoyal is offline   Reply With Quote
Old 09-22-2011, 11:01 PM   #5
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
The problem is solved. Now, I can run ebook-convert, calibredb, and calibre-server on my Nook Touch. By adding the URL localhost:8080 to Aldiko, I can directly get epubs from Calibre.

The next step is to schedule content download which is not difficult

Thank you very much.

Last edited by aruangra; 09-23-2011 at 05:53 AM.
aruangra is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre - send to device - android running Nook App. Mad_Robot Devices 6 10-16-2011 01:49 PM
Calibre breaking Nook Touch hyphenation? jclim00 Calibre 8 09-04-2011 06:28 PM
New Nook Simple Touch & Calibre GeekyGirl Devices 7 06-14-2011 01:31 AM
Error while running calibre with source Lev667 Development 3 03-05-2011 09:55 AM
Error importing epub book to calibre and ipod touch BigHoss Calibre 0 01-24-2010 10:21 AM


All times are GMT -4. The time now is 02:08 PM.


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