Prabhu Ramachandran | 31 Jul 2006 21:08
Picon
Gravatar

Re: Faulty installation / bug?

>>>>> "Duncan" == Duncan Smith <buzzard <at> urubu.freeserve.co.uk> writes:

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

Easiest way to get it installed is to install the latest Enthought
Python edition:

        http://code.enthought.com

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

Well, I don't understand the typos because there isn't a
VTK-6.4.2*.zip that I know of nor is there a MayaVi-2.5.zip.  OTOH if
you do have one of those handy time machines I'd like a copy of the
2.5 release. ;-)

    >>>> v.load_visualization('c:\MayaVi-1.5\examples\heart.mv')

    Duncan> The window hangs until I restart the shell.

    Duncan> "C:\Python24\lib\site-packages\mayavi\Misc\LutHandler.py",
    Duncan> line 255, in load_config lut_v, r_on, v_r_on, v_d_r = eval
    Duncan> (val) File "<string>", line 0, in -toplevel- NameError:
(Continue reading)

Duncan Smith | 31 Jul 2006 19:46
Picon
Picon

Faulty installation / bug?

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-
(Continue reading)


Gmane