enthought / mayavi

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

'from mayavi import mlab' goes into a dead cycle #1058

Closed alexwangxiang closed 3 years ago

alexwangxiang commented 3 years ago

My system is ubuntu 20.04, and I installed mayavi package inside a conda virtual environment with python 3.7.10. Each time when I run the sentence 'from mayavi import mlab', it goes into a dead cycle sometimes, and produces no error information. It stucks at the following screen:

(openpcdet) alexwangxiang@alexwangxiang:~$ python Python 3.7.10 (default, Jun 4 2021, 14:48:32) [GCC 7.5.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.

from mayavi import mlab

I have to press Ctrl+z or Ctrl+\ to stop the session in terminal. But sometimes it works, mlab can be imported successfully, and I don't know the reason why.

brankyy commented 3 years ago

Same problem on ubuntu 18.04. I used pip to install mayavi and python version is 3.6.9.

There is no error information. And it works sometimes. I need to take my chance everytime hoping it works.

alexwangxiang commented 3 years ago

Same problem on ubuntu 18.04. I used pip to install mayavi and python version is 3.6.9. There is no error information. And it works sometimes. I need to take my chance everytime hoping it works.

I followed the instruction given in issue #1057, uninstalled my previously installed vtk 9.0.3, and installed vtk 9.0.1. Everything works well since then, and I never failed to import mlab. Hope this comment will help you.