<div dir="ltr">Hi Arnd,<div><br></div><div>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.</div><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 24, 2015 at 8:16 AM, Arnd Baecker <span dir="ltr"><<a href="mailto:arnd.baecker@web.de" target="_blank">arnd.baecker@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi David,<br>
<br>
first: this is really great news!<br>
<br>
However, I had some problems with the installation<br>
and thus a few questions:<br>
- I used current master<br>
(git clone <a href="https://gitlab.kitware.com/vtk/vtk.git" rel="noreferrer" target="_blank">https://gitlab.kitware.com/vtk/vtk.git</a> VTK)<br>
- and a conda environment for python3<br>
- Using ccmake 2.8.12.2 (and also the current git version),<br>
I set:<br>
VTK_PYTHON_VERSION *3<br>
(Its actual value should be:<br>
"Python version to use: 2, 2.x, or empty"<br>
)<br>
I was hoping that this would pick up the right python3,<br>
however, as a result I got:<br>
PYTHON_EXECUTABLE /usr/bin/python2<br>
PYTHON_INCLUDE_DIR /usr/include/python2.7<br>
PYTHON_LIBRARY /usr/lib/x86_64-linux-gnu/<a href="http://libpython2.7.so" rel="noreferrer" target="_blank">libpython2.7.so</a><br>
<br>
Thus I manually changed the paths to point to the right python and<br>
finally ended up with a vtk which could be imported in python3!<br>
<br>
Question: is the above (in principle) the right approach,<br>
or is there some other/better way to get the configuration right?<br>
(Or is it just because python3 is not yet supported by cmake/ccmake?).<br>
<br>
Best, Arnd<br>
</blockquote></div><br></div></div></div>