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:
########## begin emerge output ##########
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
*
* 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="${D}" --no-compile "$@" || die
"python setup.py install failed";
* The die message:
* python setup.py install failed
*
* 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'.
*
--------------------------- ACCESS VIOLATION SUMMARY
--------------------------- LOG FILE =
"/var/log/sandbox/sandbox-32513.log"
open_wr: /usr/lib64/python2.6/site-packages/pkg_resources.py
--------------------------------------------------------------------------------
>>> Failed to emerge dev-python/setuptools-0.6_rc8-r1, Log file:
>>> '/var/log/portage/dev-python:setuptools-0.6_rc8-r1:20081021-133932.log'
* GNU info directory index is up-to-date.
########## end emerge output ##########
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.
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?
Regards,
David
>>> Unpacking source...
>>> Unpacking setuptools-0.6c8.tar.gz to /var/tmp/portage/dev-python/setuptools-0.6_rc8-r1/work
* Applying setuptools-0.6_rc7-noexe.patch ...
[ ok ]
* Applying setuptools-0.6_rc8-svn-1.5.patch ...
[ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-python/setuptools-0.6_rc8-r1/work/setuptools-0.6c8 ...
running build
running build_py
creating build
creating build/lib
copying pkg_resources.py -> build/lib
copying easy_install.py -> build/lib
copying site.py -> build/lib
creating build/lib/setuptools
copying setuptools/extension.py -> build/lib/setuptools
copying setuptools/sandbox.py -> build/lib/setuptools
copying setuptools/depends.py -> build/lib/setuptools
copying setuptools/__init__.py -> build/lib/setuptools
copying setuptools/archive_util.py -> build/lib/setuptools
copying setuptools/dist.py -> build/lib/setuptools
copying setuptools/package_index.py -> build/lib/setuptools
creating build/lib/setuptools/tests
copying setuptools/tests/test_resources.py -> build/lib/setuptools/tests
copying setuptools/tests/__init__.py -> build/lib/setuptools/tests
copying setuptools/tests/doctest.py -> build/lib/setuptools/tests
creating build/lib/setuptools/command
copying setuptools/command/build_ext.py -> build/lib/setuptools/command
copying setuptools/command/upload.py -> build/lib/setuptools/command
copying setuptools/command/bdist_wininst.py -> build/lib/setuptools/command
copying setuptools/command/egg_info.py -> build/lib/setuptools/command
copying setuptools/command/__init__.py -> build/lib/setuptools/command
copying setuptools/command/setopt.py -> build/lib/setuptools/command
copying setuptools/command/install_egg_info.py -> build/lib/setuptools/command
copying setuptools/command/bdist_egg.py -> build/lib/setuptools/command
copying setuptools/command/install.py -> build/lib/setuptools/command
copying setuptools/command/bdist_rpm.py -> build/lib/setuptools/command
copying setuptools/command/install_lib.py -> build/lib/setuptools/command
copying setuptools/command/saveopts.py -> build/lib/setuptools/command
copying setuptools/command/develop.py -> build/lib/setuptools/command
copying setuptools/command/easy_install.py -> build/lib/setuptools/command
copying setuptools/command/build_py.py -> build/lib/setuptools/command
copying setuptools/command/install_scripts.py -> build/lib/setuptools/command
copying setuptools/command/sdist.py -> build/lib/setuptools/command
copying setuptools/command/rotate.py -> build/lib/setuptools/command
copying setuptools/command/alias.py -> build/lib/setuptools/command
copying setuptools/command/register.py -> build/lib/setuptools/command
copying setuptools/command/test.py -> build/lib/setuptools/command
>>> Source compiled.
>>> Test phase [not enabled]: dev-python/setuptools-0.6_rc8-r1
>>> Install setuptools-0.6_rc8-r1 into /var/tmp/portage/dev-python/setuptools-0.6_rc8-r1/image/ category dev-python
running install
running build
running build_py
running install_lib
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
*
* 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="${D}" --no-compile "$@" || die "python setup.py install failed";
* The die message:
* python setup.py install failed
*
* 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'.
*
[31;01m--------------------------- ACCESS VIOLATION SUMMARY ---------------------------[0m
[31;01mLOG FILE = "/var/log/sandbox/sandbox-32513.log"[0m
open_wr: /usr/lib64/python2.6/site-packages/pkg_resources.py
[31;01m--------------------------------------------------------------------------------[0m