From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KscLn-0005gI-R4 for garchives@archives.gentoo.org; Wed, 22 Oct 2008 11:58:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A0F84E043E; Wed, 22 Oct 2008 11:58:04 +0000 (UTC) Received: from mail.osagesoftware.com (osagesoftware.com [216.144.204.42]) by pigeon.gentoo.org (Postfix) with ESMTP id 568E0E043E for ; Wed, 22 Oct 2008 11:58:04 +0000 (UTC) Received: from osage.osagesoftware.com (osage.osagesoftware.com [192.168.1.10]) by mail.osagesoftware.com (Postfix) with ESMTP id D9EB7248D for ; Wed, 22 Oct 2008 07:58:02 -0400 (EDT) Date: Wed, 22 Oct 2008 07:58:02 -0400 From: David Relson To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] SOLVED: python 2.6 and python-updater Message-ID: <20081022075802.1e8cf034@osage.osagesoftware.com> In-Reply-To: <20081021193357.1d474528@osage.osagesoftware.com> References: <20081021193357.1d474528@osage.osagesoftware.com> Organization: Osage Software Systems, Inc. X-Mailer: Claws Mail 3.6.1 (GTK+ 2.12.11; x86_64-pc-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: d3841f4b-fae2-454c-bd91-dded6e338c2e X-Archives-Hash: fac9157c604e26722f16fb2e84cd4f90 On Tue, 21 Oct 2008 19:33:57 -0400 David Relson wrote: > I've just updated from python-2.5 to 2.6. Since emerge ran fine, I > ran python-updater. It's encountering problems with lots of > packages. For example, "emerge -1 setuptools" ends with: >=20 > ########## begin emerge output ########## >=20 > copying build/lib/pkg_resources.py > -> /usr/lib64/python2.6/site-packages ACCESS DENIED > open_wr: /usr/lib64/python2.6/site-packages/pkg_resources.py > error: /usr/lib64/python2.6/site-packages/pkg_resources.py: Permission > denied > *=20 > * ERROR: dev-python/setuptools-0.6_rc8-r1 failed. > * Call stack: > * ebuild.sh, line 49: Called src_install > * environment, line 2445: Called distutils_src_install > * environment, line 724: Called die > * The specific snippet of code: > * ${python} setup.py install --root=3D"${D}" --no-compile "$@" || die > "python setup.py install failed"; > * The die message: > * python setup.py install failed > *=20 > * If you need support, post the topmost build error, and the call > stack if relevant. > * A complete build log is located at > '/var/log/portage/dev-python:setuptools-0.6_rc8-r1:20081021-133932.log'. > * The ebuild environment file is located at > '/var/tmp/portage/dev-python/setuptools-0.6_rc8-r1/temp/environment'. > *=20 > --------------------------- ACCESS VIOLATION SUMMARY > --------------------------- LOG FILE =3D > "/var/log/sandbox/sandbox-32513.log" >=20 > open_wr: /usr/lib64/python2.6/site-packages/pkg_resources.py > -------------------------------------------------------------------------= ------- > =07=07=07 > >>> Failed to emerge dev-python/setuptools-0.6_rc8-r1, Log file: >=20 > >>> '/var/log/portage/dev-python:setuptools-0.6_rc8-r1:20081021-133932.l= og' >=20 > * GNU info directory index is up-to-date. >=20 > ########## end emerge output ########## >=20 > This looks like a permissions problem > in /usr/lib64/python2.6/site-packages/. I normally run emerge as > 'relson', but this time I ran emerge as 'root' -- so I don't think > it's a simple permissions problem. >=20 > Has anybody else emerge python-2.6 and run python-updater? Any idea > of what I may be doing wrong? Is it time to head for bgo? >=20 > Regards, >=20 > David http://bugs.gentoo.org/show_bug.cgi?id=3D240149 identified the fix! When python2.6 was installed, the entry in /usr/bin was created: $$$ ls -l /usr/bin/python* lrwxrwxrwx 1 root root ... python -> //usr/bin/python2.6 lrwxrwxrwx 1 root root ... python2 -> python2.5 -rwxr-xr-x 1 root root ... python2.5 -rwxr-xr-x 1 root root ... python2.6 The "//" in the symlink causes the problem. The problem was fixed with the following commands: root@osage portage # eselect python list Available python interpreters: [1] python2.5 [2] python2.6 * root@osage portage # eselect python set 2 so /usr/bin now has=20 lrwxrwxrwx 1 root root ... python -> /usr/bin/python2.6 (with a single slash) and all is good!