[Paraview] Dose pvpython work with python 3.x ?

Cory Quammen cory.quammen at kitware.com
Mon Nov 21 10:15:29 EST 2016


Python 3 support should be officially supported in the next release,
sometime in spring 2017.

You can experimentally build ParaView's development version with
Python 3 using the following settings (taken from a build on Ubuntu):

PYTHON_EXECUTABLE             /usr/bin/python3
PYTHON_EXTRA_LIBS
PYTHON_INCLUDE_DIR            /usr/include/python3.5m
PYTHON_LIBRARY                /usr/lib/x86_64-linux-gnu/libpython3.5m.so
PYTHON_UTIL_LIBRARY           /usr/lib/x86_64-linux-gnu/libutil.so
VTK_PYTHON_VERSION                3

ParaViewWeb won't work, because it depends on Twisted server which is
still python2, so make sure ParaViewWeb is disabled.

You may also need to install on Ubuntu the following:

sudo apt-get install python2-dev python3-dev

python3.5m gets installed by python3 package

Thanks,
Cory

On Mon, Nov 21, 2016 at 4:25 AM, Ji Zhang <gotofd at gmail.com> wrote:
> Dear all,
>
> I have checked the paraview mail list, as far as I know, pvpython do not
> work with python 3 until last year. However, a year past, dose it work with
> python 3 now?
>
> The document said it works,
> ParaView is working towards full Python 3 support. To that end, python code
> should be written so it is compatible with Python 2.7 and Python 3.5. See
> http://www.paraview.org/ParaView3/Doc/Nightly/www/py-doc/python-2-vs-3.html
>
> If it works, what should I do to use it?
>
> Thanks.
>
> 此致
>     敬礼
> 张骥(博士研究生)
> 北京计算科学研究中心
> 北京市海淀区西北旺东路10号院东区9号楼 (100193)
>
> Best,
> Regards,
> Zhang Ji, PhD student
> Beijing Computational Science Research Center
> Zhongguancun Software Park II, No. 10 Dongbeiwang West Road, Haidian
> District, Beijing 100193, China
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.


More information about the ParaView mailing list