[vtkusers] Python and VTK

Nick Torenvliet natorenvliet at gmail.com
Wed Sep 27 10:04:38 EDT 2017


Ooops!

Hey Dan, thanks!  It is now working fine - guess I need to bone up on my
ccmake skills.

Another question then,

A couple of the examples are coughing with:

_tkinter.TclError: couldn't load file "libvtkRenderingPythonTkWidgets-8.0.so":
libvtkRenderingPythonTkWidgets-8.0.so: cannot open shared object file: No
such file or directory

So to address this I am attempting to rebuild with GROUP_TK set on.

Now I get the following compile error:
[ 87%] Linking CXX executable ../../../../bin/vtkInteractionWidgetsCxxTests
[ 87%] Built target vtkInteractionWidgetsCxxTests
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

I'm going to hunt around and probably install twenty or so random packages
that look anything like what I find @ 138 but if anyone knows what I need
to do, please let me know.

Thanks,

Nick






On Wed, Sep 27, 2017 at 9:26 AM, Dan Lipsa <dan.lipsa at kitware.com> wrote:

> 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/785c0fae/attachment.html>


More information about the vtkusers mailing list