FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 08-14-2012, 07:55 AM
Cinder
 
Default emerge dev-python/python-dateutil-2.1 failed (compile phase)

Thank you kindly Alex, running python-updater did the trick.

--- i.am.the.memory@gmail.com wrote:

From: Alex <i.am.the.memory@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] emerge dev-python/python-dateutil-2.1 failed (compile phase)
Date: Tue, 14 Aug 2012 03:22:40 -0400

On 08/14/2012 02:49 AM, Cinder wrote:
> I'm at a loss, as to how to solve this problem. Any advice would be
> greatly appreciated
>
> # emerge --info '=dev-python/python-dateutil-2.1'
> Portage 2.1.10.65 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.3.8-gentoo x86_64)
> ================================================== ===============
> System Settings
> ================================================== ===============
> System uname: Linux-3.3.8-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.1
> Timestamp of tree: Fri, 20 Jul 2012 16:15:01 +0000
> app-shells/bash: 4.2_p20
> dev-java/java-config: 2.1.11-r3
> dev-lang/python: 2.7.3-r2, 3.2.3
> dev-util/cmake: 2.8.7-r5
> dev-util/pkgconfig: 0.26
> sys-apps/baselayout: 2.1-r1
> sys-apps/openrc: 0.9.8.4
> sys-apps/sandbox: 2.5
> sys-devel/autoconf: 2.13, 2.68
> sys-devel/automake: 1.11.1
> sys-devel/binutils: 2.21.1-r1
> sys-devel/gcc: 4.5.3-r2
> sys-devel/gcc-config: 1.6
> sys-devel/libtool: 2.4-r1
> sys-devel/make: 3.82-r1
> sys-kernel/linux-headers: 3.4-r1 (virtual/os-headers)
> sys-libs/glibc: 2.14.1-r3
> Repositories: gentoo
> ACCEPT_KEYWORDS="amd64"
> ACCEPT_LICENSE="* -@EULA"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-march=core2 -O2 -pipe -msse4.1"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
> CXXFLAGS="-march=core2 -O2 -pipe -msse4.1"
> DISTDIR="/usr/portage/distfiles"
> FCFLAGS="-O2 -pipe"
> FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
> FFLAGS="-O2 -pipe"
> GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://gentoo.channelx.biz/ http://gentoo.gg3.net/ http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
> LANG="en_US.UTF-8"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> LINGUAS="en"
> MAKEOPTS="-j3"
> 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=""
> SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
> USE="X a52 aac acl acpi alsa amd64 audiofile berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt css cups cxx dbus dga directfb djvu dri dts dvd dvdr emboss encode enscript exif fam fbcon ffmpeg fftw firefox flac fortran gdbm gif gpm gtk hddtemp iconv ipv6 jack joystick jpeg ladspa lame lash lcms ldap libnotify libsamplerate lm_sensors mad matroska mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib musicbrainz ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sasl scanner sdl session smp sound spell sse sse2 sse3 ssl startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb v4l vim vorbis wifi wxwidgets x264 xcb xcomposite xml xorg xscreensaver xv xvid xvmc zlib" 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="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="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="efi-64" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau v4l" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
>
>
> #emerge -pqv '=dev-python/python-dateutil-2.1'
> [ebuild N ] dev-python/python-dateutil-2.1 USE="-examples"
>
>
> # cat /var/tmp/portage/dev-python/python-dateutil-2.1/temp/build.log
> * Package: dev-python/python-dateutil-2.1
> * Repository: gentoo
> * Maintainer: python@gentoo.org
> * USE: amd64 elibc_glibc kernel_linux multilib userland_GNU
> * FEATURES: sandbox userpriv
>>>> Unpacking source...
>>>> Unpacking python-dateutil-2.1.tar.gz to /var/tmp/portage/dev-python/python-dateutil-2.1/work
>>>> Source unpacked in /var/tmp/portage/dev-python/python-dateutil-2.1/work
>>>> Preparing source in /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1 ...
> * Applying python-dateutil-2.1-open-utf-8.patch ... [ ok ]
>>>> Source prepared.
>>>> Configuring source in /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1 ...
>>>> Source configured.
>>>> Compiling source in /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1 ...
> * Building of dev-python/python-dateutil-2.1 with CPython 2.7...
> python2.7 setup.py build -b build-2.7
> Traceback (most recent call last):
> File "setup.py", line 8, in <module>
> from setuptools import setup
> ImportError: No module named setuptools
> * ERROR: dev-python/python-dateutil-2.1 failed (compile phase):
> * Building failed with CPython 2.7 in distutils_building() function
> *
> * Call stack:
> * ebuild.sh, line 85: Called src_compile
> * environment, line 5022: Called distutils_src_compile
> * environment, line 1185: Called python_execute_function 'distutils_building'
> * environment, line 3406: Called die
> * The specific snippet of code:
> * die "${failure_message}";
> *
> * If you need support, post the output of `emerge --info '=dev-python/python-dateutil-2.1'`,
> * the complete build log and the output of `emerge -pqv '=dev-python/python-dateutil-2.1'`.
> * The complete build log is located at '/var/log/portage/dev-pythonython-dateutil-2.1:20120810-122310.log'.
> * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/python-dateutil-2.1/temp/build.log'.
> * The ebuild environment file is located at '/var/tmp/portage/dev-python/python-dateutil-2.1/temp/environment'.
> * Working directory: '/var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1'
> * S: '/var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1'
> # cat /var/tmp/portage/dev-python/python-dateutil-2.1/temp/build.log
>
> * Package: dev-python/python-dateutil-2.1
> * Repository: gentoo
> * Maintainer: python@gentoo.org
> * USE: amd64 elibc_glibc kernel_linux multilib userland_GNU
> * FEATURES: sandbox userpriv
>>>> Unpacking source...
>>>> Unpacking python-dateutil-2.1.tar.gz to /var/tmp/portage/dev-python/python-dateutil-2.1/work
>>>> Source unpacked in /var/tmp/portage/dev-python/python-dateutil-2.1/work
>>>> Preparing source in /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1 ...
> * Applying python-dateutil-2.1-open-utf-8.patch ... [ ok ]
>>>> Source prepared.
>>>> Configuring source in /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1 ...
>>>> Source configured.
>>>> Compiling source in /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1 ...
> * Building of dev-python/python-dateutil-2.1 with CPython 2.7...
> python2.7 setup.py build -b build-2.7
> Traceback (most recent call last):
> File "setup.py", line 8, in <module>
> from setuptools import setup
> ImportError: No module named setuptools
> * ERROR: dev-python/python-dateutil-2.1 failed (compile phase):
> * Building failed with CPython 2.7 in distutils_building() function
> *
> * Call stack:
> * ebuild.sh, line 85: Called src_compile
> * environment, line 5022: Called distutils_src_compile
> * environment, line 1185: Called python_execute_function 'distutils_building'
> * environment, line 3406: Called die
> * The specific snippet of code:
> * die "${failure_message}";
> *
> * If you need support, post the output of `emerge --info '=dev-python/python-dateutil-2.1'`,
> * the complete build log and the output of `emerge -pqv '=dev-python/python-dateutil-2.1'`.
> * The complete build log is located at '/var/log/portage/dev-pythonython-dateutil-2.1:20120810-122310.log'.
> * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/python-dateutil-2.1/temp/build.log'.
> * The ebuild environment file is located at '/var/tmp/portage/dev-python/python-dateutil-2.1/temp/environment'.
> * Working directory: '/var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1'
> * S: '/var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1'
>
> __________________________________________________ ___________
> Get your FREE, LinuxWaves.com Email Now! --> http://www.LinuxWaves.com
> Join Linux Discussions! --> http://Community.LinuxWaves.com

Have you tried running python-updater and/or revdep-rebuild? If I'm
correct, when Python is updated, it doesn't always have all of the
modules for the right Python version, or associated with the current
default version, or something like that.





__________________________________________________ ___________
Get your FREE, LinuxWaves.com Email Now! --> http://www.LinuxWaves.com
Join Linux Discussions! --> http://Community.LinuxWaves.com
 
Old 08-14-2012, 08:13 AM
Hinnerk van Bruinehsen
 
Default emerge dev-python/python-dateutil-2.1 failed (compile phase)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14.08.2012 09:55, Cinder wrote:
<SNIP>
>>>>> Unpacking source... Unpacking python-dateutil-2.1.tar.gz to
>>>>> /var/tmp/portage/dev-python/python-dateutil-2.1/work Source
>>>>> unpacked in
>>>>> /var/tmp/portage/dev-python/python-dateutil-2.1/work
>>>>> Preparing source in
>>>>> /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1
>>>>> ...
>> * Applying python-dateutil-2.1-open-utf-8.patch ...
>> [ ok ]
>>>>> Source prepared. Configuring source in
>>>>> /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1
>>>>> ... Source configured. Compiling source in
>>>>> /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1
>>>>> ...
>> * Building of dev-python/python-dateutil-2.1 with CPython 2.7...
>> python2.7 setup.py build -b build-2.7 Traceback (most recent
>> call last): File "setup.py", line 8, in <module> from setuptools
>> import setup ImportError: No module named setuptools * ERROR:
>> dev-python/python-dateutil-2.1 failed (compile phase): *
>> Building failed with CPython 2.7 in distutils_building() function
>> * * Call stack: * ebuild.sh, line 85: Called src_compile
>> * environment, line 5022: Called distutils_src_compile *
>> environment, line 1185: Called python_execute_function
>> 'distutils_building' * environment, line 3406: Called die *
>> The specific snippet of code: * die
>> "${failure_message}"; *
<SNIP>

Hi,

since the error is "ImportError: No module named setuptools" you
should make sure, that dev-python/setuptools is installed (for the
version of python you are using).
If it's installed you could try to run python-updater.

WKR
Hinnerk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQKgiPAAoJEJwwOFaNFkYcHykIAItcWoVhxf hpK350whS81hdl
UwjMxJQaHEIcSnwct6bhdueFIRT36PiXiNPir+X7w4Bs1lk2ZX UHH88k62H7wSNF
EGsBcXJl1hAhqVLOu06Vc6IHp/gpsB6PPHceFqQ7tl7jWMDvVVhmEvfQCg6st1Js
yuqwQFfwHrSAifByJS5jwclPo7H3HptMtIFw0MnFg3/JkYJGG1rv6avhjK+zTf71
1dxIIJCroGaGz+s5M8XYpXhcOr7B1U+rWPQImh2rjJM+wML2Kd MEH9SzDqQJioKh
XoaVSpG2fz4dXahv1FFJ/Qjq4VRV0UfKQIlMD1Qglk98j0mSly9mlJR+S/p4WaY=
=1x0r
-----END PGP SIGNATURE-----
 
Old 08-14-2012, 08:17 AM
Hinnerk van Bruinehsen
 
Default emerge dev-python/python-dateutil-2.1 failed (compile phase)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14.08.2012 10:13, Hinnerk van Bruinehsen wrote:
> On 14.08.2012 09:55, Cinder wrote: <SNIP>
>>>>>> Unpacking source... Unpacking python-dateutil-2.1.tar.gz
>>>>>> to /var/tmp/portage/dev-python/python-dateutil-2.1/work
>>>>>> Source unpacked in
>>>>>> /var/tmp/portage/dev-python/python-dateutil-2.1/work
>>>>>> Preparing source in
>>>>>> /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1
>>>>>>
>>>>>>
...
>>> * Applying python-dateutil-2.1-open-utf-8.patch ... [ ok ]
>>>>>> Source prepared. Configuring source in
>>>>>> /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1
>>>>>>
>>>>>>
... Source configured. Compiling source in
>>>>>> /var/tmp/portage/dev-python/python-dateutil-2.1/work/python-dateutil-2.1
>>>>>>
>>>>>>
...
>>> * Building of dev-python/python-dateutil-2.1 with CPython
>>> 2.7... python2.7 setup.py build -b build-2.7 Traceback (most
>>> recent call last): File "setup.py", line 8, in <module> from
>>> setuptools import setup ImportError: No module named setuptools
>>> * ERROR: dev-python/python-dateutil-2.1 failed (compile phase):
>>> * Building failed with CPython 2.7 in distutils_building()
>>> function * * Call stack: * ebuild.sh, line 85: Called
>>> src_compile * environment, line 5022: Called
>>> distutils_src_compile * environment, line 1185: Called
>>> python_execute_function 'distutils_building' * environment,
>>> line 3406: Called die * The specific snippet of code: *
>>> die "${failure_message}"; *
> <SNIP>
>
> Hi,
>
> since the error is "ImportError: No module named setuptools" you
> should make sure, that dev-python/setuptools is installed (for the
> version of python you are using). If it's installed you could try
> to run python-updater.
>
> WKR Hinnerk
>

I read your question on my mobile phone about an hour ago and didn't
read again before posting.
Sorry for spamming the list!

Hinnerk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQKgmaAAoJEJwwOFaNFkYcgnwH/0Jtv6LDrgX/kSKzmScHnL6A
5SVo6V7lmItSQrxmKox0DDdhDSoppo+n6xiWQig9YCFX2rbNad rW/hT/eqRRb13p
iVUArA7wVuZPSQMLJgp2BlEDz8LJRieruzRj9lZgeMP6rZPsIz NAVW/NwGDqFH3z
JYGMH5OrVCH6JGN1p5nRzXO5D7K3MddiMJPKbPctMPOJdvU8XN 1Q5EVsZnrilG2x
8Rb8WreGAjTTa1f0yttdTbQ8Lb5yjqGMJ6fZsb/fbXAwZoNhIwsnPwW4/SiSY34z
CXN42t7pI3rc5mNM9PSDY9b5Fo2bAHoEVnTP/PFEtf110H9qrdBnZB6m3AApRzM=
=R0r5
-----END PGP SIGNATURE-----
 

Thread Tools




All times are GMT. The time now is 10:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org