equery d sys-power/acpid [ Searching for packages depending on sys-power/acpid... ] Traceback (most recent call last): File "/usr/bin/equery", line 1805, in <module> cmd.perform(local_opts) File "/usr/bin/equery", line 1177, in perform depcpvs = map((lambda x: x.get_cpv()), gentoolkit.find_packages(depstr)) File "/usr/lib/gentoolkit/pym/gentoolkit/helpers.py", line 25, in find_packages t = portage.db["/"]["porttree"].dbapi.match(search_key) File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 771, in match return self.xmatch("match-visible", mydep) File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 668, in xmatch mydep = dep_expand(origdep, mydb=self, settings=self.mysettings) File "/usr/lib/portage/pym/portage/__init__.py", line 6211, in dep_expand return portage.dep.Atom(prefix + expanded + postfix) File "/usr/lib/portage/pym/portage/dep.py", line 404, in __call__ instance = super(_AtomCache, cls).__call__(s) File "/usr/lib/portage/pym/portage/dep.py", line 427, in __init__ raise InvalidAtom(s) portage.exception.InvalidAtom: null/)) equery d app-office/openoffice [ Searching for packages depending on app-office/openoffice... ] Traceback (most recent call last): File "/usr/bin/equery", line 1805, in <module> cmd.perform(local_opts) File "/usr/bin/equery", line 1177, in perform depcpvs = map((lambda x: x.get_cpv()), gentoolkit.find_packages(depstr)) File "/usr/lib/gentoolkit/pym/gentoolkit/helpers.py", line 25, in find_packages t = portage.db["/"]["porttree"].dbapi.match(search_key) File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 771, in match return self.xmatch("match-visible", mydep) File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 668, in xmatch mydep = dep_expand(origdep, mydb=self, settings=self.mysettings) File "/usr/lib/portage/pym/portage/__init__.py", line 6211, in dep_expand return portage.dep.Atom(prefix + expanded + postfix) File "/usr/lib/portage/pym/portage/dep.py", line 404, in __call__ instance = super(_AtomCache, cls).__call__(s) File "/usr/lib/portage/pym/portage/dep.py", line 427, in __init__ raise InvalidAtom(s) portage.exception.InvalidAtom: null/)) [ Searching for packages depending on aaa/aaa... ] !!! Warning: No packages found matching aaa/aaa Traceback (most recent call last): File "/usr/bin/equery", line 1805, in <module> cmd.perform(local_opts) File "/usr/bin/equery", line 1177, in perform depcpvs = map((lambda x: x.get_cpv()), gentoolkit.find_packages(depstr)) File "/usr/lib/gentoolkit/pym/gentoolkit/helpers.py", line 25, in find_packages t = portage.db["/"]["porttree"].dbapi.match(search_key) File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 771, in match return self.xmatch("match-visible", mydep) File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 668, in xmatch mydep = dep_expand(origdep, mydb=self, settings=self.mysettings) File "/usr/lib/portage/pym/portage/__init__.py", line 6211, in dep_expand return portage.dep.Atom(prefix + expanded + postfix) File "/usr/lib/portage/pym/portage/dep.py", line 404, in __call__ instance = super(_AtomCache, cls).__call__(s) File "/usr/lib/portage/pym/portage/dep.py", line 427, in __init__ raise InvalidAtom(s) portage.exception.InvalidAtom: null/)) equery d app-portage/gentoolkit [ Searching for packages depending on app-portage/gentoolkit... ] Traceback (most recent call last): File "/usr/bin/equery", line 1805, in <module> cmd.perform(local_opts) File "/usr/bin/equery", line 1177, in perform depcpvs = map((lambda x: x.get_cpv()), gentoolkit.find_packages(depstr)) File "/usr/lib/gentoolkit/pym/gentoolkit/helpers.py", line 25, in find_packages t = portage.db["/"]["porttree"].dbapi.match(search_key) File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 771, in match return self.xmatch("match-visible", mydep) File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 668, in xmatch mydep = dep_expand(origdep, mydb=self, settings=self.mysettings) File "/usr/lib/portage/pym/portage/__init__.py", line 6211, in dep_expand return portage.dep.Atom(prefix + expanded + postfix) File "/usr/lib/portage/pym/portage/dep.py", line 404, in __call__ instance = super(_AtomCache, cls).__call__(s) File "/usr/lib/portage/pym/portage/dep.py", line 427, in __init__ raise InvalidAtom(s) portage.exception.InvalidAtom: null/))
Portage 2.2_rc3 (default/linux/x86/2008.0/desktop, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.26-gentoo i686) ================================================================= System uname: Linux-2.6.26-gentoo-i686-AMD_Athlon-tm-_XP_3000+-with-glibc2.0 Timestamp of tree: Thu, 24 Jul 2008 11:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.4.4-r4, 2.5.2-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.62-r1 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.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb" 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/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden" DISTDIR="/zzz/portage/distfiles" FEATURES="autoconfig ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.roedu.net/pub/mirrors/gentoo.org http://ftp.lug.ro/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en ro" MAKEOPTS="-j2" PKGDIR="/zzz/portage/packages" 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="/zzz/tmp" PORTDIR="/zzz/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync1.ro.gentoo.org/gentoo-portage" USE="3dnow X a52 aac acl acpi alsa amr apache2 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt dbus dri dvd dvdr dvdread encode evo fam firefox gdbm gif glitz gpm gstreamer hal htmlhandbook iconv ipv6 isdnlog jpeg kde kdehiddenvisibility kerberos libnotify mad midi mikmod mmx mp3 mp4 mpeg mplayer mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 readline reflection sdl session spl sse ssl startup-notification svg tcpd tiff truetype unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="intel8x0 usb-audio" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ro" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS [ebuild R ] sys-power/acpid-1.0.6-r1 equery d ">=sys-power/acpid-1.0.6-r1" [ Searching for packages depending on >=sys-power/acpid-1.0.6-r1... ] Traceback (most recent call last): File "/usr/bin/equery", line 1805, in <module> cmd.perform(local_opts) File "/usr/bin/equery", line 1177, in perform depcpvs = map((lambda x: x.get_cpv()), gentoolkit.find_packages(depstr)) File "/usr/lib/gentoolkit/pym/gentoolkit/helpers.py", line 25, in find_packages t = portage.db["/"]["porttree"].dbapi.match(search_key) File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 771, in match return self.xmatch("match-visible", mydep) File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 668, in xmatch mydep = dep_expand(origdep, mydb=self, settings=self.mysettings) File "/usr/lib/portage/pym/portage/__init__.py", line 6211, in dep_expand return portage.dep.Atom(prefix + expanded + postfix) File "/usr/lib/portage/pym/portage/dep.py", line 404, in __call__ instance = super(_AtomCache, cls).__call__(s) File "/usr/lib/portage/pym/portage/dep.py", line 427, in __init__ raise InvalidAtom(s) portage.exception.InvalidAtom: null/))
Unfortunately it works for me on the 4 gentoo boxes that I adminsister. All four our running gentoolkit-0.2.4_rc5 and portage-2.2_rc3. dev-portage: Any ideas what could be causing the traceback?
Created attachment 161377 [details, diff] show debug output to find the package with the invalid dep string This patch should help us discover which package has an invalid dep string. If this patch is saved as /tmp/equery_debug.patch then it can be applied as follows: patch /usr/bin/equery /tmp/equery_debug.patch Please reproduce the error with this patch applied, and attach the output. equery d sys-power/acpid > debug.log 2>&1 After you've done that, you can revert the patch: patch -R /usr/bin/equery /tmp/equery_debug.patch In the debug output, find the very last "processing dependencies of <cpv>" message that is displayed before the exception occurs. Use that to find the *DEPEND files located in /var/db/pkg/<cpv>/ and also attach those.
Created attachment 161399 [details] debug output for acpid
Created attachment 161401 [details] debug output for openoffice
Created attachment 161402 [details] DEPEND for twm
Created attachment 161404 [details] RDEPEND for twm
Did an exception occur after it printed "processing dependencies of x11-wm/twm-1.0.4". I'm asking because I don't see any exception at the end of your logs, and it seems like x11-wm/twm-1.0.4 might just be last because it's the last one in alphabetical order.
Haha, you're right. I didn't noticed too. It seems it's fixed now... but I can't tell why or how. Probably last emerge --sync fixed it.
$ svn commit -m "Fix find_packages and find_installed_packages to print a warning instead of a traceback when an InvalidAtom exception occurs. (Bug #234358)" ChangeLog src/gentoolkit/helpers.py Sending ChangeLog Sending src/gentoolkit/helpers.py Transmitting file data .. Committed revision 507.
Released in gentoolkit-0.2.4_rc6