Emerging sys-process/iotop-0.3.2-r1 (which is currently stable) fails as below: ~ # emerge -av1 sys-process/iotop These are the packages that would be merged, in order: Calculating dependencies... done! /usr/lib/python2.6/site-packages/pycrypto-2.0.1-py2.6-linux-i686.egg/Crypto/Hash/SHA256.py:3: UserWarning: Module site was already imported from /usr/lib/python2.6/site.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path [ebuild U ] sys-process/iotop-0.3.2-r1 [0.2.1] 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Emerging (1 of 1) sys-process/iotop-0.3.2-r1 /usr/lib/python2.6/site-packages/pycrypto-2.0.1-py2.6-linux-i686.egg/Crypto/Hash/SHA256.py:3: UserWarning: Module site was already imported from /usr/lib/python2.6/site.pyo, but /usr/lib/python2.6/site-packages is being added to sys.path * iotop-0.3.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * CPV: sys-process/iotop-0.3.2-r1 * REPO: gentoo * USE: elibc_glibc kernel_linux userland_GNU x86 * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.31-gentoo-r6-0 * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking iotop-0.3.2.tar.bz2 to /var/tmp/portage/sys-process/iotop-0.3.2-r1/work >>> Source unpacked in /var/tmp/portage/sys-process/iotop-0.3.2-r1/work >>> Preparing source in /var/tmp/portage/sys-process/iotop-0.3.2-r1/work/iotop-0.3.2 ... * Applying iotop-0.3.2-rm-bundled-setuptools.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-process/iotop-0.3.2-r1/work/iotop-0.3.2 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-process/iotop-0.3.2-r1/work/iotop-0.3.2 ... python2.6 setup.py build /usr/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/sdist.py:4: UserWarning: Module site was already imported from /usr/lib/python2.6/site.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path Traceback (most recent call last): File "setup.py", line 21, in <module> license='GPL' File "/usr/lib/python2.6/distutils/core.py", line 113, in setup _setup_distribution = dist = klass(attrs) File "/usr/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py", line 223, in __init__ File "/usr/lib/python2.6/distutils/dist.py", line 270, in __init__ self.finalize_options() File "/usr/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py", line 256, in finalize_options File "/usr/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 1918, in load while parts and parts[-1]=='00000000': ImportError: <module 'setuptools.dist' from '/usr/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py'> has no 'check_packages' attribute * ERROR: sys-process/iotop-0.3.2-r1 failed: * Building failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 4696: Called distutils_src_compile * environment, line 1254: Called die * The specific snippet of code: * "$(PYTHON -A)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed"; * * If you need support, post the output of 'emerge --info =sys-process/iotop-0.3.2-r1', * the complete build log and the output of 'emerge -pqv =sys-process/iotop-0.3.2-r1'. * The complete build log is located at '/var/tmp/portage/sys-process/iotop-0.3.2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-process/iotop-0.3.2-r1/temp/environment'. * S: '/var/tmp/portage/sys-process/iotop-0.3.2-r1/work/iotop-0.3.2' >>> Failed to emerge sys-process/iotop-0.3.2-r1, Log file: >>> '/var/tmp/portage/sys-process/iotop-0.3.2-r1/temp/build.log' ~ # emerge --info Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6-0 i686) ================================================================= System uname: Linux-2.6.31-gentoo-r6-0-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-1.12.13 Timestamp of tree: Wed, 03 Feb 2010 10:30:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4 dev-python/pycrypto: 2.1.0_beta1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.channelx.biz/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ " LANG="en_US.UTF8" LC_ALL="en_US.UTF8" LDFLAGS="-Wl,-O1" LINGUAS="en en_US" MAKEOPTS="-j3" 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/haskell /usr/local/portage/layman/dotnet /usr/local/portage/layman/java-overlay /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa avahi bash-completion berkdb bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr encode evo exif fam firefox flac fortran gdbm gif gnome gphoto gpm gtk gtk2 hal iconv ipod ipv6 java6 jpeg libnotify mad mbox mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd pulseaudio python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora thunar tiff truetype unicode usb vorbis wifi win32codecs x264 x86 xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
I also re-emerged setuptools and tried again, as suggested in http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=292379 just in case, but the problem persists.
I should also add I have dev-python/setuptools-0.6.10 installed, which is currently also stable (on x86).
Sorry, works for me and the arch testers (which is why it was marked stable). Let me know if you find anything and I can fix it. Until then, don't expect much action.
Downgrading setuptools to 0.6.8-r1 makes iotop install in my setup, with 0.6.10 I see the same error as reported. The iotop-0.3.2-r1.ebuild lacks inherit eutils Adding eutils to the inherit line and iotop installs nicely with setuptools-0.6.10
(In reply to comment #4) > Downgrading setuptools to 0.6.8-r1 makes iotop install in my setup, with 0.6.10 > I see the same error as reported. > > The iotop-0.3.2-r1.ebuild lacks > inherit eutils > Adding eutils to the inherit line and iotop installs nicely with > setuptools-0.6.10 > Interesting, it is an obvious omission to the ebuild, but the distutils.eclass inherits eutils so epatch() is defined. (Not the correct way mind you). I would still like to find out why this happens to a few people only. I'll be able to commit this "fix" later today.
Sorry, I haven't had a chance to look into this further, though it looks like about.gentoobugs in comment #4 did. For what it's worth, I see something very similar emerging net-zope/zope-interface-3.5.3.
iotop seems to bundle a setuptools egg (setuptools-0.6c9-py2.4.egg), which seems to be picked up for some reason. Removing it makes the build step pass.
The following patch does the trick: --- setup.py.orig 2010-02-05 11:19:49.000000000 +0100 +++ setup.py 2010-02-05 11:20:00.000000000 +0100 @@ -2,7 +2,6 @@ import sys -sys.path.insert(0, 'setuptools-0.6c9-py2.4.egg') from setuptools import setup, find_packages from iotop.version import VERSION
Oh, the patch is already there, but the ebuild is missing an "inherit eutils".
ah, good. it was not my fault! :) Someone changed the distutils.eclass to no longer inherit eutils. http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/distutils.eclass?r1=1.69&r2=1.70 fixed now and verified I wasn't going crazy. Thanks and sorry for the trouble.
*** Bug 303601 has been marked as a duplicate of this bug. ***
Has this fix been committed? I just completed an `emerge --sync` and `emerge -u world` but the problem persists. Is there anything else I need to do at my end in order to resolve this issue?
(In reply to comment #12) > Has this fix been committed? I just completed an `emerge --sync` and `emerge -u > world` but the problem persists. Is there anything else I need to do at my end > in order to resolve this issue? > It worked for me after I synced and updated isotop. Do you have more information?
Actually, it works for me now, too. It appears I was *also* suffering from a different issue. This warning in my original submission was the real culprit: /usr/lib/python2.6/site-packages/pycrypto-2.0.1-py2.6-linux-i686.egg/Crypto/Hash/SHA256.py:3: UserWarning: Module site was already imported from /usr/lib/python2.6/site.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path The root cause was my /usr/lib/python2.6/site-packages/easy-install.pth containing this line: ./setuptools-0.6c9-py2.6.egg even though setuptools-0.6c9 is no longer installed. I have 0.6.10 installed now. Removing this line caused the warnings to go away, and iotop (and zope.interface) to emerge cleanly. I'm just curious how that setuptools-0.6c9 entry got into my easy-install.pth file in the first place...