31 Jul 2006 21:08
Re: Faulty installation / bug?
Prabhu Ramachandran <prabhu <at> aero.iitb.ac.in>
2006-07-31 19:08:44 GMT
2006-07-31 19:08:44 GMT
>>>>> "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: Duncan> name 't' is not defined Duncan> although the line numbers will be a little out due to a Duncan> few print statements that I added. Duncan> It seems that 'val' is a string (the end of the line in Duncan> heart.mv containing 'custom16.lut\n'). Any clue whether Duncan> this is a problem with my installation, or something else? Does the heart.mv file have unix line endings? If so you will need to convert it to a Windows line ending. I used to use the lfcr.py script that is usually part of a Python install. It used to be available in the Enthought Python edition in Tools/Scripts. Duncan> BTW, executing MayaVi.pyw from C:\Python\Scripts does not I am not sure why this is the case. Are there any error messages? Duncan> open a window, and C:\MayaVi-1.5\mayavi has not been Duncan> renamed (which I expected after glancing at setup.py). Duncan> Any help much appreciated. C:\MayaVi-1.5\mayavi will not be renamed the installed MayaVi.pyw *is* the renamed mayavi. cheers, prabhu ------------------------------------------------------------------------- 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