Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476632 - =sci-libs/scipy-0.12.0 - Does not emerge with Python3.
Summary: =sci-libs/scipy-0.12.0 - Does not emerge with Python3.
Status: RESOLVED TEST-REQUEST
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-07-12 11:21 UTC by Johannes Bauer
Modified: 2013-09-01 13:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Bauer 2013-07-12 11:21:02 UTC
I've just now tried to upgrade my scipy installation form 0.9 to 0.12 because I need Python3 support with scipy (and actually only Python3 support, I can completely disregard 2.x). This doesn't work however:

emerge: there are no ebuilds built with USE flags to satisfy "virtual/python-imaging[python_targets_python2_5(-)?,python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,-python_single_target_python2_5(-),-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-)]".
!!! One of the following packages is required to complete your request:
- sci-libs/scipy-0.12.0::gentoo (Change USE: -python_targets_python3_2, this change violates use flag constraints defined by sci-libs/scipy-0.12.0: 'any-of ( python_targets_python2_5 python_targets_python2_6 python_targets_python2_7 python_targets_python3_2 python_targets_python3_3 )')
(dependency required by "sci-libs/scipy-0.12.0" [ebuild])
(dependency required by "=sci-libs/scipy-0.12.0" [argument])

I've searched for this and found that exact problem here http://gentoo.2317880.n4.nabble.com/Strange-scipy-0-12-0-dependencies-td264304.html -- but the solution doesn't work: restricting to Py2.x is not an option for me. I tried emerging pillow-2.0.0-r1 (which unmerged python-imaging-1.x), but the error message stayed exactly the same.

Can anyone help please?

emerge info:
Portage 2.1.12.2 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.6.11 x86_64)
=================================================================
System uname: Linux-3.6.11-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2
KiB Mem:     8181112 total,   1267600 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 12 Jul 2013 11:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
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.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.3.6-r1, 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.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo hollow sunrise x-portage
ACCEPT_KEYWORDS="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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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 -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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/layman/hollow /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 a52 aac acl acpi aiglx alsa amd64 apache2 apng avi bash-completion berkdb bluetooth bzip2 c++0x cairo cdda cddax cddb cdparanoia cdr cli cracklib crypt cups cxx dbus dri dts dv dvb dvd dvdr dvdread encode exif fbcon ffmpeg flac foomaticdb ftdi gd gdbm gimp gimpprint gnome gpm gstreamer gtk gtk2 hbci iconv ipv6 jpeg kpathsea kqemu lirc matroska mbrola melt mikmod mmx mmxext mng modules mp3 mpeg multilib ncurses nls nodrm nptl nptlonly nvidia ogg oggvorbis opengl openmp openntpd pam pcre png postgres postscript ppds python qt3support qt4 readline recode replytolist rtc rtsp samba sasl sdl session smartcard smp snmp sqlite sqlite3 sse sse2 ssl subversion svg tcpd theora threads tiff timidity truetype unicode usb v4l v4l2 vorbis wavpack win32codecs wxwidgets x264 xanim xinerama xml xmms 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" 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="x86_64 arm" QEMU_USER_TARGETS="x86_64 arm" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="nvidia" 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="3.2 2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-12 11:30:04 UTC
@Python herd: Any idea which action or python targets would satisfy this? If you think this needs a fix in scipy, then please assign to sci@g.o.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2013-07-20 18:13:29 UTC
A fix is required if it's broken.

~/cvsPortage/gentoo-x86/sci-libs/scipy $ PYTHON_TARGETS=python3_2 ebuild scipy-0.12.0.ebuild clean install

testuser@archtester /mnt/gen2/TmpDir/portage/sci-libs/scipy-0.12.0/image/usr/lib64/python3.2/site-packages $ PYTHONPATH=. python3.2 -c "import scipy"
yields
blank meaning all is good.
 
testuser@archtester /mnt/gen2/TmpDir/portage/sci-libs/scipy-0.12.0/image/usr/lib64/python3.2/site-packages $ PYTHONPATH=. python3.2 -c "from scipy.weave import build_tools"
yields
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "scipy/weave/__init__.py", line 23, in <module>
    raise ImportError("scipy.weave only supports Python 2.x")
ImportError: scipy.weave only supports Python 2.x

This says I built scippy-0.12.0 just fine under py3.2, but a module build_tools spoils the party because it's there.  Basically it can be conditionally deleted in a py3 emerge or build going from a similar outcome in some other package.

As for a build failure under py3, I didn't get that.
At least try an emerge --sync and retry.
Comment 3 Johannes Bauer 2013-07-23 07:27:46 UTC
(In reply to Ian Delaney from comment #2)

> As for a build failure under py3, I didn't get that.
> At least try an emerge --sync and retry.

Hmm, it appears you got further than me. Just synced the tree to timestamp "Tue, 23 Jul 2013 07:00:01 +0000" and still:

emerge: there are no ebuilds built with USE flags to satisfy "virtual/python-imaging[python_targets_python2_5(-)?,python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,-python_single_target_python2_5(-),-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-)]".
!!! One of the following packages is required to complete your request:
- sci-libs/scipy-0.12.0::gentoo (Change USE: -python_targets_python3_2 -python_targets_python2_7, this change violates use flag constraints defined by sci-libs/scipy-0.12.0: 'any-of ( python_targets_python2_5 python_targets_python2_6 python_targets_python2_7 python_targets_python3_2 python_targets_python3_3 )')
(dependency required by "sci-libs/scipy-0.12.0" [ebuild])
(dependency required by "scipy" [argument])

How can I track this down? I don't even understand the message completely, never seen that before.
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2013-07-24 11:03:58 UTC
inherit python-r1
REQUIRED_USE="
        python_targets_python2_5? (
                !python_targets_python3_2
                !python_targets_python3_3
        )
"

in

virtual/python-imaging/python-imaging-1.ebuild 

makes for needing a PYTHON_TARGETS= 1 python target.  Try;

testuser@archtester ~/cvsPortage/gentoo-x86/app-emulation/xen-tools $ PYTHON_TARGETS=python2_6 emerge =sci-libs/scipy-0.12.0 -pv
--- Invalid atom in /etc/portage/package.use: virtual/python-imaging-1
 * Last emerge --sync was 38d 21h 51m 51s ago.

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

Calculating dependencies... done!
[ebuild   R    ] sci-libs/scipy-0.12.0  USE="-doc -sparse {-test}" PYTHON_TARGETS="python2_6 -python2_5 -python2_7* -python3_2 -python3_3" 0 kB

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

 * IMPORTANT: 15 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

I'm pretty sure I skirted emerge 20th July by building with 

sci-libs/scipy $ eebuild scipy-0.12.0.ebuild clean merge
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2013-07-24 11:05:32 UTC
sci-libs/scipy $ PYTHON_TARGETS=python3_3 emerge =sci-libs/scipy-0.12.0 -pv
--- Invalid atom in /etc/portage/package.use: virtual/python-imaging-1
 * Last emerge --sync was 38d 21h 59m 31s ago.

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

Calculating dependencies... done!
[ebuild   R    ] sci-libs/scipy-0.12.0  USE="-doc -sparse {-test}" PYTHON_TARGETS="python3_3* -python2_5 -python2_6* -python2_7* -python3_2" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 6 Johannes Bauer 2013-07-24 13:41:32 UTC
I see what you mean. You built the package manually, exluding the sanity checks that portage performs. With that, I can also successfully build the package:

[/usr/portage/sci-libs/scipy]: ebuild scipy-0.12.0.ebuild clean merge

Builds, installs and the resulting scipy pacakge works.

However, I think this will come back to haunt me at the next system update, since:

[/usr/portage/sci-libs/scipy]: emerge -pv scipy

still spits out

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

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy "virtual/python-imaging[python_targets_python2_5(-)?,python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,-python_single_target_python2_5(-),-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-)]".
!!! One of the following packages is required to complete your request:
- sci-libs/scipy-0.12.0::gentoo (Change USE: -python_targets_python3_2 -python_targets_python2_7, this change violates use flag constraints defined by sci-libs/scipy-0.12.0: 'any-of ( python_targets_python2_5 python_targets_python2_6 python_targets_python2_7 python_targets_python3_2 python_targets_python3_3 )')
(dependency required by "sci-libs/scipy-0.12.0" [ebuild])
(dependency required by "scipy" [argument])

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

So, all in all, while I do now have a working scipy version thanks to you, the underlying problem is still not fixed (and likely going to cause trouble further down the road). It's really rather weird that this happens on my system, but not on yours.
Comment 7 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2013-09-01 13:26:44 UTC
I cannot reproduce this. It was either fix on virtual/imaging level or I'm missing somthing. @Johannes is it still an issue?