<div dir="ltr">Yes, the JS side also needs to be upgraded to use the wslink client...<div>Glad you are progressing!</div><div>Aron</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 18, 2017 at 2:41 AM, 沈庄明 <span dir="ltr"><<a href="mailto:zhuangming.shen@sphic.org.cn" target="_blank">zhuangming.shen@sphic.org.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Aron and Sebastien,<br>
</p>
<p><br>
</p>
<p>Thanks for your helpful comments. As you expected, VTK 8.1.0 can support python 3. Up to now, I almost finished except some errors in the client (see the figure). I guess js also need to upgrade, right? Hope some vtk-only examples can be obtained in the
 future. Thanks again.<br>
</p>
<p><br>
</p>
<p>Regards,<br>
</p>
<p><br>
</p>
<p>Zhuangming Shen<br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div id="m_3825398994312551918divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Aron Helser <<a href="mailto:aron.helser@kitware.com" target="_blank">aron.helser@kitware.com</a>><br>
<b>Sent:</b> Wednesday, December 13, 2017 4:36 AM<br>
<b>To:</b> Sebastien Jourdain<br>
<b>Cc:</b> 沈庄明; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> Re: [vtkusers] VTK web application</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">The older Autobahn had a number of issues with Python 3 - so I would expect you to have problems. We were able to make it work with python 3 by backporting a number of python3 fixes, but can you upgrade to VTK 8.1.0? Then you can use the newest
 autobahn and twisted, with wslink.
<div><br>
</div>
<div>launcher.py has migrated to wslink: <a href="https://github.com/Kitware/wslink/blob/master/python/src/wslink/launcher.py" target="_blank">https://github.com/Kit<wbr>ware/wslink/blob/master/python<wbr>/src/wslink/launcher.py</a></div>
<div>but it didn't change very much. </div>
<div><br>
</div>
<div>I don't know if we have a vtk-only example of migration, but the Visualizer app migrated, including the launcher, I believe.</div>
<div><br>
</div>
<div>Aron</div>
<div><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Dec 12, 2017 at 8:36 AM, Sebastien Jourdain <span dir="ltr">
<<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.co<wbr>m</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">VTK 8.1.0 will support Python 3 with our WSLink library. 
<div>In order to migrate, you will have a couple of import to fix but the API should be almost the same if not the same.<br>
</div>
<div><br>
</div>
<div>Aron should be able to give you some pointers on where to look for migration examples.</div>
<div><br>
</div>
<div>Seb</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="m_3825398994312551918m_7931325054003308666h5">On Mon, Dec 11, 2017 at 7:33 PM, 沈庄明 <span dir="ltr">
<<a href="mailto:zhuangming.shen@sphic.org.cn" target="_blank">zhuangming.shen@sphic.org.cn</a>></span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="m_3825398994312551918m_7931325054003308666h5">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>​Hi all,<br>
</p>
<p><br>
</p>
<p>I referred vtkweb/launcher.py in VTK 8.0.0 to write my own codes with twisted 17.1.0 and autobahn 0.8.14, it can work using python 2.7. But when I upgraded python to 3.4, it did not respond to http request, and in front-end displayed "404 No such Resource".
 So I wonder if launcher.py can support python 3.x? Need to modify something? Any suggestions are welcome. <br>
</p>
<p><br>
</p>
<p>BTW, I noticed that launcher.py has been removed <span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">in VTK 8.1.0</span>. Does that mean VTK web application use a new architecture?<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Regards,<br>
</p>
<p><br>
</p>
<p>Zhuangming Shen<br>
</p>
</div>
<br>
</div>
</div>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/opensou<wbr>rce/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" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>