[vtkusers] Python bindings for Windows
Mike Toews
mwtoews at gmail.com
Mon Jul 4 23:24:41 EDT 2011
Hi,
I need to read/manipulate legacy (v.3) VKT files in Python. I
currently have Python 2.5, which was installed by ArcGIS. I tried
PyVTK[1][2], which was simply to install from cmd.exe via setup.py (as
it is pure Python--I don't have a compiler). But when I tried reading
my v.3 VTK file, this exception was thrown:
TypeError: File 'foo.vtk' is not VTK 2.0 format
I understand there Python bindings are maintained as an add-on from
the main VTK source tree. On a guest Linux server, I tried "import
vtk", and I can successfully read the full structure of my test VTK
file perfectly. However, I want this on my Windows machine since that
is my primary computer with GIS, etc. I haven't found any Python
bindings for Windows, and the Downloads page[3] basically says for
"Python support ... you will have to compile VTK from source", which I
have no interest in doing. The wiki appears to be severely out of
date[4] (nearly 10 years old?), which is why I'm asking this mail
list. Are there any unofficial Python bindings to read legacy VTK
formats? Are there any future plans to provide Python support for
Windows?
Thanks,
-Mike
[1] http://cens.ioc.ee/projects/pyvtk/
[2] http://pypi.python.org/pypi/PyVTK/
[3] http://www.vtk.org/VTK/resources/software.html
[4] http://www.vtk.org/Wiki/VTK/FAQ#Where_can_I_find_Python_2.x_binaries.3F
More information about the vtkusers
mailing list