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 1MY4i4-0005PK-Oo for garchives@archives.gentoo.org; Mon, 03 Aug 2009 21:04:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F7BCE003C; Mon, 3 Aug 2009 21:04:43 +0000 (UTC) Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209]) by pigeon.gentoo.org (Postfix) with ESMTP id D2DB8E003C for ; Mon, 3 Aug 2009 21:04:42 +0000 (UTC) Received: by ewy5 with SMTP id 5so6117642ewy.15 for ; Mon, 03 Aug 2009 14:04:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=0kyK8nsEd6m9/9vFwtGcBhtpuDFXUX/ibZpj6WEAXns=; b=iuvugfA0eVAJIW/uMGYDhYQW0C8BezKavPb302ikVQLC1Ac1t5twNdeVXhHDGeqQK/ iB/5fLPuv9fCvTP5UwkAytBBhTAf3YTKyZ1HiYxBeguM/3mrEYnWwtKPfduK3Ri23UKM 46a0NbMfKwzcDU6pwd52b3ZDxUZAiDXPy/QFo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=J0CiwjubhQ+VmpEuk6613E2DAxMfLnryW6opjAXsed6WPXqh3I0ahgZYPYQJGDSSjn TWCHdQU8XlXtJ9rW9Mm9lQ3vFSlPD7pLidP7amaAskMVebPohitVuUvJGjpSiiZTLHvk ns0THDJZeEGKwgohzmZ7E+nIWrAwKTywXen6M= Received: by 10.210.129.6 with SMTP id b6mr2667305ebd.70.1249333482295; Mon, 03 Aug 2009 14:04:42 -0700 (PDT) Received: from nazgul.localnet ([196.210.202.145]) by mx.google.com with ESMTPS id 5sm649498eyf.18.2009.08.03.14.04.41 (version=SSLv3 cipher=RC4-MD5); Mon, 03 Aug 2009 14:04:41 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] bash stopped running python scripts... Date: Mon, 3 Aug 2009 23:03:19 +0200 User-Agent: KMail/1.11.4 (Linux/2.6.30-gentoo-r4; KDE/4.2.4; x86_64; ; ) References: <4A774F13.1060307@kutulu.org> In-Reply-To: <4A774F13.1060307@kutulu.org> 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 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908032303.19327.alan.mckinnon@gmail.com> X-Archives-Salt: 3fe253c0-94e4-49ae-8416-b751fe9ab5c1 X-Archives-Hash: 594c6af0c90e5b10fd63f088ac736aff On Monday 03 August 2009 22:56:51 Mike Edenfield wrote: > 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 Did you recently merge python-3 and were so foolish as to make it the default? What is /usr/bin/python? and what version is it (-V)? -- alan dot mckinnon at gmail dot com