# Python 3.8 wrapping support?

**URL:** https://discourse.vtk.org/t/python-3-8-wrapping-support/2621
**Category:** Support
**Created:** [February 14, 2020, 7:04pm UTC](https://discourse.vtk.org/t/python-3-8-wrapping-support/2621 "2020-02-14T19:04:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![aborsic](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@aborsic](https://discourse.vtk.org/u/aborsic)
#### Post date: [February 14, 2020, 7:04pm UTC](https://discourse.vtk.org/t/python-3-8-wrapping-support/2621/1 "2020-02-14T19:04:02Z")

</div>

Hi,

I am trying to compile VTK 8.2.0 on Windows 10 64bit, Python 3.8.1 64bit, Visual Studio 2015 Update 3.

A simple CMake configuration that has worked well with VTK 8.1.2 and Python 3.6 is now throwing hundreds of errors at compile time of the kind:

48\>Y:\Libraries\_Requiring\_Compile\vtk-8.2.0\vtk-8.2.0-bin\Wrapping\Python\vtkSphericalTransformPython.cxx(231): error C2440: ‘initializing’: cannot convert from ‘nullptr’ to ‘Py\_ssize\_t’

Does anyone have similar problems? I did not find anything particular about this in this section of VTK Discourse, and some info on a general search, dating Jan 2019, saying that wrapping for Python 3.8 was not working at the time.

Can anyone kindly confirm what is the situation with wrapping Python 3.8?

Thanks and Best Regards,

Andrea

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [February 14, 2020, 8:26pm UTC](https://discourse.vtk.org/t/python-3-8-wrapping-support/2621/2 "2020-02-14T20:26:06Z")

</div>

Hi Andrea,

The [release branch](https://gitlab.kitware.com/vtk/vtk/commits/release) of VTK contains fixes for Python 3.8. The release branch is what would have become VTK 8.2.1.

David

---

<div class="post-metadata">

### Author: ![aborsic](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@aborsic](https://discourse.vtk.org/u/aborsic)
#### Post date: [February 14, 2020, 8:43pm UTC](https://discourse.vtk.org/t/python-3-8-wrapping-support/2621/3 "2020-02-14T20:43:13Z")

</div>

Hi David,

Thanks for this answer. Does it mean also that there will not be a version 8.2.1 ?

Best Regards, thanks,

Andrea

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [February 14, 2020, 9:08pm UTC](https://discourse.vtk.org/t/python-3-8-wrapping-support/2621/4 "2020-02-14T21:08:40Z")

</div>

@Dave_DeMarle is a 8.2.1 release still out of the question?

I know that the intent was to move forward with the 9.0 release, but realistically I can’t see VTK 9 coming out any time soon.

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dave_demarle/32/6_2.png) [@Dave\_DeMarle](https://discourse.vtk.org/u/Dave_DeMarle)
#### Post date: [February 14, 2020, 9:16pm UTC](https://discourse.vtk.org/t/python-3-8-wrapping-support/2621/5 "2020-02-14T21:16:46Z")

</div>

Yes. I still don’t intend to make an 8.2.1.

Why are you thinking a 9 is not realistic? If there is something fundamentally wrong with master, I might change my answer of course.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [February 15, 2020, 8:33am UTC](https://discourse.vtk.org/t/python-3-8-wrapping-support/2621/6 "2020-02-15T08:33:21Z")

</div>

I don’t think these fixes landed in `release` since they were deemed as `clang-tidy` noise fixes. I wasn’t aware that VS2015 was making these into errors. You’ll need these patches:

- [https://gitlab.kitware.com/vtk/vtk/merge\_requests/6269](https://gitlab.kitware.com/vtk/vtk/merge_requests/6269)
- [https://gitlab.kitware.com/vtk/vtk/merge\_requests/6275](https://gitlab.kitware.com/vtk/vtk/merge_requests/6275)

---

<div class="post-metadata">

### Author: ![aborsic](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@aborsic](https://discourse.vtk.org/u/aborsic)
#### Post date: [February 15, 2020, 10:33pm UTC](https://discourse.vtk.org/t/python-3-8-wrapping-support/2621/7 "2020-02-15T22:33:22Z")

</div>

Ben,

Thanks for the info.

Best Regards,

Andrea
