Faulty installation / bug?
Duncan Smith <buzzard <at> urubu.freeserve.co.uk>
2006-07-31 17:46:48 GMT
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()
>>> import mayavi
>>> v = mayavi.Main.MayaViTkGUI(r)
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 -
File "C:\Python24\lib\site-packages\mayavi\Main.py", line 1847, in
File "C:\Python24\lib\site-packages\mayavi\Main.py", line 844, in
File "C:\Python24\lib\site-packages\mayavi\Main.py", line 832, in
line 164, in load_config
line 370, in load_config
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.
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