![]() |
#1 |
Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,229
Karma: 27110894
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.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |