Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175050 - Attribute error in equery in app-portage/gentoolkit-0.2.4_pre4
Summary: Attribute error in equery in app-portage/gentoolkit-0.2.4_pre4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
: 175137 (view as bug list)
Depends on: 172694
Blocks:
  Show dependency tree
 
Reported: 2007-04-18 09:27 UTC by Peter Humphrey
Modified: 2007-04-24 09:10 UTC (History)
3 users (show)

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


Attachments
Duncan's emerge --info (duncan.emerge.info,4.11 KB, text/plain)
2007-04-19 02:30 UTC, Duncan
Details
equery patch (equery.175050.patch,1016 bytes, patch)
2007-04-19 02:39 UTC, Paul Varner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Humphrey 2007-04-18 09:27:19 UTC
I got this error when querying portaudio:

$ equery d portaudio
[ Searching for packages depending on portaudio... ]
app-office/openoffice-2.2.0
Traceback (most recent call last):
  File "/usr/bin/equery", line 1754, in ?
    cmd.perform(local_opts)
  File "/usr/bin/equery", line 1184, in perform
    print "(" + \
AttributeError: 'list' object has no attribute 'join'

Portaudio is installed on this box. Another user who does not have it installed got the same result. He said, "I tried querying something else merged, no problem, tried something else NOT merged, no problem there either.  Portaudio, however, problem."

A third user said he had no such problem with "the newest stable gentoolkit", which I assume is 0.2.2.

$ equery l gentoolkit
[ Searching for package 'gentoolkit' in all categories among: ]
 * installed packages
[I--] [ ~] app-portage/gentoolkit-0.2.4_pre4 (0)


Reproducible: Always




