Closed rwyoung7 closed 4 years ago
@rwyoung7 i updated your description to add code formatting. I hope that's okay.
Python 3.8 pulls VTK9 which requires mayavi
master. Workaround for now is to pip install https://github.com/enthought/mayavi/zipball/master
or so
Thank you. The https://github.com/enthought/mayavi/zipball/master worked.
ERROR: Command errored out with exit status 1: 'C:\Users\awips\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\awips\AppData\Local\Temp\pip-install-rnps0tlw\traitsui_37656b6eb19d4333a96c351e1e2ed80d\setup.py'"'"'; file='"'"'C:\Users\awips\AppData\Local\Temp\pip-install-rnps0tlw\traitsui_37656b6eb19d4333a96c351e1e2ed80d\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\awips\AppData\Local\Temp\pip-record-t_p51uwk\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\awips\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Include\traitsui' Check the logs for full command output.
Agreed, this is still a problem for Python 3.9. I had to downgrade to Python 3.7 and install a specific version of VTK beforehand.
pip install https://github.com/enthought/mayavi/zipball/master
This is the only thing that worked for installing mayavi
on my macOS system with conda.
I tried python 3.9, 3.8 and variations of previous release versions of vtk
and mayavi
, none of which worked.
Should be fixed in the new 4.8.1 release.
Hi all, I tried to use either pip install mayavi or pip install https://github.com/enthought/mayavi/zipball/master none of it works they stop at the same error: configobj. when I search it is a legacy package for python2. my environment is python 3.7 any ideas to solve?
C:\Users\o-kyang>pip install https://github.com/enthought/mayavi/zipball/master
Collecting https://github.com/enthought/mayavi/zipball/master
Using cached https://github.com/enthought/mayavi/zipball/master
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting envisage
Using cached envisage-6.1.0-py3-none-any.whl (280 kB)
Requirement already satisfied: vtk in c:\users\o-kyang\appdata\local\programs\spyder\python\lib\site-packages (from mayavi==4.8.2.dev0) (9.2.2)
Requirement already satisfied: pygments in c:\users\o-kyang\appdata\local\programs\spyder\pkgs (from mayavi==4.8.2.dev0) (2.13.0)
Requirement already satisfied: packaging in c:\users\o-kyang\appdata\local\programs\spyder\pkgs (from mayavi==4.8.2.dev0) (21.3)
Collecting traitsui>=7.0.0
Using cached traitsui-7.4.2-py3-none-any.whl (1.5 MB)
Collecting pyface>=6.1.1
Using cached pyface-7.4.3-py3-none-any.whl (1.3 MB)
Requirement already satisfied: numpy in c:\users\o-kyang\appdata\local\programs\spyder\pkgs (from mayavi==4.8.2.dev0) (1.22.4)
Collecting apptools
Using cached apptools-5.2.0-py3-none-any.whl (229 kB)
Collecting traits>=6.0.0
Using cached traits-6.4.1-cp37-cp37m-win_amd64.whl (5.0 MB)
Requirement already satisfied: importlib-resources>=1.1.0 in c:\users\o-kyang\appdata\local\programs\spyder\pkgs (from pyface>=6.1.1->mayavi==4.8.2.dev0) (5.10.0)
Requirement already satisfied: importlib-metadata>=3.6.0 in c:\users\o-kyang\appdata\local\programs\spyder\pkgs (from pyface>=6.1.1->mayavi==4.8.2.dev0) (5.0.0)
Collecting configobj
Using cached configobj-5.0.6.tar.gz (33 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\temp\pip-install-29s4msxx\configobj_9b92c695733840439ec2e6a1e365cf8d\setup.py", line 17, in <module>
from _version import __version__
ModuleNotFoundError: No module named '_version'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
or the other one
Collecting mayavi
Using cached mayavi-4.8.1.tar.gz (20.6 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting traitsui>=7.0.0
Using cached traitsui-7.4.2-py3-none-any.whl (1.5 MB)
Collecting pyface>=6.1.1
Using cached pyface-7.4.3-py3-none-any.whl (1.3 MB)
Collecting traits>=6.0.0
Using cached traits-6.4.1-cp37-cp37m-win_amd64.whl (5.0 MB)
Collecting envisage
Using cached envisage-6.1.0-py3-none-any.whl (280 kB)
Requirement already satisfied: packaging in c:\users\o-kyang\appdata\local\programs\spyder\pkgs (from mayavi) (21.3)
Requirement already satisfied: numpy in c:\users\o-kyang\appdata\local\programs\spyder\pkgs (from mayavi) (1.22.4)
Requirement already satisfied: pygments in c:\users\o-kyang\appdata\local\programs\spyder\pkgs (from mayavi) (2.13.0)
Requirement already satisfied: vtk in c:\users\o-kyang\appdata\local\programs\spyder\python\lib\site-packages (from mayavi) (9.2.2)
Collecting apptools
Using cached apptools-5.2.0-py3-none-any.whl (229 kB)
Requirement already satisfied: importlib-resources>=1.1.0 in c:\users\o-kyang\appdata\local\programs\spyder\pkgs (from pyface>=6.1.1->mayavi) (5.10.0)
Requirement already satisfied: importlib-metadata>=3.6.0 in c:\users\o-kyang\appdata\local\programs\spyder\pkgs (from pyface>=6.1.1->mayavi) (5.0.0)
Collecting configobj
Using cached configobj-5.0.6.tar.gz (33 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\temp\pip-install-yjg70l07\configobj_7256d21d170c45b9b4486ec1a5e4097b\setup.py", line 17, in <module>
from _version import __version__
ModuleNotFoundError: No module named '_version'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.```
I am trying to install mayavi in a clean virtual environment with Python 3.8.5 using pip.
I can successfully install vtk, numpy, and PyQt5, but get error 3221225477 trying to install mayavi.
With numpy and vtk already successfully installed: