I am confused about this one and still wonder if it is something specific about my install. ------------------------------------------------------------------------------ eselect python set python2.6; emerge -1 dev-python/pylint works. ------------------------------------------------------------------------------ eselect python set python2.7; emerge -1 dev-python/pylint results in : [...] AttributeError: Distribution instance has no attribute 'namespace_packages' at python setup install phase Reproducible: Always Steps to Reproduce: eselect python set python2.7; emerge -1 dev-python/pylint Actual Results: eselect python set python2.7; emerge -1 dev-python/pylint results in : running install_lib Traceback (most recent call last): File "setup.py", line 189, in <module> install() File "setup.py", line 185, in install **kwargs File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib64/python2.7/distutils/command/install.py", line 575, in run self.run_command(cmd_name) File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 122, in run install_lib.install_lib.run(self) File "/usr/lib64/python2.7/site-packages/setuptools/command/install_lib.py", line 21, in run outfiles = self.install() File "/usr/lib64/python2.7/distutils/command/install_lib.py", line 115, in install outfiles = self.copy_tree(self.build_dir, self.install_dir) File "/usr/lib64/python2.7/site-packages/setuptools/command/install_lib.py", line 47, in copy_tree exclude = self.get_exclusions() File "/usr/lib64/python2.7/site-packages/setuptools/command/install_lib.py", line 28, in get_exclusions nsp = self.distribution.namespace_packages AttributeError: Distribution instance has no attribute 'namespace_packages' Expected Results: it should merge # emerge --info Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/kde, gcc-4.7.2, glibc-2.16.0, 3.6.6-gentoo x86_64) ================================================================= System uname: Linux-3.6.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-2620M_CPU_@_2.70GHz-with-gentoo-2.2 Timestamp of tree: Wed, 07 Nov 2012 18:15:01 +0000 ld GNU ld (GNU Binutils) 2.23 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.2_p39 dev-java/java-config: 2.1.12 dev-lang/python: 2.6.8, 2.7.3-r2, 3.2.3-r1 dev-util/cmake: 2.8.9-r1 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.4 sys-apps/sandbox: 2.6 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.11.6, 1.12.4 sys-devel/binutils: 2.23 sys-devel/gcc: 4.7.2 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.6 (virtual/os-headers) sys-libs/glibc: 2.16.0 Repositories: gentoo zugaina gbin plab ikelos sunrise pentoo sabayon sabayon-distro mv kde ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -flto" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe -flto" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://gentoo.gossamerhost.com ftp://gentoo.mirrors.tds.net/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-flto" LINGUAS="en en_US" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/zugaina /var/lib/layman/gbin-overlay /var/lib/layman/plab /var/lib/layman/ikelos /var/lib/layman/sunrise /var/lib/layman/pentoo /var/lib/layman/sabayon /var/lib/layman/sabayon-distro /var/lib/layman/mv /var/lib/layman/kde" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X Xaw3d a52 aac aacplus aalib acl acpi alsa amd64 aotuv ares asf avahi avx berkdb bluetooth branding bzip2 cairo cdaudio cdda cdr cjk cli consolekit cracklib crypt cups cxx dbus declarative directfb divx4linux dri dts dv dvd dvdr dvdread emboss emul-linux-x86 encode exif fam fbcon fbsplash ffmpeg firefox flac fortran freetype gcj gd gdbm geoip gif glitz go gpm gtk gtk2 htmlhandbook http i8x0 iconv icu idn imagemagick immqt-bc jack java java6 javascript jfs joystick jpeg jpeg2k kde kdepim kdexdeltas kipi laptop lcms libcaca lzma m17n-lib mad midi mmap mmx mng modplug modules mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses nls nptl nsplugin ntfs obex ogg oggvorbis openexr opengl openmp pam pango pch pcmcia pcre pdf phonon plasma png policykit postgres ppds pppd python python3 qt3 qt3support qt4 rdesktop readline reiserfs samba sasl scanner sdl semantic-desktop session socks5 speex spell sqlite sse sse2 sse3 ssl ssse3 startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb usepackagedmakefiles v4l v4l2 vaapi vcd vhosts vim-syntax vorbis wavpack wifi wmf wxwidgets x264 xcb xcomposite xine xinerama xpm xv xvid xvmc zeroconf zlib zsh-completion" ALSA_CARDS="hda-intel" 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="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7 python3_2 pypy1_9" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
I am confused too, it builds fine for me. As a formality, could you attach the full build log, and `emerge '-pv' pylint setuptools python`?
I'm not quite so confused. 'namespace_packages' has a familiar ring. Please paste / post output of $ layman -l
⚫ sal ~ # layman -l * gbin-overlay [Git ] (git@github.com:gbin/gbin-overlay.git ) * ikelos [Git ] (git://git.overlays.gentoo.org/dev/ikelos.git ) * kde [Git ] (git://git.overlays.gentoo.org/proj/kde.git ) * mv [Git ] (git://git.overlays.gentoo.org/user/mv.git ) * pentoo [Subversion] (https://pentoo.googlecode.com/svn/portage/trunk/ ) * plab [Git ] (git://git.overlays.gentoo.org/user/plab.git ) * sabayon [Git ] (git://git.sabayon.org/projects/overlays/for-gentoo.git ) * sabayon-distro [Git ] (git://git.sabayon.org/projects/overlays/sabayon.git ) * sunrise [Git ] (git://git.overlays.gentoo.org/proj/sunrise-reviewed.git ) * zugaina [Rsync ] (rsync://gentoo.zugaina.org/zugaina-portage )
I found a "solution" to this : for any package with this error (AttributeError: Distribution instance has no attribute 'namespace_packages') 1. unmerge setuptools 2. modify the package in my private overlay and remove the setuptools dependency 3. emerge the package successfully 4. reemerge setuptools which is a real dependency for other packages I dichotomized this problem by doing a "python setup.py" build directly from the source package in a virtualenv that worked correctly and got a usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'namespace_packages' warnings.warn(msg) for the same source tree under my gentoo python environment. I hope it will help you finding what is really going on.
python2.6 is no longer supported and pylint in the tree def works with python2.7