# Release build of Slicer fails with error on sphinx-build

**URL:** <https://discourse.slicer.org/t/release-build-of-slicer-fails-with-error-on-sphinx-build/30544>\
**Category:** Development\
**Tags:** python\
**Created:** [July 12, 2023, 11:04am UTC](https://discourse.slicer.org/t/release-build-of-slicer-fails-with-error-on-sphinx-build/30544 "2023-07-12T11:04:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![drdH](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@drdH](https://discourse.slicer.org/u/drdH)\
**Post date:** [July 12, 2023, 11:04am UTC](https://discourse.slicer.org/t/release-build-of-slicer-fails-with-error-on-sphinx-build/30544/1 "2023-07-12T11:04:51Z")

</div>

Hello Team,

Kindly wanted to know how to fix the error based on below message:

> CUSTOMBUILD : warning : sphinx-build not found: Python documentation will not be created

I am trying to build in release mode. The issue occurs when ALL\_BUILD is performed from visual studio.

Regards,  
Darshan

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 12, 2023, 1:53pm UTC](https://discourse.slicer.org/t/release-build-of-slicer-fails-with-error-on-sphinx-build/30544/2 "2023-07-12T13:53:52Z")

</div>

I believe this is just a warning you can ignore. Or maybe you can just install the package and it will build the documentation.

---

<div class="post-metadata">

**Author:** ![drdH](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@drdH](https://discourse.slicer.org/u/drdH)\
**Post date:** [July 13, 2023, 10:24am UTC](https://discourse.slicer.org/t/release-build-of-slicer-fails-with-error-on-sphinx-build/30544/3 "2023-07-13T10:24:51Z")

</div>

Hello Steve Sir,

Thank you. Kindly wanted to know if there is a way to turn off this build in the CMake file or some place so that it does not try and build this ?

Regards,  
Darshan

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 13, 2023, 12:45pm UTC](https://discourse.slicer.org/t/release-build-of-slicer-fails-with-error-on-sphinx-build/30544/4 "2023-07-13T12:45:09Z")

</div>

You’d need to look in the source code for a way to turn this off, but you shouldn’t need to. You should just ignore this if you don’t need to build the documentation.

---

<div class="post-metadata">

**Author:** ![drdH](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@drdH](https://discourse.slicer.org/u/drdH)\
**Post date:** [July 13, 2023, 2:53pm UTC](https://discourse.slicer.org/t/release-build-of-slicer-fails-with-error-on-sphinx-build/30544/5 "2023-07-13T14:53:39Z")

</div>

Hello Steve Sir,

Thank you, but the build does not proceed to create the slicer exe. It simply fails at this step and gives below error:

 ![grafik](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/0/1014dad4dac0a1cc9ac673d41e9b17f91c38983f.png)

Regards,  
Darshan

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 13, 2023, 3:13pm UTC](https://discourse.slicer.org/t/release-build-of-slicer-fails-with-error-on-sphinx-build/30544/6 "2023-07-13T15:13:11Z")

</div>

Probably there is something else going wrong with the build. Look higher up in the logs to see what is going on. Maybe someone who routinely builds on Windows can offer suggestions.
