Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pytest.mark.xfail from vtk tests when Mayavi supports Numpy 2.0 #129

Open
ashwinvis opened this issue Nov 21, 2024 · 1 comment
Open

Comments

@ashwinvis
Copy link
Member

ashwinvis commented Nov 21, 2024

@ashwinvis
Copy link
Member Author

Here is what happens with numpy 2.0

❯ python -c 'from tvtk.api import tvtk; tvtk.Hexahedron()'
Traceback (most recent call last):
  File "tvtk_classes/tvtk_helper.py", line 22, in get_module
ModuleNotFoundError: No module named 'tvtk.custom.hexahedron'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "tvtk_classes/tvtk_helper.py", line 1315, in <lambda>
  File "tvtk_classes/tvtk_helper.py", line 47, in get_class
  File "tvtk_classes/tvtk_helper.py", line 28, in get_module
  File "tvtk_classes/hexahedron.py", line 12, in <module>
  File "/home/ashwinmo/Sources/foss/pymech/.nox/tests-cov-vtk-3-10/lib/python3.10/site-packages/tvtk/array_handler.py", line 29, in <module>
    from tvtk.array_ext import set_id_type_array
  File "array_ext.pyx", line 1, in init array_ext
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant