replace 'import vtk' with 'import pyvtk'

Issue #25 new
Anonymous created an issue
Python 2.7.8 (default, Aug 24 2014, 21:25:53) 
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ars.app
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/ars/app/__init__.py", line 9, in <module>
    from ..graphics import vtk_adapter as gp
  File "/usr/local/lib/python2.7/site-packages/ars/graphics/vtk_adapter.py", line 1, in <module>
    import vtk
ImportError: No module named vtk

The problem is the vtk module is called 'pyvtk', at least when installed from pip. Replacing the one line in vtk_adapter.py fixes things.

Comments (1)

  1. Log in to comment