Import vtkplotter.dolfin no module named vtkplotter?

I’ve tried pip installing, pip3 installing and nothing seems to work. In my pip and pip3 lists both vtk and dolfin are there, but vtkplotter.dolfin doesn’t work. Import vtkplotter works, but the .dolfin added on gives me a “no module named vtkplotter” error.

I would raise this issue at: https://github.com/marcomusy/vtkplotter/issues .
There you would need to supply which version of vtkplotter you are using.

Hi @Daniel_Greally , did you manage to solve the issue?

Yes I did! When installing Fenics on anaconda using the conda forge commands on the Fenics install page I simply added vtkplotter alongside fenics and other stuff I wanted. And when I did it this way, doing them all at once, it worked! I think the problem was that the vtk version was clashing with jupyter or other libraries. So when I did them all together anaconda chose versions that wouldn’t clash. Now I amnt sure if my syntax is correct below. There might be commas between them or something. But I basically did the conda forge command with them all together on it.
Like this:

conda create -n fenicsproject -c conda-forge fenics vtkplotter jupyter etc

source activate fenicsproject

Ps: spacing is weird, vtkplotter Fenics and Jupyter are all meant to be on the same line

1 Like