From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MY4zF-0000my-Kk for garchives@archives.gentoo.org; Mon, 03 Aug 2009 21:22:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D876E035D; Mon, 3 Aug 2009 21:22:28 +0000 (UTC) Received: from mail.informasoftware.com (mail.informasoftware.com [66.193.169.4]) by pigeon.gentoo.org (Postfix) with ESMTP id E36C7E035D for ; Mon, 3 Aug 2009 21:22:27 +0000 (UTC) Received: from [192.168.100.74] ([192.168.100.74] RDNS failed) by mail.informasoftware.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 3 Aug 2009 17:22:07 -0400 Message-ID: <4A775500.8040803@kutulu.org> Date: Mon, 03 Aug 2009 17:22:08 -0400 From: Mike Edenfield User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] bash stopped running python scripts... References: <4A774F13.1060307@kutulu.org> <200908032303.19327.alan.mckinnon@gmail.com> In-Reply-To: <200908032303.19327.alan.mckinnon@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Aug 2009 21:22:07.0023 (UTC) FILETIME=[7421EBF0:01CA1480] X-Archives-Salt: d351ade0-5037-44ae-abe9-9f7a7060cc12 X-Archives-Hash: 39b88c823cc3b411992caaaf473fd99c On 8/3/2009 5:03 PM, Alan McKinnon wrote: > On Monday 03 August 2009 22:56:51 Mike Edenfield wrote: >> 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 ~ $ > Did you recently merge python-3 and were so foolish as to make it the > default? I did emerge python-3, but then unmerged it almost immediately, and it was never the default. Python was already broken when I merged python 3.1, which I did to see if it fixed anything, which of course it didn't. > What is /usr/bin/python? and what version is it (-V)? root@apollo ~ # /usr/bin/python -V Python 2.6.2 root@apollo ~ # cat /usr/bin/python #!/bin/bash # Gentoo Python wrapper script [[ "${EPYTHON}" =~ (/|^python$) ]] && EPYTHON="python2.6" "${0%/*}/${EPYTHON:-python2.6}" "$@" Is that supposed to be that way? I vaguely recall from my Tcl days that tclsh used to cause problems with the #! lines when it was a shell script, and that you had to use some odd exec trick to get tcl shell scripts to run. Is that still true? Looking back through my emerge.log it appears that the last thing to successfully run through emerge was eselect-python, if that makes a difference. --Mike