[MayaVi-users] vtkRenderingPythonTkWidgets.dll in path,but vtk_test.py can't find it
Status: Beta
Brought to you by:
prabhu_r
|
From: Predrag I. <pre...@pt...> - 2003-02-22 21:03:22
|
I use Python 2.2.1 under Windows XP sp1. MayaVi is version 1.2 After i downloaded DLL's and vtkpython from http://folks.astrian.net/godzilla/, i started vtk_test.py from MayaVi doc directory. VTK dll's and vtkpython files are in the path, sys.path gives ['D:\\Python22\\Tools\\idle', 'D:\\python22', 'D:\\Python22\\Tools', 'D:\\PYTHON22\\DLLs', 'D:\\PYTHON22\\lib', 'D:\\PYTHON22\\lib\\lib-tk', 'D:\\PYTHON22\\lib\\site-packages', 'D:\\PYTHON22\\lib\\site-packages\\Numeric' , 'D:\\PYTHON22\\lib\\site-packages\\PIL,'D:\\PYTHON22\\lib\\site-packages\\VTK'] . <---- I can see that there's vtkRenderingPythonTkWidgets.dll in VTK directory, yet vtk_test.py session looks like this: >>Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32 >>Type "copyright", "credits" or "license" for more information. >>IDLE 0.8 -- press F1 for help >>> >>Testing if Tkinter is available... >>OK - you have Tkinter >>TclVersion = 8.3, TkVersion = 8.3 >>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. >>Testing if vtkRenderWidget can be imported... >>OK, vtkRenderWidget found. >>Testing a sample vtk program that uses the vtkTkRenderWidget. >>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 vtkpython installation is OK. >>You should be able to use Tkinter and VTK properly. ----------------------------------------------------- >>Traceback (most recent call last): >>File "D:\Python22\Lib\site-packages\MayaVi-1.2\doc\test_vtk.py", line 181, in ? >>test_vtk(root) >>File "D:\Python22\Lib\site-packages\MayaVi-1.2\doc\test_vtk.py", line 157, in test_vtk >>test_vtk_tk_render_widget(root) >>File "D:\Python22\Lib\site-packages\MayaVi-1.2\doc\test_vtk.py", line 102, in test_vtk_tk_render_widget >> pane = vtkTkRenderWidget(t,width=300,height=300) >>File "D:\PYTHON22\lib\site-packages\VTK\vtkTkRenderWidget.py", line 65, in __init__ >>vtkLoadPythonTkWidgets(master.tk) >>File "D:\PYTHON22\lib\site-packages\VTK\vtkLoadPythonTkWidgets.py", line 59, in vtkLoadPythonTkWidgets >> interp.call('load', filename) >>TclError: couldn't load library "vtkRenderingPythonTkWidgets.dll": this library >>or a dependent library could not be found in library path. ------------------------------------------------------------- What library is dependent on this one?I tried copying this 'nonexistent' DLL to Python's DLL folder,but same result. Should i download complete VTK? In instalation guide on MayaVi's home page,there is a reference to Hybrid classes from VTK.Is the problem lack of this classes? Am i missing something here? I'll google some,see what comes up. Suggestions etc. are very welcome. Pedja. |