[vtkusers] Mayavi on MacOSX error: libvtkRenderingPythonTkWidgets.dylib (No such file or directory, errno = 2)

Dr. Daniel James White PhD dan at chalkie.org.uk
Thu Oct 9 06:23:20 EDT 2003


Hi all,

I'm still having no luck getting the Mayavi python front end of VTK  
running on MacOSX

then trying to run mayavi I get a library not found error:

[daniel:/Applications/MayaVi/MayaVi-1.2.cvs20030927] dan% pythonw mayavi
Traceback (most recent call last):
   File "mayavi", line 282, in ?
     app = MayaViTkGUI (r)
   File  
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- 
packages/mayavi/Main.py", line 802, in __init__
     self.renwin = Misc.RenderWindow.RenderWindow (self.renwin_frame)
   File  
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- 
packages/mayavi/Misc/RenderWindow.py", line 82, in __init__
     height=500)
   File  
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- 
packages/vtk_python/vtk/tk/vtkTkRenderWidget.py", line 65, in __init__
     vtkLoadPythonTkWidgets(master.tk)
   File  
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- 
packages/vtk_python/vtk/tk/vtkLoadPythonTkWidgets.py", line 63, in  
vtkLoadPythonTkWidgets
     interp.call('load', filename)
_tkinter.TclError: dyld:  
/Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/ 
Contents/MacOS/Python can't open library:  
libvtkRenderingPythonTkWidgets.dylib  (No such file or directory, errno  
= 2)

[daniel:/Applications/MayaVi/MayaVi-1.2.cvs20030927] dan%

This file is present in my VTK build, but seems to have not been  
installed in the right place  by make install, or something like that.  
The file is there, but isn't being seen by tkinter or something...?

Is this similar to the problem that was fixed in the CVS a week or so  
ago by Yves Starreveld? Something to do with the CMakeLists files?

Any Ideas?


Heres my setup
MacPython2.3 framework installed with tkinter module
Tk and  tcl 8.4 frameworks installed.

Fresh CVS download of VTK (yesterday)
cmake options: shared on, hybrid on, carbon on, python on, tcl on.
make had to be run as root to finish the process without errors for  
some reason,
make install went fine.
Then ran the python wrapping setup.py install script. OK.

Next Mayavi CVS snapshot build,
python2.3 setup install OK
in
/Applications/MayaVi/MayaVi-1.2.cvs20030927/doc
ran
[daniel:MayaVi/MayaVi-1.2.cvs20030927/doc] dan# pythonw test_vtk.py
Testing if Tkinter is available...
OK - you have Tkinter
TclVersion = 8.4, TkVersion = 8.4
Testing if your overall installation is OK ...
OK, your installation seems fine!
Testing if VTK can be imported ...
OK, vtkpython found.
Testing if vtkCubeAxesActor2D can be instantiated ...
OK, vtkCubeAxesActor2D can be instantiated.
Testing a sample vtk program.  You should see a 300x300
     pixel window with a black background and with a magenta coloured
     Cone.  You can interact with the cone using the mouse.  To quit
     the test press q on the window.  If this test is successful then
     the basic vtkpython installation is OK.
vtkCarbonRenderWindowInteractor::TerminateApp

Suspended
[daniel:MayaVi/MayaVi-1.2.cvs20030927/doc] dan#
[1]    Killed                        pythonw test_vtk.py

the script does not exit cleanly on pressing q, and had to force quit  
python.
however it worked ok otherwise...... apart from the cone being blue not  
magenta.

cheers

Dan

Dr. Daniel James White BSc. (Hons.) PhD
Cell Biology
Department of biological and environmental science
PO Box  35
University of Jyväskylä
Jyväskylä FIN 40014
Finland
+358 (0)14 260 4183 (work)
+358 (0)414740463 (mob)

http://www.chalkie.org.uk
dan at chalkie.org.uk
white at cc.jyu.fi



More information about the vtkusers mailing list