Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335493 - portpeek-1.5.9.0 Traceback: AttributeError: 'module' object has no attribute 'find_packages'
Summary: portpeek-1.5.9.0 Traceback: AttributeError: 'module' object has no attribute ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mike Pagano
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-01 09:40 UTC by Fabio Coatti
Modified: 2010-09-01 14:29 UTC (History)
0 users

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


Attachments
package.unmask (package.unmask,190 bytes, text/plain)
2010-09-01 11:47 UTC, Fabio Coatti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Coatti 2010-09-01 09:40:21 UTC
Hi, I've just installed portpeek 1.5.9.0 and I'm getting this Traceback:
calvin ~ # portpeek -r -a

package.keywords:

package.unmask:
Traceback (most recent call last):
  File "/usr/bin/portpeek", line 813, in <module>
    get_recursive_info(USER_CONFIG_PATH + "/package.unmask")
  File "/usr/bin/portpeek", line 289, in get_recursive_info
    get_info(filename)
  File "/usr/bin/portpeek", line 310, in get_info
    diffs_found = parse_line(line, filename)
  File "/usr/bin/portpeek", line 165, in parse_line
    pkgs = gentoolkit.helpers.find_packages(fields[0], True)
AttributeError: 'module' object has no attribute 'find_packages'

Dunno if this is caused by a problem in my portage files, but I guess that a traceback is not the right way to handle it :)

Le me know if more details are needed.



Reproducible: Always




calvin ~ # emerge --info
Portage 2.2_rc72 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35.4 x86_64)
=================================================================
System uname: Linux-2.6.35.4-x86_64-Intel-R-_Core-TM-_i5_CPU_M_520_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 01 Sep 2010 08:30: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.2
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 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-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/portage /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ "
LANG="it_IT.utf8"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it en"
MAKEOPTS="-j4"
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/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac aalib acl acpi aim alsa amd64 ares asf ati audio audiofile avahi bash-completion berkdb bidi bl bluetooth branding bri bzip2 caps cdda cdparanoia cdr cjk cli consolekit cracklib crypt cups curl cxx dba dbus device-mapper dga divx divx4linux dri dts dv dvb dvd dvdr dvdread edl encode ethereal exif expat faad fam fame fbcon ffmpeg fftw flac force-cgi-redirect fortran ftp gallium garmin gd gdbm gimp gmedia gmp gnutls gphoto2 gpm gps gsm h264 h323 hal iconv icq idn ifp ilbc imagemagick imap innodb ipod iproute2 ipv6 ithreads jabber jack java javascript joystick jpeg kde kontact kvm lastfm lcms libcaca libnotify libvirtd live lm_sensors lua lvm lxc lzo maildir matroska mbox mdnsresponder-compat mhash mime mjpeg mmap mmx mmxext mng modules mozdevelop mozilla mp3 mp4 msn mtp mudflap multilib mysql ncurses nepomuk network new-hpcups nfsv4 njb nls nptl nptlonly nsplugin offensive ofx ogg oggvorbis ogm openal openexr opengl openmp oscar pam parted pcap pcre pdf perl phonon php plasma plotutils png ppds pppd python qemu qt3support qt4 readline reflection rtc ruby samba sasl sdl semantic-desktop session sha512 sip slang slp sndfile snmp sox speex spell spl srt sse sse2 ssh ssl ssse3 startup-notification svg symlink sysfs tcltk tcpd theora threads tiff tk tremor udev unicode usb utempter v4l v4l2 vcd vdpau vhosts video videos vim-syntax virtualbox vorbis wav webkit wifi wmf wmp wxwindows x264 xanim xen xface xft xine xinerama xorg xosd xpm xscreensaver xsl xulrunner xv xvid xvmc yahoo zlib zpm" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="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 cgi cgid 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv nouveau" 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, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Pagano gentoo-dev 2010-09-01 11:40:51 UTC
Can you tell me your gentoolkit version and attach your package.unmask file?
Comment 2 Fabio Coatti 2010-09-01 11:47:20 UTC
Created attachment 245580 [details]
package.unmask
Comment 3 Fabio Coatti 2010-09-01 11:47:37 UTC
Sure:

calvin ~ # equery l gentoolkit
 * Searching for gentoolkit ...
[IP-] [  ] app-portage/gentoolkit-0.3.0_rc10-r1:0
Comment 4 Mike Pagano gentoo-dev 2010-09-01 12:30:55 UTC
portpeek 1.5.9.0 has RDEPEND="<app-portage/gentoolkit-0.3.0

That version will not work with your gentoolkit version

Comment 5 Fabio Coatti 2010-09-01 12:52:03 UTC
Ok, I see.. now I've to understand why this version got installed and not 2.0, then, or why I haven't got any warning about rdepend :)

Thanks.

Comment 6 Mike Pagano gentoo-dev 2010-09-01 14:11:41 UTC
I'm was wondering the same thing so I talked to portage developers. I need to set the RDEPEND as a block. Something like:

RDEPEND="!>app-portage/gentoolkit-0.2.4.6.1-r1"

[10:08] <few_> mpagano: this happens when the user updates gentoolkit alone (not world). then emerge doesn't see the deps of the installed packages.
[10:09] <zmedico> mpagano: yeah, blocker is safest. without that they need --complete-graph or -uD world to ensure all deps are satisfied.
Comment 7 Mike Pagano gentoo-dev 2010-09-01 14:29:33 UTC
Ok, it was my mistake: 0.3.0_rc10-r1 is < 0.3.0, so this: <app-portage/gentoolkit-0.3.0 was incorrect.

Fixed in portpeek 1.5.9.0-r1 ebuild.

Thanks.