Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 334309

Summary: app-emulation/wine-doors-0.1.3 - if os.environ['USER'] == "root": raise KeyError(key)
Product: Gentoo Linux Reporter: Dmitry Fedorov <Bounce_04>
Component: New packagesAssignee: Hanno Böck <hanno>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://ifotki.info/5/477f197ba9c575cb4e1528107d5be70e6dcdfd65326757.png.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Dmitry Fedorov 2010-08-24 16:24:41 UTC
Hi, all

Ive got gentoo 2010 
ls /var/db/pkg/* | grep python
python-2.6.5-r3
python-3.1.2-r4

trying to emerge app-emulation/wine-doors-0.1.3
hereis an emerge log 

>>> Install wine-doors-0.1.3 into /var/tmp/portage/app-emulation/wine-doors-0.1.3/image/ category app-emulation
python2.6 setup.py install --root=/var/tmp/portage/app-emulation/wine-doors-0.1.3/image/ --no-compile --temp=/var/tmp/portage/app-emulation/wine-doors-0.1.3/image/
Traceback (most recent call last):
  File "setup.py", line 103, in <module>
    if os.environ['USER'] == "root":
  File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'USER'
 * ERROR: app-emulation/wine-doors-0.1.3 failed:
 *   Installation failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_install
 *   environment, line 3353:  Called distutils_src_install '--temp=/var/tmp/portage/app-emulation/wine-doors-0.1.3/image/'
 *   environment, line 1095:  Called die
 * The specific snippet of code:
 *               "$(PYTHON)" "${setup_file}" "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || die "Installation failed";

how can i solve KeyError: 'USER'


Reproducible: Always

Steps to Reproduce:
1.just trying to emerge wine-doors-0.1.3
Comment 1 Dmitry Fedorov 2010-08-24 16:27:30 UTC
System uname: Linux-2.6.34-gentoo-r1-i686-AMD_Athlon-tm-_XP_2400+-with-gentoo-2.0.1
Timestamp of tree: Tue, 24 Aug 2010 14:15:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror2.corbina.ru/gentoo-distfiles/ ftp://xeon.gentoo.ru/mirrors/Gentoo/ ftp://gentoo.bloodhost.ru/ http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror2.corbina.ru/gentoo-distfiles/ http://gentoo.bloodhost.ru/ ftp://mirror.yandex.ru/gentoo-distfiles/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="# #Xorg #do #php X a52 aac acl acpi alsa apache2 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dependences device-mapper dri dts dvd dvdr emboss encode extras fam firefox flac fortran gd gdbm gdu gif gnome gnutls gpm gtk hal iconv ip1000 java jpeg kdrive langs lcms ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap mysql mysqli ncurses need nls not nptl nptlonly ogg opengl openmp pam pango pcre pdf perl php png policykit ppds pppd prog python qt3support readline reflection sdl session sip spell spl sqlite ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis wav x264 x86 xcb xml xorg xsl xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access authn_anon authn_dbd authn_dbm authn_default authn_file authn_alias authz_owner authz_user authz_host authz_default actions alias auth_basic setenvif deflate filter so expires  userdir cgi dir autoindex   include status negotiation mime log_config env " ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-08-28 04:31:03 UTC
Looks like it doesn't want FEATURES=-userpriv until we tell it to.
Comment 3 Marcus Schwartz 2010-11-29 18:23:49 UTC
This looks like a duplicate of #264181?  I had the same problem, and the patch there fixed it for me.

(The patch is inline in comment #3, rather than attached to the bug).
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-04-06 18:17:50 UTC

*** This bug has been marked as a duplicate of bug 264181 ***