Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289707 - sys-apps/portage error on emerge after update portage
Summary: sys-apps/portage error on emerge after update portage
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-19 12:34 UTC by Anton Logvinenko
Modified: 2015-03-04 22:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Logvinenko 2009-10-19 12:34:41 UTC
I do not know this is a bug or other problem, but after update portage:

cat /var/tmp/portage/sys-apps/portage-2.1.7.1/temp/build.log
 *
 * ERROR: sys-apps/portage-2.1.7.1 failed.
 * Call stack:
 *                ebuild.sh, line   49:  Called pkg_setup
 *   portage-2.1.7.1.ebuild, line   73:  Called die
 * The specific snippet of code:
 *              die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)."
 *  The die message:
 *   This version of portage requires at least python-2.6 to be selected as the default python interpreter (see `eselect python --help`).
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-apps/portage-2.1.7.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.1.7.1/temp/die.env'.

After that i start emerge:

File "/usr/bin/emerge", line 138
    print bold(prompt),
             ^
SyntaxError: invalid syntax

If eselect python list:

Available python interpreters:
  [1]   python2.4
  [2]   python2.5
  [3]   python3.1 *


I choose python2.4 or python2.5 than emerge displays the following:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 31, in <module>
    import emergehelp, xpak, commands, errno, re, socket, string, time, types
  File "/usr/lib/portage/pym/emergehelp.py", line 13, in <module>
    import portage_exception
  File "/usr/lib/portage/pym/portage_exception.py", line 14, in <module>
    import portage_util
  File "/usr/lib/portage/pym/portage_util.py", line 15, in <module>
    import portage_data
  File "/usr/lib/portage/pym/portage_data.py", line 16, in <module>
    from portage_exec import atexit_register
  File "/usr/lib/portage/pym/portage_exec.py", line 10, in <module>
    from portage_util import dump_traceback
ImportError: cannot import name dump_traceback




Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2009-10-19 20:40:00 UTC
You should install python2.6 and set it as your default interpreter:

  eselect python set python3.1
  emerge -1 python:2.6
  eselect python set python2.6