[vtkusers] Problem with loading libvtkRenderingPythonTkWidgets.dylib

Miguel Ortiz Lombardia ibdeno at gmail.com
Thu Jun 10 03:22:36 EDT 2010


Hi,

I have installed VTK-5.6 on a 64bit OSX 10.6.3 machine with Tcl,Tk and Python wrappers. When trying to use one application that requires VTK I get this error:

  File "/Users/mol/tmp/veda/VEDA/mod/gfx.py", line 94, in setenv
    self.iren = vtkTkRenderWindowInteractor(root,rw=self.renwin, width=1000, height=800)
  File "/usr/local/lib/python2.6/site-packages/VTK-5.6.0-py2.6.egg/vtk/tk/vtkTkRenderWindowInteractor.py", line 48, in __init__
    vtkLoadPythonTkWidgets(master.tk)
  File "/usr/local/lib/python2.6/site-packages/VTK-5.6.0-py2.6.egg/vtk/tk/vtkLoadPythonTkWidgets.py", line 70, in vtkLoadPythonTkWidgets
    interp.call('load', filename)
_tkinter.TclError: dlopen(libvtkRenderingPythonTkWidgets.dylib, 10): image not found

I looked into /usr/local/lib/python2.6/site-packages/VTK-5.6.0-py2.6.egg/vtk/tk/vtkLoadPythonTkWidgets.py and found that the path where the vtk libraries were installed ( /usr/local/lib/vtk-5.6/ ) was not included in the pathlist. So I modified  vtkLoadPythonTkWidgets.py accordingly :

    if os.name == 'posix':
        pathlist.append('/usr/local/lib/vtk-5.6')

I checked (via print) that the "interp.eval('catch {load '+fullpath+' '+pkgname+'}')" construction was correctly built, and it was. I also checked, of course, that the libvtkRenderingPythonTkWidgets.dylib was where I was looking for it and that it contains Vtkrenderingpythontkwidgets (via strings).

But I keep getting the same error. I would appreciate if anyone can suggest what is going on here.

Best wishes,


-- Miguel






More information about the vtkusers mailing list