|
|
#1 |
|
Connoisseur
![]() Posts: 57
Karma: 40
Join Date: Aug 2010
Device: iPad, Kindle 3 Wi-Fi
|
Development documentation question (basic)
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: 3,994
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.
__________________
The speed limit on our spacetime highway of life is c - lightspeed. Surprisingly, the posted minimum is also c. We can go no faster, nor any slower! The conversion factor from the time dimension to space is ct. When stationary in space, we must move into the future at c to have our clock tick off t. When moving in space, the spacetime vector c tilts from pure motion in time. The faster we move in the space dimension, the slower we move in the time dimension. |
|
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
Connoisseur
![]() Posts: 57
Karma: 40
Join Date: Aug 2010
Device: iPad, Kindle 3 Wi-Fi
|
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: 3,994
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.
__________________
The speed limit on our spacetime highway of life is c - lightspeed. Surprisingly, the posted minimum is also c. We can go no faster, nor any slower! The conversion factor from the time dimension to space is ct. When stationary in space, we must move into the future at c to have our clock tick off t. When moving in space, the spacetime vector c tilts from pure motion in time. The faster we move in the space dimension, the slower we move in the time dimension. |
|
|
|
|
|
#5 |
|
Connoisseur
![]() Posts: 57
Karma: 40
Join Date: Aug 2010
Device: iPad, Kindle 3 Wi-Fi
|
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: 3,994
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
__________________
The speed limit on our spacetime highway of life is c - lightspeed. Surprisingly, the posted minimum is also c. We can go no faster, nor any slower! The conversion factor from the time dimension to space is ct. When stationary in space, we must move into the future at c to have our clock tick off t. When moving in space, the spacetime vector c tilts from pure motion in time. The faster we move in the space dimension, the slower we move in the time dimension. |
||
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| 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 |