[vtkusers] Python and VTK
Dan Lipsa
dan.lipsa at kitware.com
Wed Sep 27 09:26:06 EDT 2017
Nick,
You should have VTK_PYTHON_VERSION=3 and VTK_WRAP_PYTHON=ON
You should use vtkpython. This has all the right paths to see the VTK
library.
Take a look in your CMakeCache.txt and search for python to see your python
related variables. If some point to python2 paths delete them and
reconfigure and rebuild your VTK.
Hope this helps,
Dan
On Tue, Sep 26, 2017 at 9:32 PM, Nick Torenvliet <natorenvliet at gmail.com>
wrote:
> Hi,
>
> I'm running ubuntu 16.04 with python3.
>
> After compiling and installing vtk8 the following occurs.
>
> 1- I have an issue with doxygen / docs during vtk make install
>
> After make install
>
> 1- I fire up a python 3 window and can import vtk, but cannot call any of
> the vtk functions except for those beginning with __
> 2- I fire up my python2 window and cannot import vtk at all
> 3- I fire up vtkpython, which looks to be p3.5 and cannot import vtk at all
>
> I feel like I'm missing a major step hooking the wrappers up into the
> python environment.
>
> My desired functionality is to have vtk in python 3.5, optimally in a venv
> if possible.
>
> Any ideas?
>
> Nick
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170927/b9a4b114/attachment.html>
More information about the vtkusers
mailing list