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

Drew Parsons dparsons at debian.org
Thu Jun 25 03:08:10 UTC 2009


On Wed, 2009-06-24 at 22:51 -0400, Varun Hiremath wrote:
> > $ mayavi2
> > ImportError: No module named libvtkCommonPython

> 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.

Hi Varun, you're right, import vtk fails from a python shell.

> 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
> 

Yes, that works.
"PYTHONPATH=PYTHONPATH:/usr/lib/python-support/python-vtk/python2.5/vtk
mayavi2" is able to successfully launch mayavi2.

Curious that your system does work.  Have you hardwired that workaround
in or would your system otherwise be the "same" as mine?

Drew









More information about the Python-apps-team mailing list