# ITK 4.13.0 Python wrapping does not compile with VS 2017 15.7.4 with V14.14 tools

**URL:** https://discourse.itk.org/t/itk-4-13-0-python-wrapping-does-not-compile-with-vs-2017-15-7-4-with-v14-14-tools/1052
**Category:** Uncategorized
**Created:** [July 1, 2018, 11:45am UTC](https://discourse.itk.org/t/itk-4-13-0-python-wrapping-does-not-compile-with-vs-2017-15-7-4-with-v14-14-tools/1052 "2018-07-01T11:45:03Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Sophonet](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@Sophonet](https://discourse.itk.org/u/Sophonet)
#### Post date: [July 1, 2018, 11:45am UTC](https://discourse.itk.org/t/itk-4-13-0-python-wrapping-does-not-compile-with-vs-2017-15-7-4-with-v14-14-tools/1052/1 "2018-07-01T11:45:05Z")

</div>

Hi - after having upgraded VS 2017 to 15.7.4 a few days ago, ITK 4.13.0 with Python wrapping does not compile anymore - there are tons of errors pointing to syntactic errors in MSVC/14.14.26428/include/… It seems that the problem is related to C++17-style declarations that are not understood by CastXML.

Anyone facing the same error? If there is a workaround, it would be good to know.

Thanks,

```
Sophonet
```

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [July 2, 2018, 6:49am UTC](https://discourse.itk.org/t/itk-4-13-0-python-wrapping-does-not-compile-with-vs-2017-15-7-4-with-v14-14-tools/1052/2 "2018-07-02T06:49:58Z")

</div>

Similar thing was happening with earlier versions of VS2017 (maybe 15.0, 15.1). Other than trying to upgrade CastXML to the newest version and not compiling using VS2017, there is little to be done.

---

<div class="post-metadata">

### Author: ![Sophonet](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@Sophonet](https://discourse.itk.org/u/Sophonet)
#### Post date: [July 4, 2018, 1:42pm UTC](https://discourse.itk.org/t/itk-4-13-0-python-wrapping-does-not-compile-with-vs-2017-15-7-4-with-v14-14-tools/1052/3 "2018-07-04T13:42:48Z")

</div>

Agreed - any chance that Matthew McCormick could update the binary packages in [https://midas3.kitware.com/midas/folder/13152](https://midas3.kitware.com/midas/folder/13152), since they are downloaded and used when building ITK if CastXML is not installed on the system? I guess that more and more users might run into the same issues, and building CastXML can be done (by installing LLVM etc.), but (with Matthew’s binary packages) can also be avoided.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [July 4, 2018, 4:52pm UTC](https://discourse.itk.org/t/itk-4-13-0-python-wrapping-does-not-compile-with-vs-2017-15-7-4-with-v14-14-tools/1052/4 "2018-07-04T16:52:54Z")

</div>

@matt.mccormick is supposed to be back at work in full capacity on July 16th. If you need a solution quicker than that, try installing CastXML locally. In case you do, feedback about which versions work and which don’t would be useful.

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [July 5, 2018, 3:15pm UTC](https://discourse.itk.org/t/itk-4-13-0-python-wrapping-does-not-compile-with-vs-2017-15-7-4-with-v14-14-tools/1052/5 "2018-07-05T15:15:36Z")

</div>

@Sophonet @dzenanz I started to look at this – the source and builds are [maintained here](https://github.com/CastXML/CastXMLSuperbuild).

It looks like an update to the latest CastXML and LLVM 6.0.1 does not quite do the trick.

I will take a further look after July 16.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [July 5, 2018, 3:26pm UTC](https://discourse.itk.org/t/itk-4-13-0-python-wrapping-does-not-compile-with-vs-2017-15-7-4-with-v14-14-tools/1052/6 "2018-07-05T15:26:59Z")

</div>

Also migrating the binaries to girder might be well timed then 😃

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [August 13, 2018, 2:48pm UTC](https://discourse.itk.org/t/itk-4-13-0-python-wrapping-does-not-compile-with-vs-2017-15-7-4-with-v14-14-tools/1052/7 "2018-08-13T14:48:06Z")

</div>

The ITK Python builds with Visual Studio 2017 have been fixed with ITK 4.13.1 and in ITK `master`. We also have new CastXML binaries on Girder. 👷‍♂️
