[vtkusers] error loading libvtkRenderingPythonTkWidgets.so

Hoang Giang Bui hgbk2008 at gmail.com
Tue Mar 1 09:33:27 EST 2016


Thanks, that helps a lot.

Giang

On Mon, Feb 29, 2016 at 2:15 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi Giang,
>
> The option VTK_Group_Tk:BOOL=ON must be set for Tkinter support.
>
>  - David
>
>
> On Mon, Feb 29, 2016 at 3:12 AM, Hoang Giang Bui <hgbk2008 at gmail.com>
> wrote:
>
>> Hello
>>
>> I got an error when I tried to run a VTK python example with Tkinter
>> enabled
>>
>> I built VTK6.2.0 with Tcl/Tk 8.6.4 and Python 2.7.6. Executing the example
>> python {VTK_DIR}/Examples/Modelling/Python/SpherePuzzle.py
>>
>> gives the error
>>
>> Traceback (most recent call last):
>>   File "SpherePuzzle.py", line 57, in <module>
>>     rw = vtkTkRenderWindowInteractor(f1, width=400, height=400, rw=renWin)
>>   File
>> "/home/hbui/opt/vtk-6.2.0/lib/python2.7/site-packages/vtk/tk/vtkTkRenderWindowInteractor.py",
>> line 48, in __init__
>>     vtkLoadPythonTkWidgets(master.tk)
>>   File
>> "/home/hbui/opt/vtk-6.2.0/lib/python2.7/site-packages/vtk/tk/vtkLoadPythonTkWidgets.py",
>> line 81, in vtkLoadPythonTkWidgets
>>     interp.call('load', filename, pkgname)
>> _tkinter.TclError: couldn't load file "
>> libvtkRenderingPythonTkWidgets-6.2.so":
>> libvtkRenderingPythonTkWidgets-6.2.so: cannot open shared object file:
>> No such file or directory
>>
>> The library libvtkRenderingPythonTkWidgets-6.2.so is not installed to
>> the target folder. I have checked that this library exist in VTK-5.10.1 but
>> somehow it is removed in VTK-6.2.0
>>
>> I looked into the vtkLoadPythonTkWidgets.py and I found out that the
>> module name is required to load still has the same name
>> modname = 'vtkRenderingPythonTkWidgets'
>>
>> Which means it is not updated or some configure flags need to be set to
>> enable libvtkRenderingPythonTkWidgets
>>
>> Any comments?
>>
>> Giang
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160301/e62546a4/attachment.html>


More information about the vtkusers mailing list