# VTK error when trying SEEG tutorial

**URL:** <https://mne.discourse.group/t/vtk-error-when-trying-seeg-tutorial/3961>\
**Category:** Support & Discussions\
**Tags:** installation\
**Created:** [November 16, 2021, 9:46am UTC](https://mne.discourse.group/t/vtk-error-when-trying-seeg-tutorial/3961 "2021-11-16T09:46:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BarryLiu97](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/barryliu97/32/33_2.png) [@BarryLiu97](https://mne.discourse.group/u/BarryLiu97)\
**Post date:** [November 16, 2021, 9:46am UTC](https://mne.discourse.group/t/vtk-error-when-trying-seeg-tutorial/3961/1 "2021-11-16T09:46:04Z")

</div>

Hi, I’m trying to run this scripthttps://mne.tools/stable/auto\_tutorials/clinical/20\_seeg.html?highlight=combine\_transforms, and this is the error

```python
ImportError: cannot import name 'vtkDiscreteFlyingEdges3D' from 'vtk' (C:\Users\barryliu\AppData\Roaming\Python\Python37\site-packages\vtk\ __init__.py)

```

It seems that this is an error from `mne.viz._brain._brain._marching_cubes`

This is the info

```python
Platform: Windows-10-10.0.19041-SP0
Python: 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 05:35:01) [MSC v.1916 64 bit (AMD64)]
Executable: D:\ProgramData\Miniconda3\envs\env1\python.exe
CPU: Intel64 Family 6 Model 158 Stepping 13, GenuineIntel: 16 cores
Memory: 63.9 GB
mne: 0.24.0
numpy: 1.21.4 {blas=D:\\a\\1\\s\\numpy\\build\\openblas_info, lapack=D:\\a\\1\\s\\numpy\\build\\openblas_lapack_info}
scipy: 1.7.2
matplotlib: 3.4.3 {backend=Qt5Agg}
sklearn: 1.0.1
numba: Not found
nibabel: 3.2.1
nilearn: Not found
dipy: 1.4.1
cupy: Not found
pandas: 1.3.4
mayavi: Not found
pyvista: 0.32.1 {OpenGL 4.5.0 NVIDIA 456.71 via GeForce RTX 2070 SUPER/PCIe/SSE2}
pyvistaqt: 0.5.0
ipyvtklink: Not found
vtk: 8.1.2
PyQt5: 5.15.4
ipympl: Not found
mne_qt_browser: 0.1.6

```

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [November 16, 2021, 10:31am UTC](https://mne.discourse.group/t/vtk-error-when-trying-seeg-tutorial/3961/2 "2021-11-16T10:31:52Z")

</div>

Hello,

your VTK version is outdated and it seems you installed MNE-Python in a non-standard way. Please follow our official installation instructions to get a working copy of MNE:

[https://mne.tools/stable/install/mne\_python.html#d-plotting-and-source-analysis](https://mne.tools/stable/install/mne_python.html#d-plotting-and-source-analysis)

Best,  
Richard

---

<div class="post-metadata">

**Author:** ![BarryLiu97](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/barryliu97/32/33_2.png) [@BarryLiu97](https://mne.discourse.group/u/BarryLiu97)\
**Post date:** [November 16, 2021, 10:54am UTC](https://mne.discourse.group/t/vtk-error-when-trying-seeg-tutorial/3961/3 "2021-11-16T10:54:11Z")

</div>

So Python 3.8 is recommended now in mne?

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [November 16, 2021, 1:35pm UTC](https://mne.discourse.group/t/vtk-error-when-trying-seeg-tutorial/3961/4 "2021-11-16T13:35:29Z")

</div>

Hello @BarryLiu97,

we always recommend that whenever you want to update MNE, you actually perform a fresh installation as described in our installation instructions. This will ensure that everything works.

Best wishes,  
Richard
