[vtkusers] Version mismatch in Python bindings?
Andrea Gavana
andrea.gavana at gmail.com
Thu Dec 15 14:50:14 EST 2016
Hi David,
Thank you for your answer.
I will check what vtk.__file__ returns when I get back to the office, but I
am positive it will return the same path as I mentioned in my email.
Since I don't have admin privileges, I installed VTK in a temporary folder,
copied all the dlls and python files into site-packages and added the
site-packages VTK folder to the PATH environment variable. I'm quite
positive there is no other vtk on my system nor in the PATH, but I will run
some more check tomorrow.
I simply had the feeling that the python bindings were still built with vtk
7.0 and not 7.1.
Andrea.
On Thu, 15 Dec 2016 at 20:28, David E DeMarle <dave.demarle at kitware.com>
wrote:
> I think you are getting a different VTK module. What does vtk.__file__
> return?
>
> The standalone installer by default puts VTK at c:\Program Files\VTK
> 7.1.0, and you generally are expected to run it from there. Ie, the version
> Kitware supplies is generally incompatible with whatever system install of
> Python you might have.
>
>
>
>
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
>
>
> On Wed, Dec 7, 2016 at 10:57 AM, Andrea Gavana <andrea.gavana at gmail.com>
> wrote:
>
> Dear VTK users,
>
> I have downloaded the official VTK 7.1 binaries with Python bindings
> from the VTK website, at this address:
>
> http://www.vtk.org/files/release/7.1/vtkpython-7.1.0-Windows-64bit.exe
>
> Notice the 7.1 in the name. This is the only installation of VTK I have on
> my machine. Also, from the attached screenshot, please notice that the DLLs
> on my system have a "7.1" label attached.
>
> However, when I import vtk in my system I get this:
>
> >>> import vtk
> >>> vtk
> <module 'vtk' from 'C:\Python27\lib\site-packages\vtk\__init__.pyc'>
> >>> version = vtk.vtkVersion()
> >>> version.GetVTKVersion()
> '7.0.0'
> >>> version.GetVTKMajorVersion(), version.GetVTKMinorVersion()
> (7, 0)
> >>> version.GetVTKSourceVersion()
> 'vtk version 7.0.0'
> >>>
>
>
> Am I doing something wrong or is it possible that there is a version
> mismatch in the Python bindings? It's of course not an issue, I just wanted
> to check if my setup was broken or not...
>
> Thank you.
>
> Andrea.
>
>
>
>
>
> _______________________________________________
>
>
> 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/20161215/c0bc42c6/attachment.html>
More information about the vtkusers
mailing list