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

pip install instructions fail #2

Closed mathematicalmichael closed 5 years ago

mathematicalmichael commented 5 years ago

you have an outdated dependency. references to vtki need to be changed to vista

In [1]: import tetgen
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-1bb3895953a6> in <module>
----> 1 import tetgen

~/.local/lib/python3.7/site-packages/tetgen/__init__.py in <module>
      1 from tetgen import _tetgen
----> 2 from tetgen.pytetgen import TetGen

~/.local/lib/python3.7/site-packages/tetgen/pytetgen.py in <module>
      9
     10 import numpy as np
---> 11 import vtki
     12
     13 from tetgen import _tetgen

~/.local/lib/python3.7/site-packages/vtki/__init__.py in <module>
      7 """
      8
----> 9 raise ImportError(message)
     10
     11 import warnings

ImportError:
ATTENTION: `vtki` has been renamed to `vista`. Please install `vista`:

    pip install vista

    conda install -c conda-forge vista
akaszynski commented 5 years ago

I'm afraid that you'll have to use an older version of vtki, ideally vtki==0.18.4.

We're going to probably rename it to pyvista and I don't want to refactor twice.

mathematicalmichael commented 5 years ago

Thank you so much for the prompt reply! Was debugging this for a student who couldn’t get your package installed.

On May 11, 2019, at 3:44 AM, Alex Kaszynski notifications@github.com wrote:

I'm afraid that you'll have to use an older version of vtki, ideally vtki==0.18.4.

We're going to probably rename it to pyvista and I don't want to refactor twice.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/akaszynski/tetgen/issues/2#issuecomment-491496382, or mute the thread https://github.com/notifications/unsubscribe-auth/AJT7BN55ME5XFOCSZ5Z6X23PU2IPJANCNFSM4HMG4NKQ.

akaszynski commented 5 years ago

You can now install tetgen using pip:

pip install tetgen

This module is now using pyvista.