$ emerge --info
Portage 2.1.2.4 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r6 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System release 1.12.10
Timestamp of tree: Tue, 17 Apr 2007 05:20:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk         http://ftp.easynet.nl/mirror/gentoo         http://trumpetti.atm.tut.fi/gentoo/         ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo         http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en_GB"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/enlightenment /usr/local/portage"
SYNC="rsync://gate.prhnet/gentoo-portage"
USE="X aac aalib acpi alsa amd64 arts bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread encode exif fam ffmpeg firefox fortran gdbm gif gpm gs gstreamer gtk gtk2 iconv imagemagick ipv6 ithreads java javascript jpeg jpeg2k kde kdeenablefinal lcms libcaca libdvdread libg++ lm_sensors logitech-mouse logrotate mad midi mmap mng mp3 mpeg musicbrainz ncurses nls nptl nptlonly nvidia ogg opengl pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline reflection samba sample scanner sdl session smp spell spl ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vorbis wmf xforms xml xml2 xorg xprint zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="fuji" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stratos Psomadakis (RETIRED) gentoo-dev 2007-04-18 15:37:42 UTC
(In reply to comment #0)
> A third user said he had no such problem with "the newest stable gentoolkit",
> which I assume is 0.2.2.
> 

a correction about the newest stable gentoolkit...it's 0.2.3-r1...


Comment 2 Peter Humphrey 2007-04-18 16:05:05 UTC
(In reply to comment #1)

> a correction about the newest stable gentoolkit...it's 0.2.3-r1...
 
Ok, if you say so, but eix doesn't mention that version:

$ eix gentoolkit
[D] app-portage/gentoolkit
     Available versions:  0.2.2 (~)0.2.3
     Installed versions:  0.2.4_pre4(09:17:19 13/04/07)
     Homepage:            http://www.gentoo.org/proj/en/portage/tools/index.xml
     Description:         Collection of administration scripts for Gentoo
Comment 3 Stratos Psomadakis (RETIRED) gentoo-dev 2007-04-18 16:12:32 UTC
(In reply to comment #2)
> Ok, if you say so, but eix doesn't mention that version:
> 
> $ eix gentoolkit
> [D] app-portage/gentoolkit
>      Available versions:  0.2.2 (~)0.2.3
>      Installed versions:  0.2.4_pre4(09:17:19 13/04/07)
>      Homepage:            http://www.gentoo.org/proj/en/portage/tools/index.xml
>      Description:         Collection of administration scripts for Gentoo
> 

:/
in my computer,i get this:
[I] app-portage/gentoolkit
     Available versions:  0.2.2 0.2.3 0.2.3-r1 ~0.2.4_pre3 ~0.2.4_pre4
     Installed versions:  0.2.3-r1(10:13:42 πμ 15/04/2007)
     Homepage:            http://www.gentoo.org/proj/en/portage/tools/index.xml
     Description:         Collection of administration scripts for Gentoo

sync and see if you get the same output...
Comment 4 Paul Varner (RETIRED) gentoo-dev 2007-04-18 18:45:13 UTC
gentoolkit-0.2.4_pre3 is unaffected as well
Comment 5 Mike Auty (RETIRED) gentoo-dev 2007-04-18 21:48:51 UTC
*** Bug 175137 has been marked as a duplicate of this bug. ***
Comment 6 Duncan 2007-04-19 02:27:10 UTC
(In reply to comment #0)
> Portaudio is installed on this box. Another user who does not have it
> installed got the same result. He said, "I tried querying something else
> merged, no problem, tried something else NOT merged, no problem there
> either.  Portaudio, however, problem."

I was that user.  Seems from the dup (bug #175137) there are others reporting this on other packages now, as well, but at least here, it's not happening on all packages.  I get a traceback on all the packages (portaudio (not merged), gnutls (merged), gtk-docs (not merged)) reported on the two bugs, whether the package is merged or not, but not on all "equery d" runs.

Why are packages reported as depending on on stuff that's not merged (revdep-rebuild says I'm fine)?  USE flag dependencies, right, with the USE flags off so no active dependency?  Isn't equery supposed to use the on-system state, checking the USE flags?  I guess I never bothered to think about it before, but it's reporting unactive dependencies now, before it crashes.

Another package that tracebacks (merged):

equery d konqueror
[ Searching for packages depending on konqueror... ]
kde-base/kdesktop-3.5.6-r1 (~kde-base/konqueror-3.5.6)
kde-base/konq-plugins-3.5.6-r1 (~kde-base/konqueror-3.5.6)
kde-base/konqueror-akregator-3.5.6 (~kde-base/konqueror-3.5.6)
media-sound/amarok-1.4.5-r1
Traceback [same-old, so snipped]

A couple that work fine (both merged, without and with reported dependencies):

equery d amarok
[ Searching for packages depending on amarok... ]

equery d kdesktop
[ Searching for packages depending on kdesktop... ]
kde-base/kdebase-startkde-3.5.6-r1 (~kde-base/kdesktop-3.5.6)

Another that doesn't (not merged):
equery d gnome-vfs
[ Searching for packages depending on gnome-vfs... ]
media-libs/xine-lib-1.1.5
Traceback [snipped]

A not merged package that works:

equery d gnome-vfsmm
[ Searching for packages depending on gnome-vfsmm... ]

Finally, a package that doesn't exist at all (works with expected warning:

equery d asdf
[ Searching for packages depending on asdf... ]
!!! Warning: No packages found matching asdf

I'm on ~amd64, with gentoolkit-0.2.4-pre4, portage...

INTERESTING!  Maybe related, maybe a different bug.  I have portage 2.1.2.4 merged, but esearch says I have 2.1.2.3 merged!  Further, it reports portage-manpages as masked!

emerge -p portage

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/portage-2.1.2.4

esearch -I portage
[ Results for search key : portage ]
[ Applications found : 2 ]

*  app-portage/portage-manpages [ Masked ]
      Latest version available: 20070122
      Latest version installed: 20070122
      Size of downloaded files: [no/bad digest]
      Homepage:    http://www.gentoo.org/
      Description: collection of Gentoo manpages
      License:     GPL-2

*  sys-apps/portage
      Latest version available: 2.1.2.4
      Latest version installed: 2.1.2.3
      Size of downloaded files: [no/bad digest]
      Homepage:    http://www.gentoo.org/proj/en/portage/index.xml
      Description: The Portage Package Management System. The primary package management and distribution system for Gentoo.
      License:     GPL-2

Looks like I may have a different bug to file.  Meanwhile, emerge --info to be attached.
Comment 7 Duncan 2007-04-19 02:30:46 UTC
Created attachment 116699 [details]
Duncan's emerge --info
Comment 8 Paul Varner (RETIRED) gentoo-dev 2007-04-19 02:33:53 UTC
$ svn commit -m "Fix string join methods Bug #175050"
Sending        equery/equery
Transmitting file data .
Committed revision 388.
Comment 9 Paul Varner (RETIRED) gentoo-dev 2007-04-19 02:39:18 UTC
Created attachment 116702 [details, diff]
equery patch

The attached patch contains the fixes that were committed to subversion.
Comment 10 Duncan 2007-04-19 02:44:59 UTC
(In reply to comment #6)
> INTERESTING!  Maybe related, maybe a different bug.  I have portage 2.1.2.4
> merged, but esearch says I have 2.1.2.3 merged!  Further, it reports
> portage-manpages as masked!

> Looks like I may have a different bug to file.

No.  Thinko on my part.  Had to run eupdatedb.  Still wonder why it was reporting portage-manpages as masked, tho.  Oh well...  Fixed by updating the db.
Comment 11 Peter Humphrey 2007-04-19 08:58:56 UTC
(In reply to comment #3)

> sync and see if you get the same output...

I sync daily, but I did so again this morning and got the same result. I also ran eupdatedb and again got the same result.

Then I applied Paul's patch (by editing /usr/bin/equery by hand) and got this:

$ equery d portaudio
[ Searching for packages depending on portaudio... ]
app-office/openoffice-2.2.0 (sound? >=media-libs/portaudio-18.1-r5)

So it works for me - thanks!

I'll now just wait for the correction to work its way into the mainstream.
Comment 12 Andrei Slavoiu 2007-04-19 14:55:58 UTC
(In reply to comment #11)
> (In reply to comment #3)
> 
> > sync and see if you get the same output...
> 
> I sync daily, but I did so again this morning and got the same result. I also
> ran eupdatedb and again got the same result.

eix has it's own database, to update that you must run update-eix or sync using eix-sync (which runs both emerge --sync and update-eix and also layman -S if installed)
Comment 13 DocReedSolomon 2007-04-20 13:19:31 UTC
i get the same error here:

equery depends transcode
[ Searching for packages depending on transcode... ]
app-cdr/k3b-1.0.1
Traceback (most recent call last):
  File "/usr/bin/equery", line 1754, in <module>
    cmd.perform(local_opts)
  File "/usr/bin/equery", line 1186, in perform
    pp.pkgquery(dependency[0]+dependency[2]) + ")"
AttributeError: 'list' object has no attribute 'join'

gentoolkit-0.2.4_pre3 behaves fine.

emerge --info
Portage 2.1.2.4 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3700+
Gentoo Base System release 1.12.10
Timestamp of tree: Fri, 20 Apr 2007 04:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.5-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer -ftracer -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer -ftracer -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://www.gigaload.org/gentoo.org"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/mnt/data2/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi admin alsa amd64 apache2 apm arts artswrappersuid asf audiofile berkdb bitmap-fonts branding browserplugin bzip2 calendar cdb cddb cdparanoia cgi cli contentcache cracklib crypt css cups custom-cflags dba dbus directfb disassembler divx divx4linux dri dts dv dvb dvd dvdr dvdread emerald encode esd exif fastcgi fax fbsplash ffmpeg flac foomaticdb fortran fpx gd gdbm geoip gif gimp gimpprint glitz glx gmedia gnome gphoto2 graphviz gs gstreamer gtk gtk2 hal helix httpd iconv ieee1394 imagemagick imap imlib isdnlog ithreads java java5 jbig jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lcms libg++ live lm_sensors mad math mbox midi mikmod mjpeg mmx2 mozcalendar mozilla mozsvg mp2 mp3 mp4 mpeg mplayer musicbrainz mysql nas ncurses network nfs nls noamazon nptl nptlonly nsplugin nvidia ogg oggvorbis opengl oss pam pcre pdf perl php pic png ppds pppd python qt3 qt3support qt4 quicktime readline realmedia reflection rtc samplerate sasl scanner sdl session shaper sharedmem shorten snmp sox spell spl sqlite ssh ssl stream svg tcpd tetex threads tidy tiff truetype truetype-fonts tunepimp type1-fonts unicode usb userlocales vcd visualization vmware vorbis wmf wmp wxwindows x264 xcomposite xine xinerama xml xml2 xorg xscreensaver xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 14 Paul Varner (RETIRED) gentoo-dev 2007-04-23 19:09:44 UTC
released in gentoolkit-0.2.4_pre5
Comment 15 DocReedSolomon 2007-04-24 08:46:06 UTC
fixed in 0.2.4_pre5, thx!
Comment 16 Peter Humphrey 2007-04-24 09:10:46 UTC
Confirmed by originator - thanks!