enthought / mayavi

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

mayavi not running #456

Open debbisrs opened 7 years ago

debbisrs commented 7 years ago

Dear,

After installation of mayavi I see the the following errors on running mayavi2 in terminal:

debabrata@debabrata-LIFEBOOK-A544:~$ mayavi2 Traceback (most recent call last): File "/usr/local/bin/mayavi2", line 11, in load_entry_point('mayavi==4.5.0', 'gui_scripts', 'mayavi2')() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 567, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2604, in load_entry_point return ep.load() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2264, in load return self.resolve() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2270, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/local/lib/python2.7/dist-packages/mayavi/scripts/mayavi2.py", line 494, in raise ImportError(msg) ImportError: cannot import name provides


Could not load envisage. You might have a missing dependency. Do you have the EnvisageCore and EnvisagePlugins installed?

If you installed Mayavi with easy_install, try 'easy_install '. 'easy_install Mayavi[app]' will also work.

If you performed a source checkout and installed via 'python setup.py develop', be sure to run the same command in the EnvisageCore and EnvisagePlugins folders.

If these packages appear to be installed, check that your numpy and configobj are installed and working. If you need numpy, 'easy_install numpy' will install numpy. Similarly, 'easy_install configobj' will install configobj.

Please suggest.

Thank you

jonathanrocher commented 7 years ago

What python distribution are you using? You system's? How did you install mayavi? What platform?

debbisrs commented 7 years ago

Dear, I'm using ubuntu 14.04, 32-bit. I have both python 2.7 & 3. I tired installing mayavi with all possible ways, eg, pip, easy_install, from synaptic pack age manager, source code. But always the same error is shown.

Thank You.

On Nov 4, 2016 8:46 PM, "Jonathan Rocher" notifications@github.com wrote:

What python distribution are you using? You system's? How did you install mayavi? What platform?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/enthought/mayavi/issues/456#issuecomment-258459179, or mute the thread https://github.com/notifications/unsubscribe-auth/AH7th4whNihU_E5kftFBphw1_Emg3R0xks5q60xbgaJpZM4KpfOZ .

kitchoi commented 7 years ago

Hi @debbisrs, could you please provide the versions of traits, traitsui and pyface? Try pip show traits traitsui pyface

jonathanrocher commented 7 years ago

Any chance you could install Canopy (https://store.enthought.com/downloads) or Anaconda (https://www.continuum.io/downloads) into your Ubuntu and use that as your distribution? It is by far the best and easiest way to install and manage packages and stay up to date.

If you have already invested time and installed many packages in your python distribution then pip is probably your best bet but it will also require for you to install all of mayavi's dependencies, including numpy, traits, traitsui, wx-python, and envisage. To do that, sudo pip install PACKAGE_NAME should work except for wx-python, I had to do:

sudo apt-get install python-wxgtk3.0

I am finding the compilation of VTK to be the harder part.

You can make sure each of these dependencies are installed correctly by starting python and typing import numpy, import traits, import envisage... If you have an installation issue, that might help pinpoint which package is the cause of the issue. HTH.

debbisrs commented 7 years ago

Dear, Thank You all for the response. The version of the package are: Traits=4.1.0 Traitsui=4.1.0 Pyface=4.1.0

On Nov 4, 2016 11:21 PM, "Kit Yan Choi" notifications@github.com wrote:

Hi @debbisrs https://github.com/debbisrs, could you please provide the versions of traits, traitsui and pyface? Try pip show traits traitsui pyface

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/enthought/mayavi/issues/456#issuecomment-258502080, or mute the thread https://github.com/notifications/unsubscribe-auth/AH7th7J1nGHbtlJFSmp3DtxqKBaPe59hks5q63CVgaJpZM4KpfOZ .

debbisrs commented 7 years ago

Dear, I have checked all & see they are installed correctly.

On Nov 5, 2016 1:44 AM, "Jonathan Rocher" notifications@github.com wrote:

Any chance you could install Canopy (https://store.enthought.com/downloads) or Anaconda (https://www.continuum.io/downloads) into your Ubuntu and use that as your distribution? It is by far the best and easiest way to install and manage packages and stay up to date.

If you have already invested time and installed many packages in your python distribution then pip is probably your best bet but it will also require for you to install all of mayavi's dependencies, including numpy, traits, traitsui, wx-python, and envisage. To do that, sudo pip install PACKAGE_NAME should work except for wx-python, I had to do:

sudo apt-get install python-wxgtk3.0

I am finding the compilation of VTK to be the harder part.

You can make sure each of these dependencies are installed correctly by starting python and typing import numpy, import traits, import envisage... If you have an installation issue, that might help pinpoint which package is the cause of the issue. HTH.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/enthought/mayavi/issues/456#issuecomment-258535962, or mute the thread https://github.com/notifications/unsubscribe-auth/AH7th1_zwOAp7r2Ruc9EX8Po89xK_jwNks5q65ITgaJpZM4KpfOZ .

kitchoi commented 7 years ago

@debbisrs I guess the "ImportError: cannot import name provides" refers to importing traits.api.provides, which is available for traits >= 4.4.0 Please could you try to update traits (you might benefit from updating traitsui and pyface as well) and see if that solves the problem?