# Extension python wrapping (python36\_d.lib not found)

**URL:** <https://discourse.slicer.org/t/extension-python-wrapping-python36-d-lib-not-found/8124>\
**Category:** Development\
**Created:** [August 21, 2019, 4:32pm UTC](https://discourse.slicer.org/t/extension-python-wrapping-python36-d-lib-not-found/8124 "2019-08-21T16:32:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamrankin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/adamrankin/32/155_2.png) [@adamrankin](https://discourse.slicer.org/u/adamrankin)\
**Post date:** [August 21, 2019, 4:32pm UTC](https://discourse.slicer.org/t/extension-python-wrapping-python36-d-lib-not-found/8124/1 "2019-08-21T16:32:26Z")

</div>

Hello all,

Is it possible to use the release python built by debug Slicer to be used in extensions for wrapping?

@jcfr @lassoan @pieper

Cheers,  
Adam

---

<div class="post-metadata">

**Author:** ![adamrankin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/adamrankin/32/155_2.png) [@adamrankin](https://discourse.slicer.org/u/adamrankin)\
**Post date:** [August 21, 2019, 6:05pm UTC](https://discourse.slicer.org/t/extension-python-wrapping-python36-d-lib-not-found/8124/2 "2019-08-21T18:05:55Z")

</div>

To myself:

Yes, it is an error in the library to automatically use the python\_d library. In this case, Swig looks for python36\_d.lib unless configured using the SWIG\_PYTHON\_INTERPRETER\_NO\_DEBUG preprocessor define.

[http://www.swig.org/Doc3.0/Python.html](http://www.swig.org/Doc3.0/Python.html)

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [August 21, 2019, 8:25pm UTC](https://discourse.slicer.org/t/extension-python-wrapping-python36-d-lib-not-found/8124/3 "2019-08-21T20:25:21Z")

</div>

As you may have noticed, independently of the configuration you choose to build Slicer (Release, RelWithDebInfo, … , Debug), CPython is always built in Release/

This should not prevent you from wrapping your code.

Could you provide more details about the error you got and how to reproduce it ?
