<div dir="ltr">Yep, as I mentioned the version of twisted ParaViewWeb uses is not compatible with Python 3. Set PARAVIEW_ENABLE_WEB to OFF and try again. <div><br></div><div>The twisted package needs to be updated to work with Python 3, but that has not happened yet.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 21, 2016 at 10:53 AM, Ji Zhang <span dir="ltr"><<a href="mailto:gotofd@gmail.com" target="_blank">gotofd@gmail.com</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"><div>Dear Cory, </div><div><br></div><div>Thanks very much for your reply. </div><div><br></div><div>I have tried what you said, however, I got some error report, </div><div><div><i>[ 2%] Compiling Python package 'twisted'</i></div><div><i>Listing '/home/zhangji/<wbr>PycharmProjects/ParaView-v5.2.<wbr>0/build/lib/site-packages/vtk/<wbr>web'...</i></div><div><i>Compiling '/home/zhangji/<wbr>PycharmProjects/ParaView-v5.2.<wbr>0/build/lib/site-packages/vtk/<wbr>web/dataset_builder.py'...</i></div><div><i>*** File "/home/zhangji/<wbr>PycharmProjects/ParaView-v5.2.<wbr>0/build/lib/site-packages/vtk/<wbr>web/dataset_builder.py", line 267</i></div><div><i> print 'Compress', root</i></div><div><i> ^</i></div><div><i>SyntaxError: Missing parentheses in call to 'print'</i></div><div><i><br></i></div><div><i>Compiling '/home/zhangji/<wbr>PycharmProjects/ParaView-v5.2.<wbr>0/build/lib/site-packages/vtk/<wbr>web/launcher.py'...</i></div><div><i>*** File "/home/zhangji/<wbr>PycharmProjects/ParaView-v5.2.<wbr>0/build/lib/site-packages/vtk/<wbr>web/launcher.py", line 155</i></div><div><i> print "ERROR: %s is missing %s key." % (object_name, key)</i></div><div><i> ^</i></div><div><i>SyntaxError: invalid syntax</i></div></div><div><i><br></i></div><div>It looks like that python 2 have been used when I make the code. </div><div><br></div><div>The configure commands I used associated with python are showing below, I think I told the compiler use a python 3 environment. </div><div><img src="cid:ii_15887959f09e2b3d" alt="Inline image 1" width="562" height="459"><br></div><div><br></div><div>Thanks. </div><div><br></div></div><div class="gmail_extra"><span class=""><br clear="all"><div><div class="m_4683916511522505952gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font size="2" face="System"><span><span>此致<br> 敬礼<br>张骥(</span></span></font><font size="2" face="System"><span><span><font face="System"><span><span>博士研究生)</span></span></font><br>北京计算科学研究中心
<br><span style="background-color:rgba(0,0,0,0)">北京市海淀区西北旺东路10号院东区9号楼 </span>(100193)<br><br></span></span></font><div><font size="2" face="System">Best, </font></div><div><font size="2" face="System">Regards, </font></div><div><font size="2" face="System"><span style="background-color:rgba(0,0,0,0);color:rgb(80,0,80)">Zhang Ji, PhD student</span><br></font></div><div><font size="2" face="System"><span style="color:rgb(80,0,80);background-color:rgba(0,0,0,0)">Beijing Computational Science Research Center <br>Zhongguancun Software Park II, No. 10 Dongbeiwang West Road, Haidian District, Beijing 100193, China <br></span></font></div><font size="2"></font></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Mon, Nov 21, 2016 at 11:15 PM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Python 3 support should be officially supported in the next release,<br>
sometime in spring 2017.<br>
<br>
You can experimentally build ParaView's development version with<br>
Python 3 using the following settings (taken from a build on Ubuntu):<br>
<br>
PYTHON_EXECUTABLE /usr/bin/python3<br>
PYTHON_EXTRA_LIBS<br>
PYTHON_INCLUDE_DIR /usr/include/python3.5m<br>
PYTHON_LIBRARY /usr/lib/x86_64-linux-gnu/<a href="http://libpython3.5m.so" rel="noreferrer" target="_blank">libp<wbr>ython3.5m.so</a><br>
PYTHON_UTIL_LIBRARY /usr/lib/x86_64-linux-gnu/lib<wbr>util.so<br>
VTK_PYTHON_VERSION 3<br>
<br>
ParaViewWeb won't work, because it depends on Twisted server which is<br>
still python2, so make sure ParaViewWeb is disabled.<br>
<br>
You may also need to install on Ubuntu the following:<br>
<br>
sudo apt-get install python2-dev python3-dev<br>
<br>
python3.5m gets installed by python3 package<br>
<br>
Thanks,<br>
Cory<br>
<div><div class="m_4683916511522505952h5"><br>
On Mon, Nov 21, 2016 at 4:25 AM, Ji Zhang <<a href="mailto:gotofd@gmail.com" target="_blank">gotofd@gmail.com</a>> wrote:<br>
> Dear all,<br>
><br>
> I have checked the paraview mail list, as far as I know, pvpython do not<br>
> work with python 3 until last year. However, a year past, dose it work with<br>
> python 3 now?<br>
><br>
> The document said it works,<br>
> ParaView is working towards full Python 3 support. To that end, python code<br>
> should be written so it is compatible with Python 2.7 and Python 3.5. See<br>
> <a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/py-doc/python-2-vs-3.html" rel="noreferrer" target="_blank">http://www.paraview.org/ParaVi<wbr>ew3/Doc/Nightly/www/py-doc/<wbr>python-2-vs-3.html</a><br>
><br>
> If it works, what should I do to use it?<br>
><br>
> Thanks.<br>
><br>
> 此致<br>
> 敬礼<br>
> 张骥(博士研究生)<br>
> 北京计算科学研究中心<br>
> 北京市海淀区西北旺东路10号院东区9号楼 (100193)<br>
><br>
> Best,<br>
> Regards,<br>
> Zhang Ji, PhD student<br>
> Beijing Computational Science Research Center<br>
> Zhongguancun Software Park II, No. 10 Dongbeiwang West Road, Haidian<br>
> District, Beijing 100193, China<br>
><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<br>
> <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 ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
><br>
<span class="m_4683916511522505952HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Cory Quammen<br>
Staff R&D Engineer<br>
Kitware, Inc.<br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div>