Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302005 - sys-apps/portage-2.2_rc61: /usr/lib/portage/pym/portage/sets/__init__.py: ValueError: too many values to unpack
Summary: sys-apps/portage-2.2_rc61: /usr/lib/portage/pym/portage/sets/__init__.py: Val...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 302803
  Show dependency tree
 
Reported: 2010-01-24 04:10 UTC by Jacob Godserv
Modified: 2010-01-29 21:37 UTC (History)
0 users

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


Attachments
pym/portage/sets/__init__.py patch (0001-Fixed-bug-302005-where-there-was-too-many-values-rat.patch,878 bytes, patch)
2010-01-24 04:16 UTC, Jacob Godserv
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Godserv 2010-01-24 04:10:45 UTC
Latest trunk seems to have this issue as well. I am afraid to install trunk, since I don't know how to recover portage, or what kind of changes have been made since rc61, so I haven't been able to test this in trunk.

This is the error:
Traceback (most recent call last):
  File "/usr/lib/portage/pym/portage/sets/__init__.py", line 187, in <module>
    l, e = sc.getSets()
ValueError: too many values to unpack

The patch will follow shortly.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 '=sys-apps/portage-2.2_rc61' # may or may not be necessary; see above
2. python /usr/lib/portage/pym/portage/sets/__init__.py



Portage 2.2_rc61 (!make.profile.neuvoo, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-rc8-omap1-beagle-05719-g151c7a7 armv7l)
=================================================================
System uname: Linux-2.6.30-rc8-omap1-beagle-05719-g151c7a7-armv7l-ARMv7_Processor_rev_2_-v7l-with-gentoo-1.12.13
Timestamp of tree: Sat, 23 Jan 2010 22:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.5.4-r2, 2.6.4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-softfloat-linux-gnueabi"
CFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fomit-frame-pointer -Os -pipe"
CHOST="armv7a-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fomit-frame-pointer -Os -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--buildpkg"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j10"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/neuvoo"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa arm bash-completion berkdb bzip2 cjk cleartype cli corefonts cracklib crypt cups cxx dbus directfb dts esd exif fbcon ffmpeg flac fortran gdbm gif glut gpm gstreamer gzip hal iconv ipv6 jpeg libnotify mad modules mp3 mp4 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png posix pppd pulseaudio python quicktime readline reflection sdl session sndfile spl ssl svg sysfs syslog tcpd theora tiff tk truetype type1 unicode usb vorbis xcomposite xml xorg xpm xv xvid zlib" 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="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse touchscreen" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jacob Godserv 2010-01-24 04:16:44 UTC
Created attachment 217292 [details, diff]
pym/portage/sets/__init__.py patch

Here's the suggested patch. I may be mis-reading something, but it seems to me that the developer made a simple (copy-paste?) goof here, especially since the unneeded variable is never used in the rest of the file.
Comment 2 Zac Medico gentoo-dev 2010-01-24 05:10:13 UTC
Thanks. In svn r15208 I've removed the whole hunk of code since it's not really needed.
Comment 3 Jacob Godserv 2010-01-24 05:43:33 UTC
I was just commenting in #gentoo-portage how nice it is to have some solid information on how portage sees sets. It'd be nice if either the error messages for sets could be improved (for example, dump the set object information like name and description).

I should file another bug report for this, but since this fix directly affects my ability to debug sets, I thought I'd mention it.
Comment 4 Zac Medico gentoo-dev 2010-01-24 06:24:02 UTC
I guess we can add support to portageq for querying set atoms.
Comment 5 Jacob Godserv 2010-01-25 01:42:18 UTC
I've reported a new bug for portage set error messages @ bug #302121.

Is this bug fixed?
Comment 6 Zac Medico gentoo-dev 2010-01-29 21:36:09 UTC
This is fixed in 2.1.7.17 and 2.2_rc62.
Comment 7 Jacob Godserv 2010-01-29 21:37:26 UTC
Awesome, thanks. :)