<div dir="ltr">* The <span style="font-size:13px;font-family:arial,sans-serif">C:\Program Files vs vs C:\Program Files (x86) should be fixed with rc2.</span><br><div><span style="font-family:arial,sans-serif;font-size:13px"><br>


</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">* I've moved the vtk modules under bin in rc2.</span></div><div><br></div><div>* The root of the issue is that I am not packaging Tk, and thus the Tk dependent parts of VTK such as <span style="font-size:13px;font-family:arial,sans-serif">vtkRenderingPythonTkWidgets-</span><span style="font-size:13px;font-family:arial,sans-serif">6.1.dll are not available. File a bug report and with enough interest I'll see if I can get that done for 6.2.</span><br>

</div><div><br></div><div><font face="arial, sans-serif">thanks again for the valuable feedback,</font></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>

Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div>
<br><br><div class="gmail_quote">On Mon, Jan 13, 2014 at 10:19 AM, diego0020 <span dir="ltr"><<a href="mailto:da.angulo39@uniandes.edu.co" target="_blank">da.angulo39@uniandes.edu.co</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I didn't get the last message in my inbox, just resending<br>
<br>
diego0020 wrote<br>
<div><div class="h5">> Thanks for your reply<br>
><br>
> I found some other problems when trying to use Tkinter using the<br>
> installer. I tried with the included interpreter and with the offiial<br>
> python interpreter<br>
><br>
> Using the included interpreter, when I type<br>
>>>> import vtk<br>
>>>> from vtk.tk.vtkTkRenderWindowInteractor import<br>
>>>> vtkTkRenderWindowInteractor<br>
><br>
> It fails with the following error:<br>
><br>
> Traceback (most recent call last):<br>
>   File "<br>
> <stdin><br>
> ", line 1, in<br>
> <module><br>
>   File "C:\Program Files (x86)\VTK<br>
> 6.1.0-RC1\lib\site-packages\vtk\tk\vtkTkRenderWindowInteractor.py", line<br>
> 12, in<br>
> <module><br>
>     import Tkinter<br>
>   File "C:\Program Files (x86)\VTK 6.1.0-RC1\bin\lib\lib-tk\Tkinter.py",<br>
> line 39, in<br>
> <module><br>
>     import _tkinter # If this fails your Python may not be configured for<br>
> Tk<br>
> ImportError: No module named _tkinter<br>
><br>
> I think the problem is in the file FixTk.py, whih tries to look for tk<br>
> inside<br>
> sys.prefix = 'C:\\Program Files (x86)\\VTK 6.1.0-RC1\\bin'<br>
><br>
> But I couldn't understand it very well<br>
><br>
> ========================================================<br>
><br>
> -Using the official interpreter with the installer's bin directory in PATH<br>
> and with<br>
> PYTHONPATH=C:\Program Files (x86)\VTK 6.1.0-RC1\bin;C:\Program Files<br>
> (x86)\VTK 6.1.0-RC1\lib\site-packages<br>
>>> import vtk<br>
>>> from vtk.tk.vtkTkRenderWindowInteractor import<br>
>>> vtkTkRenderWindowInteractor<br>
><br>
> works now, but when I attempt to call<br>
>>> render_widget = vtkTkRenderWindowInteractor(top ,width=600, height=600)<br>
> I get the following error<br>
><br>
> TclError                                  Traceback (most recent call<br>
> last)<br>
> <ipython-input-8-75725e72815c><br>
>  in<br>
> <module><br>
> ()<br>
>       1 render_widget = vtkTkRenderWindowInteractor(top<br>
>       2                                             ,width=600,<br>
> ----> 3                                             height=600)<br>
><br>
> C:\Program Files (x86)\VTK<br>
> 6.1.0-RC1\lib\site-packages\vtk\tk\vtkTkRenderWindowInteractor.py in<br>
> __init__(self, master, cnf, **kw)<br>
>      46         """<br>
>      47         # load the necessary extensions into tk<br>
> ---> 48         vtkLoadPythonTkWidgets(<a href="http://master.tk" target="_blank">master.tk</a>)<br>
>      49<br>
>      50         try: # check to see if a render window was specified<br>
><br>
> C:\Program Files (x86)\VTK<br>
> 6.1.0-RC1\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.pyc in<br>
> vtkLoadPythonTkWidgets(interp)<br>
>      71<br>
>      72     # re-generate the error<br>
> ---> 73     interp.call('load', filename, pkgname)<br>
><br>
> TclError: couldn't load library "vtkRenderingPythonTkWidgets-6.1.dll":<br>
> this library or a dependent library could not be found in library path<br>
><br>
><br>
> I checked, and in fact the file "vtkRenderingPythonTkWidgets-6.1.dll" is<br>
> not included in the installer. This file is however built when generating<br>
> vtk from source. When I built from source I used tck/tk version 8.5.<br>
><br>
> I did the experiment of copying "vtkRenderingPythonTkWidgets-6.1.dll" from<br>
> my source build to the installer's bin directory and it worked!!!<br>
><br>
> ============================<br>
><br>
> A complete example of vtk and tkinter can be found in<br>
> <a href="http://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/GUI/Python/ImagePlaneWidget.py" target="_blank">http://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/GUI/Python/ImagePlaneWidget.py</a><br>
><br>
> Thanks for all the hard work, and please let me know if there is something<br>
> else I can do to help<br>
><br>
> best regards<br>
<br>
<br>
<br>
<br>
<br>
--<br>
</div></div>View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Vtk-6-1-Standalone-Python-Interface-Installer-Windows-pyd-files-in-wrong-location-tp5725312p5725346.html" target="_blank">http://vtk.1045678.n5.nabble.com/Vtk-6-1-Standalone-Python-Interface-Installer-Windows-pyd-files-in-wrong-location-tp5725312p5725346.html</a><br>


<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>