Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-28-2011, 01:44 AM   #1
rozen
Member
rozen began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Dec 2010
Location: CA
Device: nook
Problem building Calibre from source on Ubuntu 10.10

Hi,

I just built version 0.7.52 on ubuntu 10.10. In order to build it I installed Python 2.7.1 and all of the necessary bits and pieces. When it finished installing calibre, it suggested that I start it by issuing the terminal command calibre. It failed to run.

It tracked the problem down to the fact that I have both python2.6 and python2.7 installed. So the command that I used to build calibre was

time sudo python2.7 setup.py install

however, when I looked at the installed python scripts such as
/usr/local/bin/calibre i saw that the first line was

#!/usr/bin/env python2

so I changed that to

#!/usr/bin/env python2.7

and it ran fine.

My system has the command 'python' invoke to python 2.6
and 'python2.7' refer to python 2.7 so that my old programs run with python 2.6 until I get all the goddies I need installed for 2.7. Needless to say, I was surprised to see the script line refer to python2.

I have calibre now working but there is a question some where.

Don
rozen is offline   Reply With Quote
Old 03-28-2011, 02:02 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The use of python2 is deliberate so calibre wont break if in the future python 2.8 is released. Incidentally, why are you building calibre from source, you can hack on calibre without needing to do that. And then you don't have tow orry about python versions and all the rest of the very messy dependencies.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Building on Ubuntu from latest Bazaar Source RoninTech Calibre 5 04-09-2010 10:01 PM
Building Calibre from source al35 Calibre 3 03-24-2010 02:22 PM
Problem building openinkpot on Ubuntu 9.04 nseger OpenInkpot 3 08-23-2009 04:51 AM
Issues building Madshelf on Ubuntu migge OpenInkpot 1 08-22-2009 07:59 PM
Problem with Calibre and Ubuntu azurita Calibre 2 05-03-2009 08:22 PM


All times are GMT -4. The time now is 09:04 PM.


MobileRead.com is a privately owned, operated and funded community.