dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #18041
[Bug 556864] Re: Unable to import Viper (no module named vtk)
Have you tried both
sudo port install vtk-devel +python26
and
sudo port install vtk-devel +py26
?
And what does
port variants vtk-devel
give you?
--
Unable to import Viper (no module named vtk)
https://bugs.launchpad.net/bugs/556864
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
Status in DOLFIN: Invalid
Bug description:
Hi!
I recently sucesfully installed dorsal, but I can not use Viper in ipython. My problem is very similar to that relating to Question #102151 but there seem not to be a similar solution. I have tried to reinstall vtk-devel and then dorsal, but have not been succesfull.
The following is my output when trying to import viper in ipython.
In [2]: import viper
------------------------------------------------------------
Traceback (most recent call last):
File "<ipython console>", line 1, in <module>
File "/Users/tor/Work/FEniCS/lib/python2.6/site-packages/viper/__init__.py", line 23, in <module>
from viper import *
File "/Users/tor/Work/FEniCS/lib/python2.6/site-packages/viper/viper.py", line 48, in <module>
import vtk, numpy, os, math
ImportError: No module named vtk
Any Ideas?
Thank you!
/Tor
References