[vtkusers] Installing VTK for Mayavi
Aashish Chaudhary
aashish.chaudhary at kitware.com
Fri Apr 28 15:09:29 EDT 2017
I believe you want to use mayavi from here:
https://github.com/enthought/mayavi as that I think supports vtk 7.* (it
might not be in the master though). you may want to post an email to mayavi
list for more clarification on it but last I heard was that there is a
version out that supports VTK 7.*.
Thanks,
On Fri, Apr 28, 2017 at 2:53 PM Mathew Mehrian via vtkusers <
vtkusers at vtk.org> wrote:
> 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?
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170428/68fcf199/attachment.html>
More information about the vtkusers
mailing list