pyvista / tetgen

A Python interface to the C++ TetGen library to generate tetrahedral meshes of any 3D polyhedral domains
http://tetgen.pyvista.org
Other
219 stars 32 forks source link

Import Error #50

Closed YMX2022 closed 1 year ago

YMX2022 commented 1 year ago

Great work! However, some error occurred when I call "import tetgen"

from pyvista._vtk import VTK9 ImportError: cannot import name 'VTK9' from 'pyvista._vtk'

Do you have any suggestions on the error?

banesullivan commented 1 year ago

This package needs to be updated to work with the latest version of PyVista. PyVista dropped VTK8 support and this module might still be trying to support VTK8.

Downgrading PyVista should work for now:

pip install 'pyvista<0.39'
akaszynski commented 1 year ago

I'll patch and release. Had to change https://github.com/pyansys/pymapdl-reader as well.