![]() |
#1 |
Member
![]() Posts: 15
Karma: 10
Join Date: Dec 2010
Device: none
|
shebang problem "/usr/bin/env python2"
Hi,
this is not much developer problem but perhaps bug report and it seemed to me more appropriate to report it here then in other subforums: I installed latest Calibre (0.8.22) from source on Ubuntu 11.04. When I tried to launch it error was thrown, similar to this line: /usr/bin/env python2 - file not found as I recognized shebang I checked Calibre launcher python scripts in /usr/bin and found that it's literally written like that: #!/usr/bin/env python2 I removed shebang last character from all Calibre scripts and it started to work Cheers |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre requires python2 not python3. The shebang is the way I ensure it runs with python2. Some distributions do not provide python2, inwhich case you can do it manually, by symlinking python to python2
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 15
Karma: 10
Join Date: Dec 2010
Device: none
|
I have one Python - 2.7 and didn't notice any script/program that uses python2 or python3 in shebang.
OK, I thought only to inform you. Maybe you can add that symlink is required as in Ubuntu at least, python2 is not symlinked to python 2.x Cheers |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"A Problem Occurred" on the "Shop" page. | swallman | Nook Color & Nook Tablet | 1 | 12-25-2010 12:34 PM |
Ich bin so neugierig: "your Kindle 3 is shipping soon..." | knuthmeyer | Amazon Kindle | 73 | 09-03-2010 03:35 AM |
Not loading - AttributeError: /usr/bin/python: undefined symbol: FcPatternBuild | k8oylos | Calibre | 3 | 04-09-2009 07:46 PM |