Hello,
      I installed the binary for VTK 5.0.1, but there were no Python
bindings.  So I uninstalled and tried to install from the source, but no
luck.  Eventually I just unzipped the files from
VTK-6.4.2-Python-2.4.1.zip (not a typo, this is the name of the file,
though I guess it should be 4.4.2) and got an apparently working
installation.  (I also installed ActiveTCL prior to this.)

I unzipped MayaVi-2.5.zip (not a typo) to my C drive and ran setup.py
install; everything seemed OK.

All the tests in test_vtk.py seem to pass.

But if I try the following (more or less copied directly from the
documentation) I have a problem.

>>> import Tkinter
>>> r = Tkinter.Tk()
>>> r.withdraw()
''
>>> import mayavi
>>> v = mayavi.Main.MayaViTkGUI(r)
>>> v.load_visualization('c:\MayaVi-1.5\examples\heart.mv')

The window hangs until I restart the shell.

A little editing allows me to get a traceback,

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in -toplevel-
    v.load_visualization('c:\MayaVi-1.5\examples\heart.mv')
  File "C:\Python24\lib\site-packages\mayavi\Main.py", line 1847, in
load_visualization
    self.mayavi.load_visualization (file_name)
  File "C:\Python24\lib\site-packages\mayavi\Main.py", line 844, in
load_visualization
    exception ()
  File "C:\Python24\lib\site-packages\mayavi\Main.py", line 832, in
load_visualization
    dvm.load_config (file)
  File "C:\Python24\Lib\site-packages\mayavi\Base\DataVizManager.py",
line 164, in load_config
    self.mod_mgr[self.cur_mm_name].load_config (file)
  File "C:\Python24\Lib\site-packages\mayavi\Base\ModuleManager.py",
line 370, in load_config
    self.scalar_lut_h.load_config (file)
  File "C:\Python24\lib\site-packages\mayavi\Misc\LutHandler.py", line
255, in load_config
    lut_v, r_on, v_r_on, v_d_r = eval (val)
  File "<string>", line 0, in -toplevel-
NameError: name 't' is not defined

although the line numbers will be a little out due to a few print
statements that I added.

It seems that 'val' is a string (the end of the line in heart.mv
containing 'custom16.lut\n').  Any clue whether this is a problem with
my installation, or something else?  BTW, executing MayaVi.pyw from
C:\Python\Scripts does not open a window, and C:\MayaVi-1.5\mayavi has
not been renamed (which I expected after glancing at setup.py).  Any
help much appreciated.

Duncan Smith

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to