[Python-apps-team] Bug#534524: Bug#534524: mayavi2: at runtime, ImportError: No module named libvtkCommonPython

Varun Hiremath varun at debian.org
Thu Jun 25 02:51:53 UTC 2009


Hi Drew,

On Thu, 25 Jun, 2009 at 12:08:56PM +1000, Drew Parsons wrote:
> Package: mayavi2
> Version: 3.2.0-2
> Severity: normal
> 
> Thanks for rebuilding mayavi2 for libvtk5.2.
> 
> There seems to be some outstanding problem with the
> libvtkCommonPython.  At runtime the new mayavi2 fails, with:
> 
> $ mayavi2
> Traceback (most recent call last):
>   File "/usr/bin/mayavi2", line 461, in <module>
>     raise ImportError(msg)
> ImportError: No module named libvtkCommonPython
> ________________________________________________________________________________
> Do you have vtk installed properly?
> VTK (and build instructions) can be obtained from http://www.vtk.org
> 
> 
> Does this mean something else is required, or some new dependencies
> are needed?

I know this is a bug in python-vtk #529961, but mayavi2 loads on my
system without any problem. I don't know how you are getting this
import error from mayavi2. Can you check if you are able to "import
vtk" from a python shell. Looking at line 461 in /usr/bin/mayavi2,
this exception is caused by failure to import vtk, which shouldn't
happen.

Thanks,
Varun

p.s. If nothing helps, you may try to reset PYTHONPATH (as suggested
in 529961):
PYTHONPATH=$PYTHONPATH:/usr/lib/python-support/python-vtk/python2.5/vtk

> 
> 
> 
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
> Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages mayavi2 depends on:
> ii  libc6                        2.9-12      GNU C Library: Shared libraries
> ii  libjs-jquery                 1.3.3-1     JavaScript library for dynamic web
> ii  libvtk5.2                    5.2.1-5     Visualization Toolkit - A high lev
> ii  python                       2.5.4-2     An interactive high-level object-o
> ii  python-apptools              3.2.0-1     ETS Application Tools
> ii  python-central               0.6.11      register and build utility for Pyt
> ii  python-configobj             4.5.2-2     a simple but powerful config file 
> ii  python-envisagecore          3.1.0-1     Extensible Application Framework
> ii  python-envisageplugins       3.1.0-1     Plugins for the Envisage framework
> ii  python-numpy                 1:1.2.1-1   Numerical Python adds a fast array
> ii  python-pkg-resources         0.6c9-2     Package Discovery and Resource Acc
> ii  python-traits                3.1.0-1     Manifest typing and reactive progr
> ii  python-traitsgui             3.0.4-1     Traits-capable windowing framework
> ii  python-vtk                   5.2.1-5     Python bindings for VTK
> ii  python-wxgtk2.8              2.8.7.1-1.1 wxWidgets Cross-platform C++ GUI t
> ii  python2.5                    2.5.4-1     An interactive high-level object-o
> 
> mayavi2 recommends no packages.
> 
> Versions of packages mayavi2 suggests:
> ii  python-scipy                  0.7.0-1+b1 scientific tools for Python
> 
> -- no debconf information
> 
> 
> 
> _______________________________________________
> Python-apps-team mailing list
> Python-apps-team at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/python-apps-team

-- 
Varun Hiremath                  http://eccentric.mae.cornell.edu/~vh63/





More information about the Python-apps-team mailing list