-
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
pip install fails to build tvtk classes on Ubuntu-22.04 wsl2 instance #1325
Comments
Same here but on native(not wsl2) Ubuntu 22.04.03 LTS ` × 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. |
Same problem here on macOS sequoia 15.0.1 with python 3.10.16 |
Possible duplicate of #1324 |
Downgrading numpy and vtk works for me, first
then
|
For me this seems to work if Without wheel installed pip seems to try other mayavi versions as well, they all fail.
If wheel is not installed the installation of 4.8.2 using the command above fails with
|
not working for me😭 |
Wanted to add my voice as well to say that the workaround likewise didn't work for me. Even when pip installing wheel beforehand. |
Can I assume that you used a clean environment or uninstalled vtk and numpy beforehand? |
I have a local version that I have not touched that works but my issue arises when new builds run on readthedocs. I specified the numpy and vtk versions in requirements.txt and I likewise specify a wheel version under build-system in pyproject.toml. No dice unfortunately 😞 |
@GrowlingM1ke |
@harrandt I have figured it out, it looks like readthedocs does install the correct versions of the packages.
But it seems to be using the wrong version wheel
I've tested out locally with the correct version of wheel 0.45.1 and it worked for me so I think that is the culprit, however for the life of me I am unable to get readthedocs to use the correct wheel version. Specifying build-system in pyproject.toml seems to do nothing. |
I tried to install it again later, and it's actually OK. That's what I did: It indeed works, thanks to harrandt! |
Could you please try with the latest version which I will release this weekend on PyPI?
|
I did as you, but I get the following: |
@OCEANOUXIN |
Yes, this works for me, without any downgrade of VTK and numpy, thanks! |
I've been trying to install mayavi on a fresh WSL2 instance for a while now, trying different versions of Ubuntu, Python, numpy, vtk, and installation methods, and had no success so far, and almost always get the same error when building wheel for mayavi.
The weirdest thing is that a while back I managed to install it just fine in a WSL2 Ubuntu 22.04 instance, and copying the Python version, and pip installed package versions does not work on a fresh instance (I might have installed C libraries that I lost track of in that first instance).
For specificity, I will copy here the latest versions that I tried the installation process with (which try to replicate the setup in which it works), and the error obtained.
Distribution: Ubuntu 22.04.5 LTS (Jammy)
Python: 3.10.12
numpy 1.26.4
PyQt5 5.15.11
vtk 9.4.0 (also tried with 9.3.1)
Another thing that might be relevant is that I'm using a venv and pip to install everything
Output of python -m pip install mayavi:
`
Collecting mayavi
Using cached mayavi-4.8.2.tar.gz (7.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: packaging in ./venv3/lib/python3.10/site-packages (from mayavi) (24.2)
Collecting envisage
Using cached envisage-7.0.3-py3-none-any.whl (268 kB)
Collecting apptools
Using cached apptools-5.3.0-py3-none-any.whl (230 kB)
Collecting traits>=6.0.0
Using cached traits-6.4.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB)
Requirement already satisfied: vtk in ./venv3/lib/python3.10/site-packages (from mayavi) (9.3.1)
Collecting pygments
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
Collecting traitsui>=7.0.0
Using cached traitsui-8.0.0-py3-none-any.whl (1.5 MB)
Collecting pyface>=6.1.1
Using cached pyface-8.0.0-py3-none-any.whl (1.3 MB)
Requirement already satisfied: numpy in ./venv3/lib/python3.10/site-packages (from mayavi) (1.26.4)
Requirement already satisfied: setuptools in ./venv3/lib/python3.10/site-packages (from envisage->mayavi) (59.6.0)
Requirement already satisfied: matplotlib>=2.0.0 in ./venv3/lib/python3.10/site-packages (from vtk->mayavi) (3.9.3)
Requirement already satisfied: cycler>=0.10 in ./venv3/lib/python3.10/site-packages (from matplotlib>=2.0.0->vtk->mayavi) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in ./venv3/lib/python3.10/site-packages (from matplotlib>=2.0.0->vtk->mayavi) (4.55.1)
Requirement already satisfied: kiwisolver>=1.3.1 in ./venv3/lib/python3.10/site-packages (from matplotlib>=2.0.0->vtk->mayavi) (1.4.7)
Requirement already satisfied: contourpy>=1.0.1 in ./venv3/lib/python3.10/site-packages (from matplotlib>=2.0.0->vtk->mayavi) (1.3.1)
Requirement already satisfied: pyparsing>=2.3.1 in ./venv3/lib/python3.10/site-packages (from matplotlib>=2.0.0->vtk->mayavi) (3.2.0)
Requirement already satisfied: python-dateutil>=2.7 in ./venv3/lib/python3.10/site-packages (from matplotlib>=2.0.0->vtk->mayavi) (2.9.0.post0)
Requirement already satisfied: pillow>=8 in ./venv3/lib/python3.10/site-packages (from matplotlib>=2.0.0->vtk->mayavi) (11.0.0)
Requirement already satisfied: six>=1.5 in ./venv3/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib>=2.0.0->vtk->mayavi) (1.16.0)
Building wheels for collected packages: mayavi
Building wheel for mayavi (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for mayavi (pyproject.toml) did not run successfully.
│ exit code: -11
╰─> [43 lines of output]
running bdist_wheel
running build
running build_py
Building tvtk_classes.zip
----------------------------------------------------------------------
Building TVTK classes... Fatal Python error: Segmentation fault
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mayavi
Failed to build mayavi
ERROR: Could not build wheels for mayavi, which is required to install pyproject.toml-based projects
`
If anyone could help me out find a solution even if it means changing distro, python or any installed package versions that would be great. I've been heavily relying on Mayavi to prototype solutions at work, and might just have to resort to another package if I cannot figure this out ):
The text was updated successfully, but these errors were encountered: