public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Edenfield <kutulu@kutulu.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] bash stopped running python scripts...
Date: Mon, 03 Aug 2009 16:56:51 -0400	[thread overview]
Message-ID: <4A774F13.1060307@kutulu.org> (raw)

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



             reply	other threads:[~2009-08-03 20:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-03 20:56 Mike Edenfield [this message]
2009-08-03 21:03 ` [gentoo-user] bash stopped running python scripts 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A774F13.1060307@kutulu.org \
    --to=kutulu@kutulu.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox