09-22-2011, 07:25 PM | #1 |
Connoisseur
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 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# aruangra Last edited by aruangra; 09-22-2011 at 10:28 PM. |
09-22-2011, 08:18 PM | #2 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Set the LANG environment variable correctly.
|
Advert | |
|
09-22-2011, 09:18 PM | #3 |
Connoisseur
Posts: 83
Karma: 888
Join Date: May 2010
Device: Nook Touch, iPad1, iPad2, iPod Touch 4G, Pixel Qi
|
Thank you very much. I set the LANG environment variable using the command:
Code:
export LANG=en_US.UTF-8 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# |
09-22-2011, 10:29 PM | #4 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You're missing python-routes
|
09-22-2011, 11:01 PM | #5 |
Connoisseur
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. |
Advert | |
|
|
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 |