Discussion:
[vtkusers] Wheels for Python3.7 ('pip3 install vtk' fails)
Lukas Riedel
2018-11-21 13:46:08 UTC
Permalink
Hello,

being able to install the VTK library for Python into a virtual environment is really handy. However, PyPI currently lacks wheels for the most recent version 3.7 of Python. Are there any plans for a release?

The information reported by ‘pip’ is already quite confusing:

$ python3 --version
Python 3.7.1

$ python3 -m pip search vtk
vtk (8.1.1) - VTK is an open-source toolkit for 3D computer graphics, image processing, and visualization
[
]

$ python3 -m pip install vtk
Collecting vtk
Could not find a version that satisfies the requirement vtk (from versions: )
No matching distribution found for vtk

I realized there are no distributions of ‘vtk’ for Python 3.7 when looking at the files overview in PyPI, https://pypi.org/project/vtk/#files <https://pypi.org/project/vtk/#files>.

I did not find any major issues concerning the compatibility of VTK with Python 3.7. Is there a reason no wheels have been distributed yet? Is there any way one can help?

Thank you in advance!
Lukas Riedel
Franks
2018-11-21 14:07:32 UTC
Permalink
Hi,Lukas

The current VTK in pip do not support python3.7.

Solution:
1. You can use python3.6 or 3.5, 3.4. See the supported python version in
the link https://pypi.org/project/vtk/#files
<https://pypi.org/project/vtk/#files>
2. You can build VTK source with "VTK_WRAP_PYTHON" on.

Frank



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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:
https://public.kitware.com/mailman/listinfo/vtkusers
David Gobbi
2018-11-21 14:41:21 UTC
Permalink
Hi Lukas,

There was a change in the Python 3.7 API that caused compatibility problems
with VTK. This has been fixed in VTK 8.1.2, which was released a few days
ago. Unfortunately I don't know the timeline for getting VTK 8.1.2 into
PyPI.

David
Post by Franks
Hi,Lukas
The current VTK in pip do not support python3.7.
1. You can use python3.6 or 3.5, 3.4. See the supported python version in
the link https://pypi.org/project/vtk/#files
<https://pypi.org/project/vtk/#files>
2. You can build VTK source with "VTK_WRAP_PYTHON" on.
Frank
Fahlgren, Eric
2018-11-21 14:42:09 UTC
Permalink
Yup, like Frank says in #2, I just built 8.1.2 on Windows last night using Python 3.7.1 (3.7.0 can't be used, https://gitlab.kitware.com/vtk/vtk/issues/17363 ). Ran our full regression suite using those and it works just fine.



-----Original Message-----
From: vtkusers <vtkusers-***@public.kitware.com> On Behalf Of Franks
Sent: Wednesday, November 21, 2018 6:08 AM
To: ***@vtk.org
Subject: Re: [vtkusers] Wheels for Python3.7 ('pip3 install vtk' fails)

Hi,Lukas

The current VTK in pip do not support python3.7.

Solution:
1. You can use python3.6 or 3.5, 3.4. See the supported python version in
the link https://pypi.org/project/vtk/#files
<https://pypi.org/project/vtk/#files>
2. You can build VTK source with "VTK_WRAP_PYTHON" on.

Frank



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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:
https://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
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:
https://public.kitware.com/mailman/listinfo/vtkusers
David Gobbi
2018-11-21 14:48:08 UTC
Permalink
On Wed, Nov 21, 2018 at 7:42 AM Fahlgren, Eric <
Post by Fahlgren, Eric
Yup, like Frank says in #2, I just built 8.1.2 on Windows last night using
Python 3.7.1 (3.7.0 can't be used,
https://gitlab.kitware.com/vtk/vtk/issues/17363 ). Ran our full
regression suite using those and it works just fine.
To be fair, VTK 8.1.2 "mostly" works with the old Python 3.7.0 release.
What doesn't work is the vtkpython executable and embedding the
interpreter. Definitely recommend Python 3.7.1, though.

David
Jean-Christophe Fillion-Robin
2018-11-21 16:44:27 UTC
Permalink
Hi,

To allow generating the wheel for python 3.7, this project would need to be
fixed/updated: https://github.com/KitwareMedical/VTKPythonPackage

Jc
Post by David Gobbi
On Wed, Nov 21, 2018 at 7:42 AM Fahlgren, Eric <
Post by Fahlgren, Eric
Yup, like Frank says in #2, I just built 8.1.2 on Windows last night
using Python 3.7.1 (3.7.0 can't be used,
https://gitlab.kitware.com/vtk/vtk/issues/17363 ). Ran our full
regression suite using those and it works just fine.
To be fair, VTK 8.1.2 "mostly" works with the old Python 3.7.0 release.
What doesn't work is the vtkpython executable and embedding the
interpreter. Definitely recommend Python 3.7.1, though.
David
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
https://public.kitware.com/mailman/listinfo/vtkusers
Loading...