[vtkusers] Vtk Python Widgets
CHENET Aude (External)
Aude.CHENET-ext at galderma.com
Tue Feb 23 04:59:41 EST 2016
Hello,
I’ve built VTK from sources with Tk Components. I can find in my path D:\VTK\bin\vtkRenderingPythonTkWidgets-6.3.dll
I don’t have any more the error I had before. But when I run OrthogonalPlanesWithTkPhoto.py it stops without reason.
I tried to debug, and find the problem is in vtkLoadPythonTkWidgets.py, at the end of the script. It tries to load the dll (and it doesn’t work?) and the program is terminated with exit value -1073741819…
Does someone have an idea?
Aude
De : David Gobbi [mailto:david.gobbi at gmail.com]
Envoyé : lundi 15 février 2016 17:29
À : CHENET Aude (External)
Cc : vtkusers at public.kitware.com
Objet : Re: [vtkusers] Vtk Python Widgets
Yes. As far as I understand, that is the situation.
On Mon, Feb 15, 2016 at 9:19 AM, CHENET Aude (External) <Aude.CHENET-ext at galderma.com<mailto:Aude.CHENET-ext at galderma.com>> wrote:
Thanks for your answer.
It means it is not possible to get vtk with pip ? It’s mandatory to build vtk from sources to have acces to TkWidgets?
De : David Gobbi [mailto:david.gobbi at gmail.com<mailto:david.gobbi at gmail.com>]
Envoyé : lundi 15 février 2016 16:57
À : CHENET Aude (External)
Cc : vtkusers at public.kitware.com<mailto:s at public.kitware.com>
Objet : Re: [vtkusers] Vtk Python Widgets
Hi Aude,
This means that your vtk package was built without the Tk components.
I don't know of any binary packages that provide the DLL that you need,
you might have to build your own vtk with VTK_Group_Tk:BOOL=ON.
- David
On Mon, Feb 15, 2016 at 8:13 AM, Aude <aude.chenet-ext at galderma.com<mailto:aude.chenet-ext at galderma.com>> wrote:
Hello,
I’m trying to use vtk with Python 27. I’ve installed vtk 6.2 with pip.
When I execute OrthogonalPlanesWithTkPhoto.py example, I’ve an error :
Traceback (most recent call last):
File "C:\Users\chenet-
ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 156, in
<module>
S = SampleViewer()
File "C:\Users\chenet-
ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 57, in
__init__
tphoto = self.tphoto = vtkTkPhotoImage ()
File "C:\Python27\lib\site-packages\vtk\tk\vtkTkPhotoImage.py", line 20,
in __init__
vtkLoadPythonTkWidgets ( self.tk<http://self.tk> )
File "C:\Python27\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py",
line 81, in vtkLoadPythonTkWidgets
interp.call('load', filename, pkgname)
_tkinter.TclError: couldn't load library "vtkRenderingPythonTkWidgets-
6.2.dll": this library or a dependent library could not be found in
library path
I’ve made a research on my computer and I can’t find
vtkRenderingPythonTkWidgets.
Can someone help me to use this example?
Aude
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160223/90c92820/attachment.html>
More information about the vtkusers
mailing list