# Failed to fetch MONAI label server

**URL:** <https://discourse.slicer.org/t/failed-to-fetch-monai-label-server/19957>\
**Category:** Support\
**Created:** [October 1, 2021, 5:36pm UTC](https://discourse.slicer.org/t/failed-to-fetch-monai-label-server/19957 "2021-10-01T17:36:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ragwing\_mmh](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ragwing_mmh/32/8504_2.png) [@ragwing\_mmh](https://discourse.slicer.org/u/ragwing_mmh)\
**Post date:** [October 1, 2021, 5:36pm UTC](https://discourse.slicer.org/t/failed-to-fetch-monai-label-server/19957/1 "2021-10-01T17:36:26Z")

</div>

Operating system: Windows 7 Build 6.1.7601  
Slicer version: 4.13.0 2021-08-16  
The version of Python: Python 3.6.7  
Expected behavior: Fetch MONAI label server and start Deepedit  
Actual behavior: failed

I have setuped MONAI & MONAI label at my workstation, which running ubuntu 18.04. Both fetch local MONAI label server & Deepedit work fine at ubuntu server under 4.13.0 2021-09-29 build

The address of MONAI label server is correct and can be opened in browser at both windows 7 & ubuntu.

But when I use the 3D slicer client with MONAI label plug-in at windows 7, it failed to fetch MONAI label server and showed following error message:

KeyError: 'config’Traceback (most recent call last):  
File “C:/ProgramData/NA-MIC/Slicer 4.13.0-2021-08-16/NA-MIC/Extensions-30121/MONAILabel/lib/Slicer-4.13/qt-scripted-modules/MONAILabel.py”, line 960, in onClickFetchInfo  
self.fetchInfo()  
File “C:/ProgramData/NA-MIC/Slicer 4.13.0-2021-08-16/NA-MIC/Extensions-30121/MONAILabel/lib/Slicer-4.13/qt-scripted-modules/MONAILabel.py”, line 987, in fetchInfo  
self.config = info[“config”]  
KeyError: ‘config’

I also tried to install the same bulid of 3D slicer as ubuntu (4.13.0 2021-09-29) in windows 7 but it failed to start 3D slicer when launching, the error message is:

SlicerApp-real.exe stopped to work  
Error module name: ucrtbase.DLL

How can I fix these issue and use the MONAI label at windows 3D slicer?  
Thank you.

---

<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:** [October 1, 2021, 5:48pm UTC](https://discourse.slicer.org/t/failed-to-fetch-monai-label-server/19957/2 "2021-10-01T17:48:16Z")

</div>

2021-08-16 version is almost 6 weeks old and features are added/bugs are fixed at a rapid pace in MONAILabel. Use the latest Slicer Preview Release and let us know if you run into any issues.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [October 1, 2021, 6:03pm UTC](https://discourse.slicer.org/t/failed-to-fetch-monai-label-server/19957/3 "2021-10-01T18:03:19Z")

</div>

> [@ragwing\_mmh](#):
>
> I also tried to install the same bulid of 3D slicer as ubuntu (4.13.0 2021-09-29) in windows 7 but it failed to start 3D slicer when launching

Windows 7 is going to be a problem when trying to use latest Slicer Preview. See the below information

> [@Application failed to start on Windows 7](https://discourse.slicer.org/t/application-failed-to-start-on-windows-7/16749/2):
>
> Windows 7 is not supported (Microsoft dropped support for it long time ago). We have not made any breaking changes intentionally, but we don’t test impact of changes on these old systems. It is not very likely that you can get help from the community to troubleshoot this, so if running Slicer on Windows7 is a priority for you and you cannot resolve the problem yourself then you may contract [commercial partners](https://slicer.readthedocs.io/en/latest/user_guide/about.html#commercial-partners) to investigate the issue. I would recommend to upgrade the operating system on your c…

---

<div class="post-metadata">

**Author:** ![ragwing\_mmh](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ragwing_mmh/32/8504_2.png) [@ragwing\_mmh](https://discourse.slicer.org/u/ragwing_mmh)\
**Post date:** [October 1, 2021, 6:05pm UTC](https://discourse.slicer.org/t/failed-to-fetch-monai-label-server/19957/4 "2021-10-01T18:05:34Z")

</div>

Thank you sir for instant reply

I tried to install the latest bulid of 3D slicer 4.13.0 2021-09-28 in windows 7, same latest build as ubuntu; but it failed to start 3D slicer when launching, even under the previous build at 2021-09-21

the error message (partial) is:  
SlicerApp-real.exe has stopped to work  
Error module name: ucrtbase.DLL

The 4.13.0 2021-08-16 build is one build that can lanuch normally

---

<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:** [October 1, 2021, 7:28pm UTC](https://discourse.slicer.org/t/failed-to-fetch-monai-label-server/19957/5 "2021-10-01T19:28:06Z")

</div>

Supporting old hardware and operating systems have very high cost and very low value, therefore we generally stay away from it.

You can try all Slicer releases between 08-16 and 09-21 and see which exact day the startup started to fail. Then you can [build Slicer from source code](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/index.html) and confirm which exact commit made the difference and build Slicer without that change. Note that if you build Slicer then it means that you also need to [build all extensions](https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html#build-list-of-extensions-manually). These are all doable, but will most likely you will need to invest several days of work into it, therefore it may be cheaper to buy a used (not more than 3-year-old) computer that is compatible with current Windows version.

---

<div class="post-metadata">

**Author:** ![NPC](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/npc/32/14490_2.png) [@NPC](https://discourse.slicer.org/u/NPC)\
**Post date:** [February 28, 2022, 10:29am UTC](https://discourse.slicer.org/t/failed-to-fetch-monai-label-server/19957/6 "2022-02-28T10:29:52Z")

</div>

@ragwing_mmh have you been able to resolve the fetch issue? I have the similar Slicer version and I tried installing it on Mac, It throws the same error as you mentioned and I was wondering if were able to bypass this issue. If yes, kind share with us how you resolved it. It was be a great help. Thank you.

here the error if it helps

Traceback (most recent call last):  
File “/Applications/Slicer.app/Contents/Extensions-30657/MONAILabel/lib/Slicer-4.13/qt-scripted-modules/MONAILabel.py”, line 949, in fetchInfo  
info = self.logic.info()  
File “/Applications/Slicer.app/Contents/Extensions-30657/MONAILabel/lib/Slicer-4.13/qt-scripted-modules/MONAILabel.py”, line 1965, in info  
return MONAILabelClient(self.server\_url, self.tmpdir, self.client\_id).info()  
File “/Applications/Slicer.app/Contents/Extensions-30657/MONAILabel/lib/Slicer-4.13/qt-scripted-modules/MONAILabelLib/client.py”, line 47, in info  
status, response, \_ = MONAILabelUtils.http\_method(“GET”, self.\_server\_url, selector)  
File “/Applications/Slicer.app/Contents/Extensions-30657/MONAILabel/lib/Slicer-4.13/qt-scripted-modules/MONAILabelLib/client.py”, line 260, in http\_method  
conn.request(method, selector, body=body, headers=headers)  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/http/client.py”, line 1285, in request  
self.\_send\_request(method, url, body, headers, encode\_chunked)  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/http/client.py”, line 1331, in \_send\_request  
self.endheaders(body, encode\_chunked=encode\_chunked)  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/http/client.py”, line 1280, in endheaders  
self.\_send\_output(message\_body, encode\_chunked=encode\_chunked)  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/http/client.py”, line 1040, in \_send\_output  
self.send(msg)  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/http/client.py”, line 980, in send  
self.connect()  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/http/client.py”, line 946, in connect  
self.sock = self.\_create\_connection(  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/socket.py”, line 844, in create\_connection  
raise err  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/socket.py”, line 832, in create\_connection  
sock.connect(sa)  
ConnectionRefusedError: [Errno 61] Connection refused
