[vtkusers] [vtk-developers] VTK-py3k is ready for testing

David Gobbi david.gobbi at gmail.com
Mon Aug 24 10:35:08 EDT 2015


Hi Arnd,

For now, if you want to use python 3, you must manually
set PYTHON_EXECUTABLE, PYTHON_INCLUDE_DIR, and PYTHON_LIBRARY.  Otherwise,
cmake will search for python 2, regardless of how you set
VTK_PYTHON_VERSION.

 - David


On Mon, Aug 24, 2015 at 8:16 AM, Arnd Baecker <arnd.baecker at web.de> wrote:

> Hi David,
>
> first: this is really great news!
>
> However, I had some problems with the installation
> and thus a few questions:
> - I used current master
>     (git clone https://gitlab.kitware.com/vtk/vtk.git VTK)
> - and a conda environment for python3
> - Using ccmake 2.8.12.2 (and also the current git version),
>   I set:
>      VTK_PYTHON_VERSION              *3
>   (Its actual value should be:
>   "Python version to use: 2, 2.x, or empty"
>   )
>   I was hoping that this would pick up the right python3,
>   however, as a result I got:
>    PYTHON_EXECUTABLE                /usr/bin/python2
>    PYTHON_INCLUDE_DIR               /usr/include/python2.7
>    PYTHON_LIBRARY                   /usr/lib/x86_64-linux-gnu/
> libpython2.7.so
>
>   Thus I manually changed the paths to point to the right python and
>   finally ended up with a vtk which could be imported in python3!
>
> Question: is the above (in principle) the right approach,
> or is there some other/better way to get the configuration right?
> (Or is it just because python3 is not yet supported by cmake/ccmake?).
>
> Best, Arnd
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150824/f97c9ef2/attachment.html>


More information about the vtkusers mailing list