Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 10-20-2011, 01:21 PM   #1
klonuo
Member
klonuo began at the beginning.
 
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
klonuo is offline   Reply With Quote
Old 10-20-2011, 08:12 PM   #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: 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
kovidgoyal is offline   Reply With Quote
Advert
Old 10-21-2011, 11:08 AM   #3
klonuo
Member
klonuo began at the beginning.
 
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
klonuo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:44 PM.


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