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

Stuck at Building wheel for mayavi (setup.py) #1065

Closed
woochangchung opened this issue Aug 5, 2021 · 25 comments
Closed

Stuck at Building wheel for mayavi (setup.py) #1065

woochangchung opened this issue Aug 5, 2021 · 25 comments

Comments

@woochangchung
Copy link

woochangchung commented Aug 5, 2021

Here is my installation environment: Ubuntu 20.04 LTS on a ThinkPad P15 laptop
image
And when I do pip install mayavi, I get stuck during the Building wheel process:
image

Python version is 3.8.10.

@TravisPetit
Copy link

TravisPetit commented Aug 6, 2021

Same problem here, also on Ubuntu 20.04 LTS.
And when I try to install the bleeding edge version by cloning the repository I get a TVTK - VTK incompatibility error, as pointed out here #1061.

Older versions seem to also freeze during the installation.

@DanMunchie
Copy link

Same issue on Windows 10 64bit

@Sbozzolo
Copy link

Sbozzolo commented Aug 9, 2021

Here is another (reproducible) example where it is not possible to build mayavi on Ubuntu 20.04 on a GitHub Actions runner.

Edit: the Action wouldn't work with ubuntu-18.04 either

@Kukuster
Copy link

reinstalling dependencies did help me with this. Try removing and installing:

• vtk
• pyqt5
• libvtk6-dev
• libpq5

again. Then try to install mayavi again

@fbottarel
Copy link

On Ubuntu 18.04 I managed to un-stuck the mayavi setup with the configuration

  • vtk6, libvtk6-dev and libvtk6-dev-qt installed via apt
  • PyQt5 and vtk==8.1.0 installed via pip3
  • Python 3.6.9

Not sure it will help tho. @woochangchung try downgrading the vtk package version installed via pip3 to something < 9.0.3

@carlsonmark
Copy link

Downgrading to vtk==9.0.1 worked for me on Ubuntu 20.04

@bdenoun
Copy link

bdenoun commented Aug 26, 2021

Thanks a bunch @carlsonmark, pip install vtk==9.0.1 worked like a charm on my Ubuntu 20.04

@cviviers
Copy link

Downgrading to vtk==9.0.1 on windows 10 64bit, python 3.8 will also solve it. It still takes a while to build the wheel and can appear to be hanging.

@DanMunchie
Copy link

Downgrading to vtk==9.0.1 on windows 10 64bit, python 3.8 will also solve it. It still takes a while to build the wheel and can appear to be hanging.

Thanks for this - all working now!

@Sbozzolo
Copy link

I found that pinning to 9.0.1 works for python 3.6 (see github action, but not for python 3.9 (see github action. This is because there are no wheels for vtk 9.0.1 for python 3.9.

@Qcellaris
Copy link

vtk 9.0.1 with latest version of wheel works for me
vtk 9.0.3 with wheel 0.34.2 works for me
vtk 9.0.3 with latest version of wheel doesn't work for me

I don't know what the true issue is here, but now I just used the wheel 0.34.2 option.

@fwilliams
Copy link

There is no support for vtk 9.0.1 with python 3.9. Is there any progress on getting this to work with 9.0.3?

@SiddharthaMithiya
Copy link

Experiencing same thing, vtk-9.0.1 not available for python 3.9 starting from 9.0.2.
A specific solution in needed, where everyone facing same problem in installation.

@rahulporuri
Copy link
Contributor

@fwilliams and @SiddharthaMithiya we're working on making a release which supports the latest vtk versions (9.0.3 and 9.1.0 now). The current development branch contains the necessary fixes for vtk 9.0.3 so if possible, we recommend that you install mayavi from github directly, until we make a release.

@SiddharthaMithiya
Copy link

SiddharthaMithiya commented Nov 10, 2021 via email

@rahulporuri
Copy link
Contributor

Now, can you please explain me how to install it from GitHub?

You need to do pip install git+https://github.com/mayavi.git@master#egg=mayavi. Ref https://pip.pypa.io/en/stable/topics/vcs-support/#git for more information regarding installing packages from git/github.

@SiddharthaMithiya
Copy link

SiddharthaMithiya commented Nov 10, 2021 via email

@rahulporuri
Copy link
Contributor

@SiddharthaMithiya the command I mentioned earlier is wrong. Can you please run this command in your python environment - python -m pip install vtk==9.0.3 git+https://github.com/enthought/mayavi.git@master#egg=mayavi and copy-paste the full output of that command?

@SiddharthaMithiya
Copy link

SiddharthaMithiya commented Nov 10, 2021 via email

@rahulporuri
Copy link
Contributor

Successfully installed mayavi-4.7.4.dev0 vtk-9.0.3

@SiddharthaMithiya ignoring the first error, the installation seems to have worked because of this message. I think the installation worked. Can you try running import mayavi from the python prompt?

@SiddharthaMithiya
Copy link

SiddharthaMithiya commented Nov 10, 2021 via email

@SiddharthaMithiya
Copy link

SiddharthaMithiya commented Nov 10, 2021 via email

@rahulporuri
Copy link
Contributor

closing as the latest 4.7.4 mayavi release fixes this issue. please try reinstalling mayavi.

yoda-vid added a commit to sanderslab/magellanmapper that referenced this issue Jan 14, 2022
Support Python 3.9 when building a Venv environment now that Mayavi 4.7.4 is released (see enthought/mayavi#1065 (comment)) and compatible with VTK 9.1, which provides wheels for Python 3.9.
yoda-vid added a commit to sanderslab/magellanmapper that referenced this issue Jan 17, 2022
Support Python 3.9 when building a Venv environment now that Mayavi 4.7.4 is released (see enthought/mayavi#1065 (comment)) and compatible with VTK 9.1, which provides wheels for Python 3.9.
@yumendecc
Copy link

在 Ubuntu 20.04 上降级到 vtk==9.0.1 对我有用
对我也有用 ubuntu 20.04

@AmruthGudigar111
Copy link

AmruthGudigar111 commented Jun 9, 2023

@rahulporuri
I am getting error like this when i trying to install in windows 64 bit system Python version is 3.11

PLease help me with this error

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests