Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 136429
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Python Gentoo Team <python@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sébastien Fabbro <bicatali@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 136429 depends on: Show dependency tree
Bug 136429 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-06-11 09:24 0000
matplotlib-0.87.3 is out. Ebuild in http://gentooscience.org.
Trying to test both wxpython and agg functionalities. Please test and report in
this bug.

------- Comment #1 From David Grant 2006-06-12 10:38:33 0000 -------
sonata david # emerge -vp matplotlib

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

Calculating dependencies... done!
[ebuild   R   ] dev-python/matplotlib-0.87.3  USE="gtk tcltk wxwindows* -agg
-doc" 0 kB [3]

It's the wxwindows flag that causes me problems.

>>> Compiling source in /var/tmp/portage/matplotlib-0.87.3/work/matplotlib-0.87.3 ...
WXAgg's accelerator requires the wxPython headers.

The wxPython header files could not be located in any of the standard
include
directories or include directories reported by `wx-config --cppflags'.

!!! ERROR: dev-python/matplotlib-0.87.3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called distutils_src_compile
  distutils.eclass, line 38:   Called die

!!! compilation failed

If I run wx-config --cppflags, I get:
-I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES

If I check the /usr/lib/wx/include/gtk2-2.4 directory, there is only one
directory inside called 'wx' and one file inside that called setup.h.

I have two version of wxpython installed, 2.4.2.4-r3 and 2.6.3.2

sonata matplotlib # emerge --info
Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3,
2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://cudlug.cudenver.edu/gentoo/
http://modzer0.cs.uaf.edu/public/gentoo/ http://gentoo.arcticnetwork.ca/
ftp://gentoo.llarian.net/pub/gentoo http://gentoo.llarian.net/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/java-migration
/usr/portage/local/layman/science /usr/portage/local/layman/gentopia
/usr/portage/local/layman/portage-xgl"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 3ds X Xaw3d aac aalib acpi ada alsa ansi anthy apache2
apm artworkextra asf async atlas audiofile avi bash-completion berkdb
bigger-fonts bitmap-fonts browserplugin bzip2 c++ cairo canvas cdparanoia cdr
cgi cli cpudetection crypt css ctype cups curl dba dbus dga dhcp directfb
divx4linux dlloader dri dv dvd dvdr dvdread dynagraph eds emacs emboss encode
escreen exif fame fastbuild fastcgi fbcon ffmpeg fftw firefox flac foomaticdb
force-cgi-redirect fortran ftp gd gdbm gif gimp gimpprint ginac glut gmp gnokii
gnome gnuplot gphoto2 gpm gprof gstreamer gtk gtk2 gtkhtml guile hal hddtemp
iconv icq idn imagemagick imap imlib imlib2 ipv6 isdnlog java javascript jce
joystick jpeg jpeg2k junit kde kdeenablefinal kdexdeltas kerberos kipi krb4
latex lcms ldap lesstif libcaca libclamav libg++ libwww live lm_sensors
logitech-mouse logrotate lzo mad maildir matroska memlimit mhash migemo mikmod
mjpeg mmx mmxext mng mono motif mozdevelop mozilla mozsvg mp3 mpeg mpi mplayer
mplot3d mppe-mppc msn musepack musicbrainz mysql nas nautilus ncurses net
nethack network nfs nis nls nntp no-old-linux noplugin nptl nptlonly nsplugin
nvidia oav offensive ofx ogg oggvorbis openal opengl oscar oss pam pcre pda pdf
pdflib pdo-external perl php pic plotutils png posix postgres povray ppds pppd
python qhull qt quicktime quotas quotes rdesktop readline real reflection ruby
samba sasl scanner screen sdl sensord server session simplexml slang sms smtp
soap sockets spell spl sqlite sse ssl subtitles subversion svg svga symlink
tcltk tcpd tetex theora threads tidy tiff tokenizer truetype truetype-fonts
type1 type1-fonts udev usb userlocales utf8 v4l v4l2 vcd vhosts virus-scan
visualization vorbis webservices wifi win32codecs wmf wv wxpython wxwindows
xanim xbase xcomposite xine xml xml2 xmlwriter xorg xprint xscreensaver xsl xv
xvid yahoo yv12 zip zlib elibc_glibc input_devices_keyboard input_devices_mouse
kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa
video_cards_vga video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #2 From Sébastien Fabbro 2006-06-13 05:56:15 0000 -------
The problem was with slotting wxpython. I made a fix to use properly
wxpython-2.6, which is needed anyway for matplotlib, using wxwidgets eclass.
Give it a try-

------- Comment #3 From Werner Pessenhofer 2006-06-20 00:03:28 0000 -------
I have another problem, upgrading matplotlib:

>>> Emerging (3 of 8) dev-python/matplotlib-0.87.3 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking matplotlib-0.87.3.tar.gz ;-)
>>> Unpacking source...
>>> Unpacking matplotlib-0.87.3.tar.gz to /var/tmp/portage/matplotlib-0.87.3/work
 * Applying matplotlib-0.87.2-no-autodetect.patch ... 
____________________________________________________________________________   
                                                                               
                                                                 [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/matplotlib-0.87.3/work/matplotlib-0.87.3 ...
WXAgg's accelerator requires the wxPython headers.

The wxPython header files could not be located in any of the standard
include
directories or include directories reported by `wx-config --cppflags'.

