public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] python 2.6 and python-updater
@ 2008-10-21 23:33 David Relson
  2008-10-22 11:58 ` [gentoo-user] SOLVED: " David Relson
  0 siblings, 1 reply; 2+ messages in thread
From: David Relson @ 2008-10-21 23:33 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2095 bytes --]

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
--------------------------------------------------------------------------------
\a\a\a
>>> 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

[-- Attachment #2: dev-python:setuptools-0.6_rc8-r1:20081021-133932.log --]
[-- Type: text/x-log, Size: 4257 bytes --]

>>> 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
\a\a\a

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-user] SOLVED: python 2.6 and python-updater
  2008-10-21 23:33 [gentoo-user] python 2.6 and python-updater David Relson
@ 2008-10-22 11:58 ` David Relson
  0 siblings, 0 replies; 2+ messages in thread
From: David Relson @ 2008-10-22 11:58 UTC (permalink / raw
  To: gentoo-user

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:
> 
> ########## 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
> --------------------------------------------------------------------------------
> \a\a\a
> >>> 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

http://bugs.gentoo.org/show_bug.cgi?id=240149 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 

  lrwxrwxrwx  1 root root ... python  -> /usr/bin/python2.6

(with a single slash) and all is good!






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-22 11:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 23:33 [gentoo-user] python 2.6 and python-updater David Relson
2008-10-22 11:58 ` [gentoo-user] SOLVED: " David Relson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox