Installation of Cadquery results in import error on Mayavi
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 316
- Avg merge
- 7h 44m
- Merged PRs (30d)
- 5
Description
# Problem description
Installation of the [Cadquery](https://cadquery.readthedocs.io/en/latest/index.html) Package through PIP breaks the import of Mayavi inside Python Scripts.
```
$ pip install mayavi
$ pip install PyQt5
```
works fine until
```
$ pip install cadquery
```
Which results in this error message when running `from mayavi import mlab`:
```
Traceback (most recent call last):
File "c:\Users\quent\Downloads\projektion\test2.py", line 1, in
from mayavi import mlab
File "C:\Users\quent\AppData\Local\Programs\Python\Python311\Lib\site-packages\mayavi\mlab.py", line 16, in
from mayavi.tools.camera import view, roll, yaw, pitch, move
File "C:\Users\quent\AppData\Local\Programs\Python\Python311\Lib\site-packages\mayavi\tools\camera.py", line 24, in
from .engine_manager import get_engine
File "C:\Users\quent\AppData\Local\Programs\Python\Python311\Lib\site-packages\mayavi\tools\engine_manager.py", line 14, in
from mayavi.core.registry import registry
File "C:\Users\quent\AppData\Local\Programs\Python\Python311\Lib\site-packages\mayavi\core\registry.py", line 16, in
from mayavi.core.metadata import Metadata, import_symbol
File "C:\Users\quent\AppData\Local\Programs\Python\Python311\Lib\site-packages\mayavi\core\metadata.py", line 11, in
from mayavi.core.pipeline_info import PipelineInfo
File "C:\Users\quent\AppData\Local\Programs\Python\Python311\Lib\site-packages\mayavi\core\pipeline_info.py", line 12, in
from .utils import get_tvtk_dataset_name
File "C:\Users\quent\AppData\Local\Programs\Python\Python311\Lib\site-packages\mayavi\core\utils.py", line 2, in
import vtk
File "C:\Users\quent\AppData\Local\Programs\Python\Python311\Lib\site-packages\vtk.py", line 43, in
from vtkmodules.vtkRenderingVolumeAMR import *
ImportError: Initialization failed for vtkRenderingVolumeAMR, not compatible with vtkmodules.vtkImagingCore
```
This error occured on 2 seperate machines running Python 3.10 and 3.11. I assume this is a poblem with mayavi, as cadquery is running fine.
Unfortunately I need Cadquery and Mayavi inside the same environment , so I can't really seperate them into environments.
I already tried a fresh reinstall of Python which results in Mayavi working until I install Cadquery.
Any help would be appreciated!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.