View Single Post
Old 10-14-2011, 11:42 PM   #14
katsu
Member
katsu began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2011
Device: iPad,Kindle3
I read manual "Setting up a calibre development environment".

does not print "Hello, world!"
where should I check?


$ python --version
Python 2.6.5
$ cat /etc/redhat-release
CentOS Linux release 6.0 (Final)


I extract source to /home/katsu/calibre/calibre
$ ls ~/calibre/calibre/
COPYRIGHT INSTALL README imgsrc session.vim src
Changelog.old.yaml LICENSE format_docs recipes setup
Changelog.yaml LICENSE.rtf icons resources setup.py


do Binary install with:
sudo python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()"

$ which calibre
/usr/bin/calibre
$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin


set CALIBRE_DEVELOP_FROM=/home/katsu/calibre/calibre/src

edit src/calibre/__init__.py
(add 'print ("Hello, world 3")' at line 1)

run calibredb
(it show Usage but no show "Hello, world!")

run calibre --verbose
(it start normally but no show "Hello, world!")

and run calibre-debug -g
$ calibre-debug -g
Starting up...
Started up in 1.0858399868
$
(it start normally but no show "Hello, world!", close it, return to shell normally)


I've probably missed something..
katsu is offline   Reply With Quote