# Problem with Monaibundle app

**URL:** <https://discourse.slicer.org/t/problem-with-monaibundle-app/32778>\
**Category:** Support\
**Tags:** monailabel\
**Created:** [November 13, 2023, 12:34pm UTC](https://discourse.slicer.org/t/problem-with-monaibundle-app/32778 "2023-11-13T12:34:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![franbuemi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/franbuemi/32/67915_2.png) [@franbuemi](https://discourse.slicer.org/u/franbuemi)\
**Post date:** [November 13, 2023, 12:34pm UTC](https://discourse.slicer.org/t/problem-with-monaibundle-app/32778/1 "2023-11-13T12:34:24Z")

</div>

I have a problem with MonaiBundle. I just started trying to use the models from the Monailabel Zoo through the MonaiBundle app. When I click on ‘run’ in ‘auto segmentation,’ I get the following error message: ‘Failed to run inference in MONAI Label Server. Message: Status: 500; Response: Internal Server Error’

Traceback (most recent call last): File “C:/Users/franb/AppData/Local/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/MONAILabel/lib/Slicer-5.4/qt-scripted-modules/MONAILabel.py”, line 1524, in onClickSegmentation result\_file, params = self.logic.infer(model, image\_file, params, session\_id=self.getSessionId()) File “C:/Users/franb/AppData/Local/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/MONAILabel/lib/Slicer-5.4/qt-scripted-modules/MONAILabel.py”, line 2296, in infer result\_file, params = client.infer(model, image\_in, params, label\_in, file, session\_id) File “C:\Users\franb\AppData\Local\slicer.org\Slicer 5.4.0\slicer.org\Extensions-31938\MONAILabel\lib\Slicer-5.4\qt-scripted-modules\MONAILabelLib\client.py”, line 344, in infer raise MONAILabelClientException(MONAILabelLib.client.MONAILabelClientException: (1, ‘Status: 500; Response: Internal Server Error’)

How can I solve it?

 ![screen](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/3/63c10d00312f064dd36195c0a49f6f0bdf7f384f.jpeg)

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [November 13, 2023, 1:44pm UTC](https://discourse.slicer.org/t/problem-with-monaibundle-app/32778/2 "2023-11-13T13:44:32Z")

</div>

Please refer to the Monao Bundle [How To](https://projectweek.na-mic.org/PW39_2023_Montreal/Projects/MONAIBundleIntegrationTutorial/) that we have recently made.

---

<div class="post-metadata">

**Author:** ![franbuemi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/franbuemi/32/67915_2.png) [@franbuemi](https://discourse.slicer.org/u/franbuemi)\
**Post date:** [December 16, 2023, 5:35pm UTC](https://discourse.slicer.org/t/problem-with-monaibundle-app/32778/3 "2023-12-16T17:35:26Z")

</div>

I tried to install MONAI 1.20.rc6, but it seems like this version doesn’t exist. I couldn’t find it during the installation attempt, and I received the following message in the terminal.

 ![a](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/c/ac94958df547de159c983e72757ccfc05b06993d.png)

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [December 17, 2023, 7:22pm UTC](https://discourse.slicer.org/t/problem-with-monaibundle-app/32778/4 "2023-12-17T19:22:25Z")

</div>

You can use:

```auto
pip install monai==1.2.0

```

(tested)

Will change it in the documentation.

---

<div class="post-metadata">

**Author:** ![franbuemi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/franbuemi/32/67915_2.png) [@franbuemi](https://discourse.slicer.org/u/franbuemi)\
**Post date:** [December 18, 2023, 10:46am UTC](https://discourse.slicer.org/t/problem-with-monaibundle-app/32778/5 "2023-12-18T10:46:36Z")

</div>

Solved, it works! Thank you very much!

---

<div class="post-metadata">

**Author:** ![klc](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/klc/32/68248_2.png) [@klc](https://discourse.slicer.org/u/klc)\
**Post date:** [March 6, 2024, 4:39pm UTC](https://discourse.slicer.org/t/problem-with-monaibundle-app/32778/6 "2024-03-06T16:39:40Z")

</div>

Hi Professor, I just followed the instructions of this article to set up monaibundle and it works like a charm. I am using the command _monailabel start\_server --app apps/monaibundle --studies Desktop --conf models lung\_nodule\_ct\_detection_ to start the server and can produce satisfactory results. May I know what is the purpose of Setting up an AWS EC2 Windows server in the cloud?

I am using the LIDC-IDRI dataset to do the lung nodule segmentation and the right hand side the ground truth label while the left side is the label produced by monai zoo model

 ![WhatsApp Image 2024-03-07 at 00.16.53_1b18bef4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/b/0b561328b943cfadedead10955cba821c8bf8841.jpeg)

Thank you

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [March 6, 2024, 7:58pm UTC](https://discourse.slicer.org/t/problem-with-monaibundle-app/32778/7 "2024-03-06T19:58:49Z")

</div>

Great that it works

Best  
Rudolf

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 7, 2024, 4:16am UTC](https://discourse.slicer.org/t/problem-with-monaibundle-app/32778/8 "2024-03-07T04:16:37Z")

</div>

> [@klc](#):
>
> May I know what is the purpose of Setting up an AWS EC2 Windows server in the cloud?

If you want to get segmentation results quickly and you don’t want to buy a computer that has a GPU then you can rent virtual machines from AWS or other cloud providers. If you already have a computer with a good GPU then this is not necessary.
