public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] bash stopped running python scripts...
@ 2009-08-03 20:56 Mike Edenfield
  2009-08-03 21:03 ` Alan McKinnon
  2009-08-03 21:14 ` [gentoo-user] " Remy Blank
  0 siblings, 2 replies; 11+ messages in thread
From: Mike Edenfield @ 2009-08-03 20:56 UTC (permalink / raw
  To: gentoo-user

I dunno what I did, but I've managed to break python shell scripts, 
which of course is playing havoc with portage.  Bash no longer wants to 
execute the scripts with python as the interpreter, but insists on 
executing them as bash scripts.  Python itself is still functioning 
properly, when invoked directly.   Since I happen to have ImageMagick on 
this machine, the result is this:

kutulu@apollo ~ $ cat test.py
#!/usr/bin/python
import sys
print "Python Ok."
kutulu@apollo ~ $ ./test.py
X connection to localhost:11.0 broken (explicit kill or server shutdown).
./test.py: line 3: print: command not found
kutulu@apollo ~ $ python ./test.py
Python Ok.
kutulu@apollo ~ $

Perl and Tcl both still work as expected, and by invoking python 
directly I can still get portage to merge things.  For example:

root@apollo ~ $ python -O /usr/lib/portage/bin/ebuild 
/usr/portage/dev-lang/python/python-2.6.2-r1.ebuild install

will re-merge python successfully, which I have now done for both python 
and bash, to no effect.

Any ideas?

--Mike



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-08-04 17:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-03 20:56 [gentoo-user] bash stopped running python scripts Mike Edenfield
2009-08-03 21:03 ` Alan McKinnon
2009-08-03 21:22   ` Mike Edenfield
2009-08-03 21:48     ` Alan McKinnon
2009-08-03 22:08       ` Mike Edenfield
2009-08-04  8:05         ` Alan McKinnon
2009-08-03 21:14 ` [gentoo-user] " Remy Blank
2009-08-03 21:28   ` Mike Edenfield
2009-08-04 11:13   ` Graham Murray
2009-08-04 12:59     ` Mike Edenfield
2009-08-04 17:41       ` Remy Blank

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox