I am trying to use VTK on a machine with ubuntu 16.04 and python 3.7.3 running Anaconda 2019.03. Anaconda installed vtk 8.2.0.
I import vtk and type “vtk.” and the auto field only shows 9 options but is missing many important ones.
Running the example from here: https://lorensen.github.io/VTKExamples/site/Python/IO/ReadSTL/ produces an error “module ‘vtk’ has no attribute ‘vtkSTLReader’”.
I tried updating vtk to v9. No difference
I tried pip install python-vtk which changed vtk back to 8.2.0 and still no difference.
I can run vtk 8.1.1 on a different machine with no issues with Python 3.65 but I really need to run python 3.7 on a different machine for compatibility with other people so I understand I need vtk 8.2 or greater.
Based on this article I also tried installing python-vtk7 but the package was not found for ubuntu 16.04. Setting up VTK, with python3.8 and Ubuntu 20.04
I was going to try installing VTK 9 from source to see if that fixes it but I have gone down a bit of a rabbit hole with that needing a later version of CMAKE. In trying to build CMAKE, that needs a later version of openssl (for the ccmake). So would prefer a packaged version if at all possible.
I assume I have a mismatch with something simple but just not sure what. I would appreciate if anyone has any insight or anything to try.