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

Bug 353911

Summary: sci-visualization/mayavi-3.4.1 - ImportError: No module named libvtkCommonPython
Product: Gentoo Linux Reporter: Juergen Rose <rose>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Juergen Rose 2011-02-06 23:05:05 UTC
'emerge mayavi' fails with:
...
>>> Emerging (3 of 3) sci-visualization/mayavi-3.4.1
 * Mayavi-3.4.1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                            [ ok ]
 * Package:    sci-visualization/mayavi-3.4.1
 * Repository: gentoo
 * Maintainer: sci@gentoo.org
 * USE:        amd64 doc elibc_glibc examples kernel_linux multilib qt4 userland_GNU
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking Mayavi-3.4.1.tar.gz to /var/tmp/portage/sci-visualization/mayavi-3.4.1/work
>>> Unpacking ./html.zip to /var/tmp/portage/sci-visualization/mayavi-3.4.1/work/Mayavi-3.4.1/docs
>>> Source unpacked in /var/tmp/portage/sci-visualization/mayavi-3.4.1/work
>>> Preparing source in /var/tmp/portage/sci-visualization/mayavi-3.4.1/work/Mayavi-3.4.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-visualization/mayavi-3.4.1/work/Mayavi-3.4.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-visualization/mayavi-3.4.1/work/Mayavi-3.4.1 ...
python2.7 setup.py build
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'docs_in_egg'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'ssh_server'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'ssh_remote_dir'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'docs_in_egg_location'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'html_doc_repo'
  warnings.warn(msg)
running build
Traceback (most recent call last):
  File "setup.py", line 538, in <module>
    **config
  File "/usr/lib64/python2.7/site-packages/numpy/distutils/core.py", line 186, in setup
    return old_setup(**new_attr)
  File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 326, in run
    build_tvtk_classes_zip()
  File "setup.py", line 313, in build_tvtk_classes_zip
    gen_tvtk_classes_zip()
  File "enthought/tvtk/setup.py", line 46, in gen_tvtk_classes_zip
    from code_gen import TVTKGenerator
  File "enthought/tvtk/code_gen.py", line 10, in <module>
    import vtk
  File "/usr/lib64/python2.7/site-packages/vtk/__init__.py", line 41, in <module>
    from common import *
  File "/usr/lib64/python2.7/site-packages/vtk/common.py", line 7, in <module>
    from libvtkCommonPython import *
ImportError: No module named libvtkCommonPython
 * ERROR: sci-visualization/mayavi-3.4.1 failed (compile phase):
 *   Building failed
 

Reproducible: Always




root@caiman:/root(153)# emerge --info =sci-visualization/mayavi-3.4.1
Portage 2.1.9.36 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r0, 2.6.37-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.0.1
Timestamp of tree: Sun, 06 Feb 2011 15:30:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1, 3.1.3
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j7"
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="/var/lib/layman/sunrise /var/lib/layman/x11 /var/lib/layman/science /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac abiword acl acpi afs alsa amd64 amrr ao apache2 applet archive arpack asf aspell assistant audacious audiofile automap automount bash-completion berkdb blas blast boost bzip2 cairo cdda cddb cdf cdio cdparanoia cgi chm cli cracklib crypt cups curl cxx daap db dbase dbi dbm dbus devhelp device-mapper dga dia djvu doc dri ds2490 ds9097 ds9097u dv dvb dvd dvdr dvi eds elf emacs emboss emf epiphany evo examples expat extensions extra extras fame ffmpeg fftw firefox fits fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse galago gd gdbm gdu gedit gfortran gimp ginac git glade gmp gnome gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz gs gsl gtk guile hddtemp hdf hdf5 hdri http httpd hvm iconv id3 imagemagick innodb inotify ipv6 ithreads jadetex jbig jpeg jpeg2k kdrive kpathsea kqemu kvm lapack latex latex3 ldap lensfun libffi libgda libnotify lm_sensors lua math mkl mmx mmxext mng modules mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli ncurses netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly ntfs ntp numpy obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pam pcre pdf perl plotutils plugins png policykit posix postgres ppds pppd preview-latex projectx pstricks pulseaudio pymol python python-bindings q16 q32 qhull qt3support qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool samba sasl science sdl semantic-desktop server session sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 sse4a ssl stlport subtitles subversion suexec svg svm swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs tgif theora threads thunderbird tidy tiff tk tools truetype udev unicode usb userlocales utempter v4l2 video virtualbox vorbis wav webdav webdav-serf webkit wmf wxwidgets xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc yaml zlib zvbi" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" 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" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="radeon ati vesa" 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

root@caiman:/root(154)# emerge -pqv =sci-visualization/mayavi-3.4.1
[ebuild     U ] sci-visualization/mayavi-3.4.1 [3.4.0] USE="doc examples%* qt4"
Comment 1 Juergen Rose 2011-02-08 09:36:28 UTC
mayavi-3.4.1 is now emerged.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2011-04-25 09:51:40 UTC
Now for ever :)


+  25 Apr 2011; Justin Lecher <jlec@gentoo.org> vtk-5.6.0-r2.ebuild,
+  vtk-5.6.0-r3.ebuild, vtk-5.6.1.ebuild, files/vtk-5.6.1-ffmpeg.patch,
+  +files/vtk-5.6.1-gcc-46.patch:
+  Correct patch for USE=ffmpeg, 327957; Fix for gcc-4.6
+


If not, please bother me again. :)
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2011-04-25 09:54:21 UTC
Wriong bug
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2011-04-25 11:46:41 UTC
Seems to be fixed. I would guess it was a python-updater thing.