Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471110 - dev-python/pyudev-0.16.1 with python-3.3 - python3.3 setup.py build -b build-3.3: ImportError: No module named 'setuptools'
Summary: dev-python/pyudev-0.16.1 with python-3.3 - python3.3 setup.py build -b build-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-23 22:51 UTC by Robert Cabrera
Modified: 2017-01-18 12:31 UTC (History)
1 user (show)

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


Attachments
pyudev-0.16.1.build.log (build.log,2.78 KB, text/plain)
2013-05-24 21:55 UTC, Robert Cabrera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cabrera 2013-05-23 22:51:40 UTC
I've noticed for a few days that python-3.3 was in the update queue. I held off on the update because my experience has been that every python update breaks something. Well I found that this is no exception. dev-python/pyudev-0.16.1 fails to emerge with the following error: * Messages for package dev-python/pyudev-0.16.1:

 * if your PORTAGE_TMPDIR is longer in length then /var/tmp/, change it to /var/tmp to ensure tests will pass
 * ERROR: dev-python/pyudev-0.16.1 failed (compile phase):
 *   Building failed with CPython 3.3 in distutils_building() function
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3699:  Called distutils_src_compile
 *   environment, line 1038:  Called python_execute_function 'distutils_building'
 *   environment, line 2093:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 * 
 * If you need support, post the output of `emerge --info '=dev-python/pyudev-0.16.1'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pyudev-0.16.1'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pyudev-0.16.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pyudev-0.16.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pyudev-0.16.1/work/pyudev-0.16.1'
 * S: '/var/tmp/portage/dev-python/pyudev-0.16.1/work/pyudev-0.16.1'

First of all my portage temp directory is at the default location '/var/tmp/portage' so I don't know why I have that output.

Reproducible: Always

Steps to Reproduce:
1. set python-3.3 as default interpreter using eselect python update
2. run python-update -v -- av (so I can gage progress and see what's rebuilt)
3. 
Actual Results:  
=dev-python/pyudev-0.16.1 fails to re-emerge with output shown above

Expected Results:  
successful emerge with new interpreter.

my emerge --info
Portage 2.2.0_alpha176 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.7.5-pf x86_64)                                                                                                      
=================================================================                                                                                                                                          
System uname: Linux-3.7.5-pf-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.2                                                                                                                 
KiB Mem:     3337744 total,    578956 free                                                                                                                                                                 
KiB Swap:    4200960 total,   4200864 free                                                                                                                                                                 
Timestamp of tree: Thu, 23 May 2013 21:15:01 +0000                                                                                                                                                         
ld GNU ld (GNU Binutils) 2.23.1                                                                                                                                                                            
app-shells/bash:          4.2_p45                                                                                                                                                                          
dev-java/java-config:     2.2.0                                                                                                                                                                            
dev-lang/python:          2.7.4, 3.2.4, 3.3.2                                                                                                                                                              
dev-util/cmake:           2.8.10.2-r2                                                                                                                                                                      
dev-util/pkgconfig:       0.28                                                                                                                                                                             
sys-apps/baselayout:      2.2                                                                                                                                                                              
sys-apps/openrc:          0.11.8                                                                                                                                                                           
sys-apps/sandbox:         2.6-r1                                                                                                                                                                           
sys-devel/autoconf:       2.13, 2.69                                                                                                                                                                       
sys-devel/automake:       1.11.6, 1.12.6, 1.13.2                                                                                                                                                           
sys-devel/binutils:       2.23.1                                                                                                                                                                           
sys-devel/gcc:            4.7.3                                                                                                                                                                            
sys-devel/gcc-config:     1.8                                                                                                                                                                              
sys-devel/libtool:        2.4.2                                                                                                                                                                            
sys-devel/make:           3.82-r4                                                                                                                                                                          
sys-kernel/linux-headers: 3.9 (virtual/os-headers)                                                                                                                                                         
sys-libs/glibc:           2.17                                                                                                                                                                             
Repositories: gentoo sunrise sabayon my_local_overlay                                                                                                                                                      
Installed sets: @nicefonts, @toolchain, @xorgupdate
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
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/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2 --with-bdeps=y --keep-going --complete-graph --load-average=1.5"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy collision-protect config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.wetzlmayr.com/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.hoobly.com/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2 -l1.5 -s"
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/sunrise /var/lib/layman/sabayon /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac aacplus aacs aalib acl acpi alsa amd64 amr avahi berkdb bidi bluetooth bluray branding bzip2 cairo cdda cddb cdio cdparanoia cdr cli consolekit cracklib crypt cups curl cvs cxx dbus declarative device-mapper dirac djvu dri dts dv dvd dvdr emboss encode exif faac fam ffmpeg firefox flac fontconfig fortran gdbm gif git gphoto2 gtk iconv idn ieee1394 imagemagick ipv6 java jbig joystick jpeg jpeg2k kde kipi lame lastfm lcms ldap libass libnotify libsamplerate live lua lzma lzo mad matroska mime mjpeg mms mmx mmxext mng modplug modules mp3 mp4 mpeg mudflap multilib musepack musicbrainz ncurses netlink nls nptl nsplugin ntp ogg openal openexr opengl openmp pam pango pcre pdf phonon plasma png policykit postproc ppds qalculate qt3support qt4 quicktime rar readline samba scanner schroedinger sdl semantic-desktop session smp sndfile sox speex spell sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink taglib tcpd telepathy theora tiff truetype twolame udev udisks unicode upower usb vcd vcdx vlm vnc vorbis vpx wavpack wicd wifi wmf wxwidgets x264 xa xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zeroconf zlib" ABI_X86="64 32" 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 author" CAMERAS="ptp2" 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 keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-24 16:09:29 UTC
 * The complete build log is located at '/var/tmp/portage/dev-python/pyudev-0.16.1/temp/build.log'.

Please attach the entire build log to this bug report.
Comment 2 Robert Cabrera 2013-05-24 21:55:26 UTC
Created attachment 349106 [details]
pyudev-0.16.1.build.log

added build.log
Comment 3 Robert Cabrera 2013-05-24 22:06:00 UTC
I think I see the issue now. The problem lies with setuptools. I just re-emerged it and got this message:

 * Messages for package dev-python/setuptools-0.6.40:

 * Building package for python3.2 only while python3.3 is active.
 * Please consider switching the active Python 3 interpreter:
 * 
 *      eselect python set --python3 python3.2
 * 
 * Please note that after switching the active Python interpreter,
 * you may need to run 'python-updater' to rebuild affected packages.
 * 
 * For more information on python.eclass compatibility, please see
 * the appropriate python-r1 User's Guide chapter [1].
 * 
 * [1] http://www.gentoo.org/proj/en/Python/python-r1/user-guide.xml#doc_chap2
>>> Auto-cleaning packages...

It seems obvious now that python-3.3 isn't ready yet. There are probably other packages that aren't compatible with it too. I'm going to mask and uninstall it. I run a system that already has quite a few cutting edge "testing" apps, compilers, and libraries. This is just an extra headache. I'll just wait until 3.3 is ready for prime-time. TIA
Comment 4 Mike Gilbert gentoo-dev 2013-05-26 16:22:45 UTC
You are just running into an interaction between the old python.eclass and the new python-r1.eclass.

You need to update PYTHON_TARGETS in make.conf to include python3_3. For example:

PYTHON_TARGETS="python2_7 python3_2 python3_3"

This will cause setuptools (a python-r1 based ebuild) to be installed for all 3 python versions.

Once pyudev is migrated to python-r1.eclass, this will be enforced with a dependency which we cannot currently express with python.eclass.
Comment 5 Pacho Ramos gentoo-dev 2017-01-18 12:31:10 UTC
0.20.0 should have this fixed