Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 261402

Summary: sci-visualization/mayavi-3.1.0 raises NotImplementedError with WX backend
Product: Gentoo Linux Reporter: Kamil Kisiel <kamil>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab_demo.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Kamil Kisiel 2009-03-06 02:10:54 UTC
Running the demo code ultimately results in the following:

Traceback (most recent call last):
  File "./demo.py", line 13, in <module>
    s = mlab.mesh(x, y, z)
  File "//usr/lib64/python2.5/site-packages/enthought/mayavi/tools/helper_functions.py", line 32, in the_function
    return pipeline(*args, **kwargs)
  File "//usr/lib64/python2.5/site-packages/enthought/mayavi/tools/helper_functions.py", line 719, in __call__
    self.source = self._source_function(*args, **kwargs)
  File "//usr/lib64/python2.5/site-packages/enthought/mayavi/tools/sources.py", line 1148, in grid_source
    ds = tools.add_dataset(data_source.dataset, name, **kwargs)
  File "//usr/lib64/python2.5/site-packages/enthought/mayavi/tools/tools.py", line 55, in add_dataset
    gcf()
  File "//usr/lib64/python2.5/site-packages/enthought/mayavi/tools/figure.py", line 95, in gcf
    return figure(engine=engine)
  File "//usr/lib64/python2.5/site-packages/enthought/mayavi/tools/figure.py", line 50, in figure
    engine.new_scene(name=name, size=size)
  File "//usr/lib64/python2.5/site-packages/enthought/scripting/recordable.py", line 45, in _wrapper
    result = func(*args, **kw)
  File "//usr/lib64/python2.5/site-packages/enthought/mayavi/core/engine.py", line 428, in new_scene
    viewer = self.scene_factory(**factory_kwargs)
  File "//usr/lib64/python2.5/site-packages/enthought/mayavi/core/ui/mayavi_scene.py", line 87, in viewer_factory
    viewer.open()
  File "//usr/lib64/python2.5/site-packages/enthought/pyface/i_window.py", line 142, in open
    self._create()
  File "//usr/lib64/python2.5/site-packages/enthought/pyface/ui/wx/application_window.py", line 149, in _create
    contents = self._create_contents(body)
  File "//usr/lib64/python2.5/site-packages/enthought/tvtk/tools/ivtk.py", line 392, in _create_contents
    self.scene = self._scene_factory(parent)
  File "//usr/lib64/python2.5/site-packages/enthought/mayavi/core/ui/mayavi_scene.py", line 68, in mayavi_scene_factory
    s = MayaviScene(parent, stereo=p['stereo'])
  File "//usr/lib64/python2.5/site-packages/enthought/tvtk/pyface/toolkit.py", line 88, in __init__
    raise NotImplementedError("the %s pyface backend doesn't implement %s" % (be, oname))
NotImplementedError: the enthought.tvtk.pyface.ui.wx. pyface backend doesn't implement DecoratedScene



Reproducible: Always

Steps to Reproduce:
1. Install mayavi with the default wxpython backend (no wxpython or qt4 use flags set)
2. Copy the source code from the URL in to demo.py
3. Run the code
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-03-06 02:35:16 UTC
Please post your `emerge --info' too.
Comment 2 Kamil Kisiel 2009-03-06 02:36:15 UTC
psicose ~ # emerge --info
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.1.1, glibc-2.6.1-r0, 2.6.28-gentoo-r1beige x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r1beige-x86_64-AMD_Athlon-tm-_64_Processor_3500+-with-glibc2.2.5
Timestamp of tree: Wed, 04 Mar 2009 14:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r6, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -fomit-frame-pointer -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -pipe -fomit-frame-pointer -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/zymeworks-overlay"
SYNC="rsync://portage.lan.zymeworks.com/gentoo-portage"
USE="X acl amd64 bash-completion berkdb bzip2 cli cracklib crypt doc dri fortran gdbm gpm gtk iconv isdnlog jpeg kerberos ldap midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection session smp spl sse sse2 ssl svg sysfs tcpd tiff unicode vim-syntax xorg zlib" 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="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm dummy fbdev i128 i810 nv sis vesa vga via vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-06 05:39:00 UTC
thx for the report. Assigning to maintaining team - looks like some IUSE defaults may need to be added?
Comment 4 Kamil Kisiel 2009-03-06 06:08:06 UTC
I'm not sure what exactly the problem is. It seems like the deps are installed...

The closest I could find to this error was the following thread:

https://mail.enthought.com/pipermail/enthought-dev/2007-December/011342.html
Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2009-03-14 17:17:21 UTC
Hi,

I can't reproduce this behaviour, I tried traitsbackendwx, traitsbackendqt or both, without problems. You should also have dev-python/apptools installed which provides enthought.persistence

Thanks
Comment 6 Kamil Kisiel 2009-03-14 17:55:29 UTC
I have dev-python/apptools-3.1.0 installed ... any other packages I should check for?
Comment 7 Sébastien Fabbro (RETIRED) gentoo-dev 2009-03-20 13:03:53 UTC
Could you try with wxpython emerged with the opengl and/or cairo use flag and let me know?
Thanks.
Comment 8 Kamil Kisiel 2009-03-20 20:41:25 UTC
Yes, emerging wxpython with USE=opengl did the trick, and I assume that USE=cairo would likely do the same, although I didn't try that since we don't use cairo on our systems.

There should be a check for this somewhere if possible..
Comment 9 Sébastien Fabbro (RETIRED) gentoo-dev 2009-03-20 21:03:48 UTC
Thanks for testing, now fixed in portage tree:

+  20 Mar 2009; Sébastien Fabbro <bicatali@gentoo.org> mayavi-3.1.0.ebuild:
+  Introduce wxwindows and qt4 flags to enforce opengl, closing bug #261402