!!! ERROR: dev-python/matplotlib-0.87.3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called distutils_src_compile
  distutils.eclass, line 38:   Called die

!!! compilation failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.

!!! This ebuild is from an overlay: '/usr/portage/local/layman/science'
_____________________________________________________________________________

I reemerged wxpython, wxGTK but nothing changed. Versions:

/matplotlib-0.87.3
dev-python/wxpython-2.6.1.0
x11-libs/wxGTK-2.6.3.2

emerge --info:

Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4,
2.6.16-gentoo-r7n i686)
=================================================================
System uname: 2.6.16-gentoo-r7n i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mfpmath=sse -pipe -mmmx -msse
-fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -mfpmath=sse -pipe -mmmx -msse
-fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tugraz.at/pub/mirror/gentoo/ http://gentoo.inode.at/
http://gd.tuwien.ac.at/opsys/linux/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/ebuilds /usr/portage/local/layman/gentoo-de
/usr/portage/local/layman/science /usr/portage/local/layman/voip
/usr/portage/local/layman/gentopia"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d aac acpi alsa apache2 apm asf avi berkdb bitmap-fonts
bluetooth bmpx cairo cdparanoia cdr cli crypt cups dga dri dv dvb dvd dvdr
dvdread dvix4linux eds emacs emboss encode esd ffmpeg fftw foomaticdb fortran
gcj gdbm gif gimpprint glx gphoto2 gpm gstreamer gtk gtk2 imap imlib ipv6 irda
isdnlog ithreads java jpeg latex ldap libg++ libwww mad mikmod mime mmx motif
mp3 mpeg musicbrainz ncurses nls nptl nptlonly nvidia odbc ofx ogg opengl oss
pam pcmcia pcre pdf pdflib perl plugin png pnp pppd python quicktime readline
real reflection samba sasl scanner sdl session spell spl ssl svg tcpd tetex
theora threads tiff truetype truetype-fonts type1-fonts udev usb vcd vorbis
win32codecs wmf wxwindows xanim xface xfs xinerama xml xmms xorg xosd xv xvid
yahoo zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #4 From Pierre 2006-07-12 00:05:39 0000 -------
Same here...
Note that USE="agg gtk tcltk -wxwindow" works OK

#----------------------------------------------------
emerge --info 
Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.15-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7 x86_64 Mobile AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/gcc-config: 1.3.12-r6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash
/etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa avi berkdb bitmap-fonts bz2 cairo cjk cli crypt cups dri eds
emboss encode foomaticdb fortran gif gpm gstreamer gtk2 hal imlib ipv6 isdnlog
java jikes jpeg kde lzw lzw-tiff mp3 mpeg ncurses nls nptl opengl pam pcre pdf
pdflib perl png pppd python qt quicktime readline reflection sdl session spell
spl ssl tcpd tiff truetype-fonts type1-fonts unicode usb xinerama xorg xpm xv
zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #5 From Alastair Tse (RETIRED) 2006-07-12 17:13:36 0000 -------
who maintains the gentooscience.org overlay? seems to have some nice ebuilds in
there. 

anyway, i looked at the ebuild and i don't understand why there is the
WX_CONFIG hack there? is wxwindows support much better than the gtk or is it
just more trouble than it is worth? also how much better is the libagg
rendering compared to the regular rastering?

------- Comment #6 From Sébastien Fabbro 2006-07-13 02:26:45 0000 -------
(In reply to comment #5)
> who maintains the gentooscience.org overlay? seems to have some nice ebuilds 
> in there.

I am one of the maintainer (bicatali). cryos is the one responsible for the
overlay.

> anyway, i looked at the ebuild and i don't understand why there is the
> WX_CONFIG hack there? is wxwindows support much better than the gtk or is it
> just more trouble than it is worth? also how much better is the libagg
> rendering compared to the regular rastering?

libagg is included in matplotlib source if not selected as external.
Its rendering is pretty good and fast, but I never did any comparison. I heard
kde4 could use it. 
The wxpython backend is not really better than the gtk one. It is just a matter
of choice. The WX_CONFIG seems to be necessary and I don't understand why the
variable doesn't get exported away from the local routines.

Unfortunately I am away from my gentoo test boxes until August :(

------- Comment #7 From Alastair Tse (RETIRED) 2006-07-13 13:03:40 0000 -------
thanks for your answers. i'm not very keen on adding agg and wxwindows support
because wxwindows has always been very difficult to build with an prone to
breaking. i'd rather have a stable and simple matplotlib because it does the
job very well. (i use it for my research and the gtk interface is good enough
in my opinion)

i'd prefer to go for a straight simple bump. i hope you understand, maybe in
the future libagg is in portage and wxwindows proves to be superior, then i'll
consider it.

------- Comment #8 From Alastair Tse (RETIRED) 2006-07-16 06:40:33 0000 -------
0.87.3 is in portage now.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug