![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73
Karma: 11638
Join Date: Aug 2010
Location: Spain
Device: iPad, Kindle Paperwhite, Kobo Libra 2
|
Development documentation question (basic)
I've been trying to follow the instructions at:
http://calibre-ebook.com/user_manual/develop.html But I cannot get the "Hello world!" sample to print out after running calibredb. It just shows calibredb help message. I've tried both in Linux and Windows, installed the calibre binary, download the source code with bzr, set the "CALIBRE_DEVELOP_FROM" variable to point to the "src" directory and modify the "src/calibre/__init__.py" with the print statement. Code:
vmplanet@kubuntu:~/calibre/src/calibre$ echo $CALIBRE_DEVELOP_FROM /home/vmplanet/calibre/src Code:
vmplanet@kubuntu:~/calibre/src/calibre$ calibredb Uso: calibredb orden [opciones] [argumentos] calibredb es la interfaz de línea de órdenes para la base de datos de libros de calibre. orden es una de: ..... Code:
vmplanet@kubuntu-vm:~/calibre/src/calibre$ grep -n Hello __init__.py 24:print 'Hello world!' ![]() |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Make sure the variable is correct (in Windows, just type "SET" at a command prompt to check.) It should point to the src folder that has a cherrypy folder inside it. Get that part working first. |
|
![]() |
![]() |
![]() |
#3 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73
Karma: 11638
Join Date: Aug 2010
Location: Spain
Device: iPad, Kindle Paperwhite, Kobo Libra 2
|
Quote:
No, it does not. It's the calibre package from the Ubuntu distro (0.7.18) But the folder and variable looks OK Code:
vmplanet@kubuntu:~/calibre/src$ pwd
/home/vmplanet/calibre/src
vmplanet@kubuntu:~/calibre/src$ ls
calibre cherrypy odf pyPdf routes templite
vmplanet@kubuntu:~/calibre/src$ echo $CALIBRE_DEVELOP_FROM
/home/vmplanet/calibre/src
|
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
I'll let Kovid tackle this one, then, but I'd recommend installing the current version.
http://calibre-ebook.com/download_linux 0.7.18 is ancient, and there's no reason to develop on such an old version anyway. |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73
Karma: 11638
Join Date: Aug 2010
Location: Spain
Device: iPad, Kindle Paperwhite, Kobo Libra 2
|
I don't know if it was because of the old version or something else but as you pointed I unistalled the calibre package, performed the manual install for calibre 0.7.47 and right after installation.
Code:
Run "calibre" to start calibre
vmplanet@kubuntu:~/calibre/src$ echo $CALIBRE_DEVELOP_FROM
/home/vmplanet/calibre/src
vmplanet@kubuntu:~/calibre/src$ calibre
Hello world!
libprs500(5280)/ KSharedDataCache::Private::mapSharedMemory: Opening cache "/var/tmp/kdecache-vmplanet/icon-cache.kcache" page size is 4096
Thanks for your help. Last edited by Coleccionista; 03-01-2011 at 04:04 PM. |
![]() |
![]() |
![]() |
#6 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
![]() |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Content server - basic question | Viseguy | Calibre | 2 | 09-04-2010 11:32 PM |
Might be a basic question... | emonti8384 | Amazon Kindle | 12 | 01-12-2010 07:58 PM |
OK: a REALLY basic question | ChicagoIrish | Sony Reader | 15 | 08-19-2009 04:08 PM |
Basic question about the PRS-505 | aegir | Sony Reader | 10 | 11-04-2008 02:20 AM |
Basic question about Sony Store + RSS | JeffASonyReader | Sony Reader | 3 | 01-24-2008 04:51 AM |