Christine Cordula Dantas | 4 Mar 19:30 2008
Picon

Problem installing/running mayavi

Hello. I'm trying to install/run mayavi in a mac os. Before doing  
this, I have installed PyVTK-0.4.74 and numpy-1.0.4 (not sure if I  
succeeded, though. I used 'sudo' to make the installation of these  
packages using 'sudo python setup.py install'. Without 'sudo' I was  
getting a permission denied at some point. After using 'sudo', there  
was no apparent error).

This is what I get:

=====================================
$./mayavi
Traceback (most recent call last):
   File "./mayavi", line 289, in ?
     import vtk
ImportError: No module named vtk

$ cd doc
$ python test_vtk.py
Testing if Tkinter is available...
OK - you have Tkinter
TclVersion = 8.4, TkVersion = 8.4
Traceback (most recent call last):
   File "test_vtk.py", line 210, in ?
     test_value_error()
   File "test_vtk.py", line 178, in test_value_error
     import vtk
ImportError: No module named vtk

$ python
Python 2.3.5 (#1, Jan 13 2006, 20:13:11)
(Continue reading)

tom fogal | 5 Mar 04:00 2008

Re: Problem installing/running mayavi

Christine Cordula Dantas <ccdantas <at> iae.cta.br> writes:
> Hello. I'm trying to install/run mayavi in a mac os. Before doing  
> this, I have installed PyVTK-0.4.74 and numpy-1.0.4 (not sure if I  
> succeeded, though.

mayavi is now pretty old.  Prabhu is now working on MayaVi2 ... or
maybe he's even moved on with that, I don't keep very up to date these
days.  Anyway, you should at least google around for MayaVi2 and see if
that might be a better fit for you at this point, but I'll finish the
email assuming you've done as much and really really want MayaVi (v1)
for some reason.

> I used 'sudo' to make the installation of these  
> packages using 'sudo python setup.py install'. Without 'sudo' I was  
> getting a permission denied at some point. After using 'sudo', there  
> was no apparent error).

You'll need to use sudo to install things -- so, yes, you're on the
right track.

Sounds like you compiled them manually.  If you're on a mac, I would
highly recommend one of the packaging systems, such as darwinports or
fink; maybe there are others these days too.

> This is what I get:
> 
> =====================================
> $./mayavi
> Traceback (most recent call last):
>    File "./mayavi", line 289, in ?
(Continue reading)

Prabhu Ramachandran | 6 Mar 05:48 2008
Picon

Re: Problem installing/running mayavi

Hi Christine,

Christine Cordula Dantas wrote:
> Hello. I'm trying to install/run mayavi in a mac os. Before doing  
> this, I have installed PyVTK-0.4.74 and numpy-1.0.4 (not sure if I  
> succeeded, though. I used 'sudo' to make the installation of these  
> packages using 'sudo python setup.py install'. Without 'sudo' I was  
> getting a permission denied at some point. After using 'sudo', there  
> was no apparent error).

PyVTK is not the same as VTK.  You will need to install VTK.  On the Mac 
I build it from source.  Instructions for this are here:

  https://svn.enthought.com/enthought/wiki/IntelMacPython25

cheers,
prabhu

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Prabhu Ramachandran | 6 Mar 05:52 2008
Picon

Re: Problem installing/running mayavi

tom fogal wrote:
> mayavi is now pretty old.  Prabhu is now working on MayaVi2 ... or
> maybe he's even moved on with that, I don't keep very up to date these

Still at mayavi2 for now.

> days.  Anyway, you should at least google around for MayaVi2 and see if
> that might be a better fit for you at this point, but I'll finish the
> email assuming you've done as much and really really want MayaVi (v1)
> for some reason.

Yes, I also recommend mayavi2.

A Mac OS X version of EPD might be out soon and may ease the task of 
installing everything:

   http://www.enthought.com/products/epd.php

>> Traceback (most recent call last):
>>    File "./mayavi", line 289, in ?
>>      import vtk
>> ImportError: No module named vtk
> 
> Hrm, I vaguely remember the module being named `vtkpython' for some
> reason.  Try running `python' from your shell.  From the interactive
> python shell (denoted by ">>>") try `import vtkpython' -- does that
> give an error?

vtkpython is deprecated.  The module she needs is called vtk.

(Continue reading)

Paul Morrow | 9 Mar 06:04 2008
Picon

problem viewing vector components in MayaVi2

Hi Prabhu,

I think this is an issue specific to MayaVi2, so I am sending this email 
directly to you, however I have cc'd both the enthought and mayavi lists 
as well. I am using MayaVi2 in the enthought python distribution you 
recommended to me for a Windows XP OS.

Specifically:
I am having trouble viewing non-x-components of a vtk file. The (ascii) 
vtk file was converted from an omf file (via winovf2vtk) generated by 
the oommf micromagnetic program developed at nist.
I can select and view multiple components in the VTK data reader of the 
earlier version of MayaVi (v1.5), but MayaVi2 only provides the single 
option for the 'x-component' in the drop-down box of the 'point scalar 
name', so I cannot select a different vector component to plot.  

I have attached two vtk files: test42x_0.vtk contains all scalar (x, y, 
and z) components of the magnetization, while test42xMy_0 contains only 
the y-component. I have also attached a screenshot of the output for 
both MayaVi_1.5 and MayaVi2.

Please let me know if you need any additional information, I will 
continue working on this myself as well.
Thank you,
Paul

--

-- 
Paul Morrow
Graduate research assistant
Rensselaer Polytechnic Institute
(Continue reading)

Prabhu Ramachandran | 9 Mar 13:59 2008
Picon

Re: problem viewing vector components in MayaVi2

Hi Paul,

Paul Morrow wrote:
> I am having trouble viewing non-x-components of a vtk file. The (ascii) 
> vtk file was converted from an omf file (via winovf2vtk) generated by 
> the oommf micromagnetic program developed at nist.
> I can select and view multiple components in the VTK data reader of the 
> earlier version of MayaVi (v1.5), but MayaVi2 only provides the single 
> option for the 'x-component' in the drop-down box of the 'point scalar 
> name', so I cannot select a different vector component to plot. 
> I have attached two vtk files: test42x_0.vtk contains all scalar (x, y, 
> and z) components of the magnetization, while test42xMy_0 contains only 
> the y-component. I have also attached a screenshot of the output for 
> both MayaVi_1.5 and MayaVi2.

Ahh, this is a bug in mayavi2's reader for classic VTK files.  I'll fix 
it as soon as I clean up the trunk or make a branch for the fix.

For now you have two possible solutions.

  1. Convert your VTK file to an XML one using the vtk2xml.py script 
that ships with VTK.  If you can't find that its here:

http://www.aero.iitb.ac.in/~prabhu/software/code/mayavi/vtk2xml.py

  Just run it on your VTK file and it will generate an XML file that is 
compressed, so you'll save space as well.  When you use this file you 
should be able to choose between multiple scalars.

  2. Click on the "Reader" button of the VTK file reader UI and select 
(Continue reading)

Prabhu Ramachandran | 13 Mar 13:23 2008
Picon

Subject: [ANN] Mayavi sprint in July 2008

Hello,

This is to announce a Mayavi sprint between 2nd July to 9th July, 2008 
held at the Enthought Office.  Here are the details:

  Dates:     2nd July 2008 to 9th July 2008
  Location:  Enthought Office at Austin, TX

Please do join us.  Both Gaƫl and myself will be at the sprint on all
days and there will be developers from Enthought joining us as well.
Enthought is graciously hosting the sprint.

The agenda for the sprint is yet to be decided and will be announced 
later.

Please do let us know if you would like to participate in this sprint or 
if you have any questions.

About Mayavi
------------

Mayavi seeks to provide easy and interactive visualization of 3D data.
It is distributed under the terms of the new BSD license.  It is built
atop the Enthought Tool Suite and VTK.  It provides an optional rich UI
and a clean Pythonic API with native support for numpy arrays.  Mayavi
strives to be a reusable tool that can be embedded in your applications
in different ways or combined with the envisage application-building
framework to assemble domain-specific tools.  For more information see
here:

(Continue reading)

Michael L. Cobb | 30 Mar 23:02 2008

stereo modes

MayaVi users:

MayaVi  looks like a cool package for displaying a variety of 
complicated data sets.  I see there are several stereo modes one can 
set.  Are there plans to have a cress-eyed stereo pair option for use 
with dual DLP projectors, dual monitor graphics card and cross polarizers.?

Thanks,
Mike

--

-- 
Dr. Michael L. Cobb
Professor
Southeast Missouri State University
Cape Girardeau, MO  63701
(573) 651-2172

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

Gmane