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

A. Maitland Bottoms bottoms at debian.org
Fri Jun 26 04:20:26 UTC 2009


Varun Hiremath writes:
...
 > A new version of python-vkt 5.2.1-6 was uploaded today which seems to
 > fix #529961. But, for me there is no change in the behavior. I am
 > still able to import vtk but not libvtkCommonPython. Does the new
 > version work for you?
 > 
 > Regards,
 > Varun
 > 
 > ===========================================================================
 > $$ ipython
 > --(09:35:21 PM)--
 > Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47)
 > Type "copyright", "credits" or "license" for more information.
 > 
 > IPython 0.8.4 -- An enhanced Interactive Python.
 > ?         -> Introduction and overview of IPython's features.
 > %quickref -> Quick reference.
 > help      -> Python's own help system.
 > object?   -> Details about 'object'. ?object also works, ?? prints
 > more.
 > 
 > In [1]: import vtk
 > 
 > In [2]: from libvtkCommonPython import *

Shouldn't that be:

from vtk.libvtkCommonPython import *

That works for me.

-Maitland





More information about the Python-apps-team mailing list