enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.28k stars 282 forks source link

pip install mayavi build fails #1259

Open DarkSky7 opened 1 year ago

DarkSky7 commented 1 year ago

My environment is Windows-10, Python 3.11, ... Requirement already satisfied: numpy in c:\programs\python311\lib\site-packages (from mayavi) (1.25.0) Collecting pyface>=6.1.1 (from mayavi) Using cached pyface-8.0.0-py3-none-any.whl (1.3 MB) Requirement already satisfied: pygments in c:\users\user\appdata\roaming\python\python311\site-packages (from mayavi) (2.15.1) Collecting traits>=6.0.0 (from mayavi) Using cached traits-6.4.1-cp311-cp311-win_amd64.whl (5.0 MB) Collecting traitsui>=7.0.0 (from mayavi) Using cached traitsui-8.0.0-py3-none-any.whl (1.5 MB) Requirement already satisfied: packaging in c:\users\user\appdata\roaming\python\python311\site-packages (from mayavi) (23.1) Collecting vtk (from mayavi) Using cached vtk-9.2.6-cp311-cp311-win_amd64.whl (48.8 MB) Collecting configobj (from apptools->mayavi) Using cached configobj-5.0.8-py2.py3-none-any.whl (36 kB) Requirement already satisfied: setuptools in c:\programs\python311\lib\site-packages (from envisage->mayavi) (67.8.0) Requirement already satisfied: matplotlib>=2.0.0 in c:\programs\python311\lib\site-packages (from vtk->mayavi) (3.7.1) Requirement already satisfied: contourpy>=1.0.1 in c:\programs\python311\lib\site-packages (from matplotlib>=2.0.0->vtk->mayavi) (1.0.7) Requirement already satisfied: cycler>=0.10 in c:\programs\python311\lib\site-packages (from matplotlib>=2.0.0->vtk->mayavi) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in c:\programs\python311\lib\site-packages (from matplotlib>=2.0.0->vtk->mayavi) (4.39.4) Requirement already satisfied: kiwisolver>=1.0.1 in c:\programs\python311\lib\site-packages (from matplotlib>=2.0.0->vtk->mayavi) (1.4.4) Requirement already satisfied: pillow>=6.2.0 in c:\programs\python311\lib\site-packages (from matplotlib>=2.0.0->vtk->mayavi) (9.5.0) Requirement already satisfied: pyparsing>=2.3.1 in c:\programs\python311\lib\site-packages (from matplotlib>=2.0.0->vtk->mayavi) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in c:\users\user\appdata\roaming\python\python311\site-packages (from matplotlib>=2.0.0->vtk->mayavi) (2.8.2) Requirement already satisfied: six in c:\users\user\appdata\roaming\python\python311\site-packages (from configobj->apptools->mayavi) (1.16.0) Building wheels for collected packages: mayavi Building wheel for mayavi (pyproject.toml) ... error error: subprocess-exited-with-error (specifics to follow)...

Note the version of numpy installed, and yet when compiling /Tctvtk\src\array_ext.c, I get this warning: "Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION."

There are about a dozen more compile warnings, then you get: " tvtk\src\array_ext.c(2313): error C2198: 'PyCode_New': too few arguments for call tvtk\src\array_ext.c(2340): error C2037: left of 'f_lineno' specifies undefined struct/union '_frame'"

I attached the full '$pip install mayavi' stdout & stderr herewith.

install_myavi_out.txt install_myavi_err.txt

byteofsoren commented 1 year ago

I got the same error on ArchLinux using python3.

apwebber commented 1 year ago

Going back to Python 3.9.13 solved this for me.

tkornack commented 1 year ago

pip installing mayavi has failed to build on apple silicon for a very long time. However, the master branch works just fine.

Please cut a new release!

PabloLION commented 8 months ago

Going back to Python 3.9.13 solved this for me.

Tested on mac, python 3.10 is fine, too. But NOT python 3.11.