No module named 'tvtk.custom.light'
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 316
- Avg merge
- 7h 44m
- Merged PRs (30d)
- 5
Description
Hi.
I'm running Python 3.10.12 under ubuntu 22.04.
I installed mayavi through `pip install mayavi`, followed by `pip3 install PyQt5`
In any python script, on `from mayavi import mlab` I've got the following errors:
> Exception has occurred: ValueError
numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
ModuleNotFoundError: No module named 'tvtk.custom.light'
>
> During handling of the above exception, another exception occurred:
>
> File "/.py", line 19, in
from mayavi import mlab
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
from `pip freeze`:
>mayavi==4.8.2
numpy==2.0.2
PyQt5==5.15.11
vtk==9.4.1
Running `mayavi2` also fails:
>Traceback (most recent call last):
File "tvtk_classes/tvtk_helper.py", line 22, in get_module
ModuleNotFoundError: No module named 'tvtk.custom.light'
>
>During handling of the above exception, another exception occurred:
>
>Traceback (most recent call last):
File "/bin/mayavi2", line 5, in
from mayavi.scripts.mayavi2 import main
File "/lib/python3.10/site-packages/mayavi/scripts/mayavi2.py", line 462, in
from mayavi.plugins.app import Mayavi, setup_logger
File "/lib/python3.10/site-packages/mayavi/plugins/app.py", line 19, in
from .mayavi_workbench_application import MayaviWorkbenchApplication
File "/lib/python3.10/site-packages/mayavi/plugins/mayavi_workbench_application.py", line 17, in
import mayavi.api
File "/lib/python3.10/site-packages/mayavi/api.py", line 2, in
from mayavi.core.engine import Engine
File "/lib/python3.10/site-packages/mayavi/core/engine.py", line 27, in
from mayavi.core.base import Base
File "/lib/python3.10/site-packages/mayavi/core/base.py", line 19, in
from tvtk.pyface.tvtk_scene import TVTKScene
File "/lib/python3.10/site-packages/tvtk/pyface/tvtk_scene.py", line 25, in
from tvtk.pyface import light_manager
File "/lib/python3.10/site-packages/tvtk/pyface/light_manager.py", line 130, in
class CameraLight(HasTraits):
File "/lib/python3.10/site-packages/tvtk/pyface/light_manager.py", line 146, in CameraLight
source = Instance(tvtk.Light, ())
File "tvtk_classes/tvtk_helper.py", line 297, in
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/light.py", line 12, in
File "/lib/python3.10/site-packages/tvtk/array_handler.py", line 29, in
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.