-
Notifications
You must be signed in to change notification settings - Fork 285
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
Impossible to install mayavi on Windows 11 and Python 3.X - Windows fatal exception: access violation #1324
Comments
I have the same issue on Linux from python 3.11 and 3.12 and mayavi 4.8.3.dev0 |
I have a similar problem on Windows 11 C:\Windows\System32>pip3 install mayavi × Building wheel for mayavi (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. I install from the command line with administrator rights. please suggest a solution to the problem. |
+1 |
I am on Windows 10 with the same problem I activated the verbose mode in vtk_parser.py by setting VTK_PARSER_VERBOSE
and the last lines I see when I run
I tried different versions of the Python vtk package (9.4.0, 9.2.5, 9.1.0) but the message is identical. |
Same issue with Linux, Python 3.8 and mayavi 4.8.2
|
Possible workaround: |
@prabhuramachandran some help please |
I met the same problem. So how do you solve it? some help please. |
Same problem on running
|
I have been trying for 20 hours to get this to install and it simply does not install. I don't understand how it is possible to stop working after using this for years. I have tried 20 versions of Python 3.X and nothing works. All pip installs fails with:
Building TVTK classes... Windows fatal exception: access violation
I tried pip install mayavi and it fails for all Python 3.X versions I tried (3.13, 3.12, 3.9, 3.8, 3.7, 3.10, 3.11) they ALL fail. NONE works.
I have a mayavi working on an older machine and I tried to install the exact same versions of packages I have there:
Python 3.9.12 installed:
pip install numpy==1.25.2
pip install apptools==5.2.1
pip install envisage==7.0.3
pip install packaging==23.1
pip install pyface==8.0.0
pip install pygments==2.15.1
pip install traits==6.4.1
pip install traitsui==8.0.0
pip install vtk==9.2.6
pip install mayavi==4.8.1
Result: Numpy is required to build Mayavi correctly, please install it first. If I upgrade numpy, I get the same result.
I then went ahead and cloned the git version. It failed with
Building TVTK classes... Windows fatal exception: access violation
. I managed to find the method that fails:fails at vtk_parser.py, line 713: default = getattr(obj, 'Get%s' % key)()
The only method that fails is klass_name == 'vtkGenericCell' and key == 'CellFaces'. So I went ahead and added:
Then it worked (this was with Python 3.12). However, when I tried to use mayavi, I get:
TypeError: unhashable type: 'PolyData'
Could anyone help with ANY version of Python and vtk and mayavi that works on Windows 11? I have Visual Studio 2019 installed if that makes any difference.
The text was updated successfully, but these errors were encountered: