Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70264 - gentoolkit-0.2.0_pre10-r1: (equery) 'str' object has no attribute 'get_cpv'
Summary: gentoolkit-0.2.0_pre10-r1: (equery) 'str' object has no attribute 'get_cpv'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-11-06 06:48 UTC by Phil Richards
Modified: 2004-12-08 03:35 UTC (History)
1 user (show)

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


Attachments
Patch to fix traceback (equery.70264.patch,716 bytes, patch)
2004-11-19 10:38 UTC, Paul Varner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Richards 2004-11-06 06:48:20 UTC
Smidgen of a problem:
==================================================================
derisoft ~ # dispatch-conf
--- /etc/ssl/misc/der_chop      2004-10-19 16:18:39.000000000 +0100
+++ /etc/ssl/misc/._cfg0000_der_chop    2004-11-06 11:04:40.000000000 +0000
@@ -65,7 +65,7 @@
[... elided ...]
>> (1 of 1) -- /etc/ssl/misc/der_chop
>> q quit, h help, n next, e edit-new, z zap-new, u use-new
   m merge, t toggle-merge, l look-merge:
Traceback (most recent call last):
  File "/usr/sbin/dispatch-conf", line 309, in ?
    d.grind (portage.settings ['CONFIG_PROTECT'])
  File "/usr/sbin/dispatch-conf", line 208, in grind
    self.replace(newconf, conf ['current'])
  File "/usr/sbin/dispatch-conf", line 222, in replace
    os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + self.config["log-file"])
AttributeError: dispatch instance has no attribute 'config'
==================================================================
and:
==================================================================
derisoft ~ # equery belongs /usr/sbin/dispatch-conf
[ Searching for file(s) /usr/sbin/dispatch-conf in *... ]
Traceback (most recent call last):
  File "/usr/bin/equery", line 1556, in ?
    cmd.perform(local_opts)
  File "/usr/bin/equery", line 370, in perform
    map(dumpToScreen, matches)
  File "/usr/bin/equery", line 360, in dumpToScreen
    s = pp.cpv(pkg.get_cpv())
AttributeError: 'str' object has no attribute 'get_cpv'
==================================================================

Any suggestions?  I've tagged this as "major" since dispatch-conf
being broken is a right royal PITA...

My system is completely up-to-date with ~x86 ebuilds, including the
very latest portage (which might explain the failure, of course, since
it changed today).

Phil

Useful info:

derisoft ~ # emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.2, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r3 i686)
=================================================================
System uname: 2.6.9-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.5
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r6
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/src/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/src/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd f77 fam foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl nptlonly offensive oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype x86 xml2 xmms xv zlib video_cards_i810 video_cards_i915"
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2004-11-06 08:13:51 UTC
I got the same error on the same config file.
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-11-06 22:08:44 UTC

*** This bug has been marked as a duplicate of 70282 ***
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2004-11-08 05:05:46 UTC
I missed the equery part
Comment 4 Paul Varner (RETIRED) gentoo-dev 2004-11-19 10:38:16 UTC
Created attachment 44301 [details, diff]
Patch to fix traceback

I know this is already in CVS, but here is the patch for anyone else who runs
into this problem before the version in CVS is released
Comment 5 Mike White 2004-11-24 19:23:40 UTC
When I try to emerge any ebuild I get the following error:
!!! 'str' object has no attribute 'insert'
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)
When I follow thos instructions I get the same error, so I am submitting this bug. This happened after I did an emerge sync a few days ago. Previously emerge worked fine for me.
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2004-12-08 03:35:06 UTC
in 0.2.0_rc1