Skip to content
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

mayavi 4.7.1 doesn't seem to work on Python 3.9 #940

Closed
rahulporuri opened this issue Jul 9, 2020 · 4 comments
Closed

mayavi 4.7.1 doesn't seem to work on Python 3.9 #940

rahulporuri opened this issue Jul 9, 2020 · 4 comments
Labels

Comments

@rahulporuri
Copy link
Contributor

This is directly related to #939 and the fact that vtk 8 wheels are not available for Python 3.9. I'm not sure if the vtk 8 wheels cannot be built for Python 3.8 or have not been built for Python 3.8.

@rahulporuri rahulporuri added the bug label Jul 9, 2020
@rahulporuri rahulporuri pinned this issue Jul 9, 2020
@rahulporuri rahulporuri changed the title mayavi 4.7.2 doesn't seem to work on Python 3.9 mayavi 4.7.1 doesn't seem to work on Python 3.9 Jul 9, 2020
@chrisgmorton
Copy link

chrisgmorton commented Jul 15, 2020

There's a patch for VTK 8.2 source to make compatible with Python 3.8 (and probably Python 3.9). The fixes have been applied to VTK 9.0 source already (no VTK 8.3 release seems to be in the works). There are, however, Mayavi compatibility issues with VTK 9.0 which I know have been reported separately, here, and are being worked on (thanks!).

See the VTK issue (and link to patch download therein): https://gitlab.kitware.com/vtk/vtk/-/issues/17670

I can confirm that this patch enables me to build VTK 8.2 against Python 3.8.3 (and QT5.14.2, PyQt5-5.13.2, NumPy 1.19.0/MKL2020.1) and it works with Mayavi 4.7.1. Tested on Ubuntu 16.04, 18.04, 20.04 and MacOSX Catalina 10.15.5 (no testing on Windows 10 native, only WSL 2 which works well).

@larsoner
Copy link
Contributor

This should be fixed in latest master

@panthersuper
Copy link

panthersuper commented Nov 12, 2020

This is solved for me. Here is how it is done:

  • install VTK 9.0 first. for mac is like brew install vtk
  • $ git clone https://github.com/enthought/mayavi.git
  • in mayavi/requirements.txt, remove the line of vtk
  • in mayavi/mayavi/__init__.py, remove 'vtk' from __requires__

Then finish installation as guided:

$ pip install -r requirements.txt
$ pip install PyQt5  # replace this with any supported toolkit
$ python setup.py install  # or develop

@rahulporuri
Copy link
Contributor Author

closing as this is no longer an issue

@rahulporuri rahulporuri unpinned this issue Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants