Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can't emerge python packages with python-r1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
colsandurz
n00b
n00b


Joined: 01 May 2009
Posts: 22

PostPosted: Fri Feb 15, 2013 3:48 am    Post subject: [SOLVED] Can't emerge python packages with python-r1 Reply with quote

I've recently rebult portage, updated my profile to 13 and sync'ed (as of 15 minutes before this post). I can't seem to emerge several python packages, I get similar error to the one below:

With /etc/portage/package.use set like this

Code:
dev-python/pandas -examples -R -excel -test -doc python_targets_python2_7 -python_targets_python2_6


I get

Code:
# emerge -v dev-python/pandas

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy "dev-python/python-dateutil[python_targets_python2_6(-)?,python_targets_python2_7(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-)]".
!!! One of the following packages is required to complete your request:
- dev-python/pandas-0.10.1::gentoo (Change USE: -python_targets_python2_7)
(dependency required by "dev-python/pandas-0.10.1" [ebuil


If I change my /etc/portage/package.use to
Code:
dev-python/pandas -examples -R -excel -test -doc -python_targets_python2_7 python_targets_python2_6


I, unsurprisingly, get

Code:

emerge -v dev-python/pandas                                                                                                                         

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy "dev-python/python-dateutil[python_targets_python2_6(-)?,python_targets_python2_7(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-)]".
!!! One of the following packages is required to complete your request:
- dev-python/pandas-0.10.1::gentoo (Change USE: -python_targets_python2_6)
(dependency required by "dev-python/pandas-0.10.1" [ebuild])
(dependency required by "dev-python/pandas" [argument])


OK, I try this
Code:
dev-python/pandas -examples -R -excel -test -doc -python_targets_python2_7 -python_targets_python2_6


And get

Code:

# emerge -v dev-python/pandas                                                                                                                         

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] dev-python/pandas-0.10.1  USE="-R -doc -examples -excel {-test}" PYTHON_TARGETS="-python2_6 -python2_7" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-python/pandas-0.10.1
 * pandas-0.10.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking pandas-0.10.1.tar.gz to /var/tmp/portage/dev-python/pandas-0.10.1/work
>>> Source unpacked in /var/tmp/portage/dev-python/pandas-0.10.1/work
>>> Preparing source in /var/tmp/portage/dev-python/pandas-0.10.1/work/pandas-0.10.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pandas-0.10.1/work/pandas-0.10.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/pandas-0.10.1/work/pandas-0.10.1 ...
 * No Python implementation selected for the build. Please add one
 * of the following values to your PYTHON_TARGETS (in make.conf):
 *
 * python2_6 python2_7

 * ERROR: dev-python/pandas-0.10.1 failed (compile phase):
 *   No supported Python implementation in PYTHON_TARGETS.
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3205:  Called distutils-r1_src_compile
 *   environment, line  974:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  336:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2962:  Called _python_validate_useflags
 *   environment, line  756:  Called die
 * The specific snippet of code:
 *       die "No supported Python implementation in PYTHON_TARGETS."

 * ERROR: dev-python/pandas-0.10.1 failed (compile phase):
 *   No supported Python implementation in PYTHON_TARGETS.
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3205:  Called distutils-r1_src_compile
 *   environment, line  974:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  336:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2962:  Called _python_validate_useflags
 *   environment, line  756:  Called die
 * The specific snippet of code:
 *       die "No supported Python implementation in PYTHON_TARGETS."
 *
 * If you need support, post the output of `emerge --info '=dev-python/pandas-0.10.1'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pandas-0.10.1'`.
/usr/lib64/portage/bin/isolated-functions.sh: line 215: wait: `No supported Python implementation in PYTHON_TARGETS.': not a pid or valid job spec
 * The complete build log is located at '/var/log/portage/elog/dev-python:pandas-0.10.1:20130215-033714.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pandas-0.10.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pandas-0.10.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pandas-0.10.1/work/pandas-0.10.1'
 * S: '/var/tmp/portage/dev-python/pandas-0.10.1/work/pandas-0.10.1'

>>> Failed to emerge dev-python/pandas-0.10.1, Log file:

>>>  '/var/log/portage/elog/dev-python:pandas-0.10.1:20130215-033714.log'

Which makes sense.

Here's my emerge --info

Code:

# emerge --info
Portage 2.1.11.50 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.4.9-gentoo x86_64)
=================================================================
System uname: Linux-3.4.9-gentoo-x86_64-Intel-R-_Core-TM-_i3-2350M_CPU_@_2.30GHz-with-gentoo-2.1
KiB Mem:     3931348 total,    811380 free
KiB Swap:    4095996 total,   3606224 free
Timestamp of tree: Fri, 15 Feb 2013 03:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo x-portage gamerlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /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/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://mirrors.rit.edu/gentoo/ ftp://ftp.lug.udel.edu/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ rsync://rsync.gtlib.gatech.edu/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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="/usr/local/portage /var/lib/layman/gamerlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb blas branding bzip2 cairo cdda cli consolekit cracklib crypt cups cxx dbus declarative dia doc dri dts dvdr emboss encode examples exif extensions extra fam ffmpeg fftw firefox flac fontconfig fortran fuse gdbm gif git gnutls gpm gtk hdaps iconv ipv6 java jpeg json kde kdrive kipi kpathsea lapack latex lcms ldap libnotify mad matroska minizip mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin nspluginwrapper ntfs ntfsprogs ogg opengl openmp pam pango pcre pdf pdflib phonon plasma png policykit ppds private-headers pulseaudio python qt3support qt4 readline sdl semantic-desktop session spell sqlite sse sse2 ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upnp upower usb vim vim-pager vim-syntax vorbis webkit wifi wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvfb xvid zlib" ABI_X86="64" 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="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="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" INPUT_DEVICES="keyboard mouse synaptics" 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_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" 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"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



And for good measure my make.conf

Code:

cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="ffmpeg kpathsea extra ntfs ntfsprogs wifi java latex -bindist hdaps nsplugin nspluginwrapper multilib vim-syntax vim-pager fontconfig doc matroska ogg theora X bas
h-completion dri kdrive sqlite truetype python mmx sse sse2 alsa qt4  dia extensions gnutls fuse vim examples webkit threads pdf pdflib pulseaudio udev cdda fftw lapack
 blas -gnome -dvd -cdr -debug -bluetooth -emacs -xemacs -hal private-headers git consolekit dbus policykit kde xvfb -aqua json minizip upnp"

MAKEOPTS="-j1"

ACCEPT_LICENSE="*"

EMERGE_DEFAULT_OPTS="--autounmask=n"

LINGUAS="en"

PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/gamerlay/"

INPUT_DEVICES="keyboard mouse synaptics"

PYTHON_TARGETS="python2_7"
PYTHON_SINGLE_TARGET="python2_7"
USE_PYTHON="2.7"

PORTAGE_ELOG_SYSTEM="save"
PORTAGE_ELOG_CLASSES="warn info error log"
PORT_LOGDIR="/var/log/portage/elog/"

#SANE_BACKENDS="-abaton -agfafocus -apple -artec -artec_eplus48u -as6e -avision -bh -canon -canon630u -canon_dr -canon_pp -cardscan -coolscan -coolscan2 -coolscan3 -dc210 -dc240 -dc25 -dell1600n_net -dmc -epjitsu -epson -epson2 fujitsu -genesys -gt68xx -hp -hp3500 -hp3900 -hp4200 -hp5400 -hp5590 -hpljm1005 -hpsj5s -hs2p -ibm -kodak -kvs1025 -kvs20xx -leo -lexmark -ma1509 -magicolor -matsushita -microtek -microtek2 -mustek -mustek_pp -mustek_usb -nec -net -niash -p5 -pie -pixma -plustek -plustek_pp -qcam -ricoh -rts8891 -s9036 -sceptre -sharp -sm3600 -sm3840 -snapscan -sp15c -st400 -stv680 -tamarack -teco1 -teco2 -teco3 -test -u12 -umax -umax1220u -umax_pp -xerox_mfp"

VIDEO_CARDS="intel"

GENTOO_MIRRORS="rsync://mirrors.rit.edu/gentoo/ ftp://ftp.lug.udel.edu/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ rsync://rsync.gtlib.gatech.edu/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/"
emerge -av dev-python/pandas

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy "dev-python/python-dateutil[python_targets_python2_6(-)?,python_targets_python2_7(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-)]".
!!! One of the following packages is required to complete your request:
- dev-python/pandas-0.10.1::gentoo (Change USE: -python_targets_python2_7)
(dependency required by "dev-python/pandas-0.10.1" [ebuild])
(dependency required by "dev-python/pandas" [argument])


I've tried removing the three python_targets lines but get the same error.

I'm set to python 2.7
Code:

# eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.2

I tried setting it to 3.2 and then back to 2.7 just in case with no luck

This is my first encounter with PYTHON_TARGETS and I don't think I really know what's going on...


Last edited by colsandurz on Mon Mar 04, 2013 12:20 am; edited 1 time in total
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 218
Location: Detroit, MI, USA

PostPosted: Sat Feb 16, 2013 4:35 pm    Post subject: Reply with quote

Try adding dev-python/python-dateutil to package.keywords -- the stable version does not export the correct use flags.
Back to top
View user's profile Send private message
colsandurz
n00b
n00b


Joined: 01 May 2009
Posts: 22

PostPosted: Sun Feb 17, 2013 5:28 pm    Post subject: Reply with quote

Yes, that's what I wound up doing along with a about a dozen or so other python packages:

Code:
dev-python/python-dateutil
dev-python/pytz
dev-python/six
dev-python/decorator
dev-python/wxpython
dev-python/imaging
dev-python/numpy
dev-python/pygtk
dev-python/pycairo
dev-python/pygobject
dev-python/xlwt
dev-python/pyopengl
www-servers/tornado
dev-python/matplotlib
dev-python/pyzmq
dev-python/pexpect


Are there problems with a lot python packages not aving the right USE flags? I haven't heard of anyone else having this problem
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 218
Location: Detroit, MI, USA

PostPosted: Sun Feb 17, 2013 5:52 pm    Post subject: Reply with quote

It's only an issue if you mix stable and unstable packages; many of the python-r1 packages have not been stabilized.

Packages using the old python eclass did not export the python_targets use flag.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum