[vtkusers] Installing VTK for Mayavi
Mathew Mehrian
mitzpetel09 at yahoo.com
Fri Apr 28 14:53:15 EDT 2017
Hi there,
I'm new to VTK and the mailing list. Let me know if I'm going about asking questions the wrong way.
I am new to programming/python. I am working through an introduction to python book, using Ipython, and I need to use mayavi. The book pointed me to "mayavi.sourceforge.net" and from there I followed the installation from sources link to download mayavi-1.5.zip (https://sourceforge.net/projects/mayavi/files/mayavi/1.5/).
Then I attempted to follow the links for VTK, but they did not connect to anywhere. I went to the VTK.org/downloads and downloaded first the "Standalone Python Interface (Installer)" for linux (and unzipped it), but when trying to import VTK, I got the " No module named vtk" message. I tried installing the zip file from "Source", VTK-7.1.1.zip but got the same error.
When opening ipython to use mayavi, I input "ipython --gui=wx" and get these errors:
[TerminalIPythonApp] WARNING | Eventloop or matplotlib integration failed. Is matplotlib installed?---------------------------------------------------------------------------ImportError Traceback (most recent call last)/home/mathew_mehrian/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/terminal/interactiveshell.pyc in enable_gui(gui, app) 337 from IPython.lib.inputhook import enable_gui as real_enable_gui 338 try:--> 339 return real_enable_gui(gui, app) 340 except ValueError as e: 341 raise UsageError("%s" % e)
/home/mathew_mehrian/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/lib/inputhook.pyc in enable_gui(self, gui, app) 248 self._current_gui = gui 249 --> 250 app = gui_hook.enable(app) 251 if app is not None: 252 app._in_event_loop = True
/home/mathew_mehrian/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/lib/inputhook.pyc in enable(self, app) 310 app = wx.App(redirect=False, clearSigInt=False) 311 """--> 312 import wx 313 314 wx_version = V(wx.__version__).version
/home/mathew_mehrian/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/wx/__init__.py in <module>() 43 44 # Load the package namespace with the core classes and such---> 45 from wx._core import * 46 del wx 47
/home/mathew_mehrian/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/wx/_core.py in <module>() 2 # Don't modify this file, modify the SWIG interface instead. 3 ----> 4 import _core_ 5 import new 6 new_instancemethod = new.instancemethod
ImportError: /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined symbol: g_type_class_adjust_private_offset
Matplotlib is definitely installed, I've used it before.
Could anyone please help me figure out what it is I am doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170428/77f7c071/attachment.html>
More information about the vtkusers
mailing list