question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest (0.1.3) not compatible with new vtk

See original GitHub issue
  • What is the current behavior? The newest VTK release candidate (9.2.0rc1) is incompatible.

  • Please provide the steps to reproduce and if possible a minimal demo of the problem.

$ python -c "from brainspace.mesh.mesh_io import read_surface"

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/mathiasg/.pyenv/versions/nipreps/lib/python3.10/site-packages/brainspace/mesh/__init__.py", line 1, in <module>
    from . import (array_operations, mesh_elements, mesh_correspondence,
  File "/Users/mathiasg/.pyenv/versions/nipreps/lib/python3.10/site-packages/brainspace/mesh/array_operations.py", line 22, in <module>
    from . import mesh_elements as me
  File "/Users/mathiasg/.pyenv/versions/nipreps/lib/python3.10/site-packages/brainspace/mesh/mesh_elements.py", line 16, in <module>
    from ..vtk_interface import wrap_vtk, serial_connect
  File "/Users/mathiasg/.pyenv/versions/nipreps/lib/python3.10/site-packages/brainspace/vtk_interface/__init__.py", line 1, in <module>
    from .wrappers.base import (wrap_vtk, unwrap_vtk, wrap_vtk_array,
  File "/Users/mathiasg/.pyenv/versions/nipreps/lib/python3.10/site-packages/brainspace/vtk_interface/wrappers/__init__.py", line 1, in <module>
    from .base import BSVTKObjectWrapper
  File "/Users/mathiasg/.pyenv/versions/nipreps/lib/python3.10/site-packages/brainspace/vtk_interface/wrappers/base.py", line 15, in <module>
    from .utils import call_vtk, get_vtk_methods, is_numpy_string, is_vtk_string
  File "/Users/mathiasg/.pyenv/versions/nipreps/lib/python3.10/site-packages/brainspace/vtk_interface/wrappers/utils.py", line 15, in <module>
    from vtk.util.vtkConstants import VTK_BIT, VTK_STRING, VTK_UNICODE_STRING
ImportError: cannot import name 'VTK_UNICODE_STRING' from 'vtk.util.vtkConstants' (/Users/mathiasg/.pyenv/versions/nipreps/lib/python3.10/site-packages/vtkmodules/util/vtkConstants.py)
  • What is the expected behavior? No error

  • Please tell us about your computing environment: macOS 12.4 Python 3.10 with vtk 9.2.0rc1, but extends down to py3.7

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ghisvailcommented, Jul 12, 2022

You’re welcome. Would be great to get a release to avoid installing from GitHub 🙏

1reaction
OualidBenkarimcommented, Jul 12, 2022

Yep, this should work fine now. Thanks @ghisvail

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pip installation conflict · Issue #10 · pyvista/pyiges
Installing this package using pip fails due to a dependency conflict between pyvista and vtk. Full log below: Installing pyiges.
Read more >
ReadVTK.jl
With ReadVTK.jl you can read in data from VTK XML files in Julia. It aims to complement the excellent package WriteVTK.jl. ReadVTK is...
Read more >
vtk.numpy_interface.dataset_adapter - BrainSpace
We have implemented a VTKCompositeDataArray class that handles many Numpy style operators and is supported by all algorithms in the algorithms module.
Read more >
Error "filename.whl is not a supported wheel on this platform"
If you are still getting an error saying "scipy-0.18.1-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform", then go for the win32 version....
Read more >
Support for 3D brain visualization in headless mode?
RuntimeError Traceback (most recent call last) Input In [5], in <module> 7 ... 660 # Note: This is only available in VTK 9+...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found