View Single Post
Old 03-01-2011, 02:07 PM   #1
Coleccionista
Connoisseur
Coleccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to behold
 
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!'
Instructions look quite easy but I can't reproduce
Coleccionista is offline   Reply With Quote