# Is MonaiLabel functional?

**URL:** <https://discourse.slicer.org/t/is-monailabel-functional/19376>\
**Category:** Support\
**Created:** [August 26, 2021, 6:13pm UTC](https://discourse.slicer.org/t/is-monailabel-functional/19376 "2021-08-26T18:13:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [August 26, 2021, 6:13pm UTC](https://discourse.slicer.org/t/is-monailabel-functional/19376/1 "2021-08-26T18:13:07Z")

</div>

I am trying to use MonaiLabel on windows build from 6/28 (4.13.0-2021-06-28 r30015 / 1807944). Extension is installed, but when Slicer starts there is this error in Python window:

> RuntimeError: qSlicerScriptedLoadableModule::setPythonSource - Failed to load scripted loadable module: class client was not found in file C:/Users/amaga/AppData/Local/NA-MIC/Slicer 4.13.0-2021-06-28/NA-MIC/Extensions-30015/MONAILabel/lib/Slicer-4.13/qt-scripted-modules/client.py

When I switch to the Monai module and when I type in the Monai server address, I get this:

> Traceback (most recent call last):  
> File “C:/Users/amaga/AppData/Local/NA-MIC/Slicer 4.13.0-2021-06-28/NA-MIC/Extensions-30015/MONAILabel/lib/Slicer-4.13/qt-scripted-modules/MONAILabel.py”, line 667, in fetchInfo  
> info = self.logic.info()  
> File “C:/Users/amaga/AppData/Local/NA-MIC/Slicer 4.13.0-2021-06-28/NA-MIC/Extensions-30015/MONAILabel/lib/Slicer-4.13/qt-scripted-modules/MONAILabel.py”, line 1225, in info  
> return MONAILabelClient(self.server\_url, self.tmpdir).info()  
> File “C:\Users\amaga\AppData\Local\NA-MIC\Slicer 4.13.0-2021-06-28\NA-MIC\Extensions-30015\MONAILabel\lib\Slicer-4.13\qt-scripted-modules\client.py”, line 26, in info  
> status, response, \_ = MONAILabelUtils.http\_method(“GET”, self.\_server\_url, selector)  
> File “C:/Users/amaga/AppData/Local/NA-MIC/Slicer 4.13.0-2021-06-28/NA-MIC/Extensions-30015/MONAILabel/lib/Slicer-4.13/qt-scripted-modules/client.py”, line 158, in http\_method  
> conn = http.client.HTTPConnection(parsed.hostname, parsed.port)  
> File “C:\Users\amaga\AppData\Local\NA-MIC\Slicer 4.13.0-2021-06-28\lib\Python\Lib\http\client.py”, line 849, in **init**  
> (self.host, self.port) = self.\_get\_hostport(host, port)  
> File “C:\Users\amaga\AppData\Local\NA-MIC\Slicer 4.13.0-2021-06-28\lib\Python\Lib\http\client.py”, line 881, in \_get\_hostport  
> i = host.rfind(‘:’)  
> AttributeError: ‘NoneType’ object has no attribute ‘rfind’

Server is accessible through the web browser installed on the machine that’s running slicer:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/d/7d1842d0d4b8f0db439332cc1aa26b1f13bf5b5c.png)

---

<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:** [August 27, 2021, 1:39am UTC](https://discourse.slicer.org/t/is-monailabel-functional/19376/2 "2021-08-27T01:39:56Z")

</div>

This is a very, very old build for MONAILabel. There are dozens of commits every week. The [client.py warning](https://github.com/Project-MONAI/MONAILabel/issues/263) and many other issues were fixed long time ago. Please try the latest (maximum 1-2 days old) version and [submit a bug report](https://github.com/Project-MONAI/MONAILabel/issues/) if something is broken.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [August 27, 2021, 1:47am UTC](https://discourse.slicer.org/t/is-monailabel-functional/19376/3 "2021-08-27T01:47:59Z")

</div>

Good to know. At this point I can’t try a recent build due to these two issues;

> [@Unable to manually install extension to manual Slicer build](https://discourse.slicer.org/t/unable-to-manually-install-extension-to-manual-slicer-build/19359/5):
>
> Commits in question include: [ENH: Update extensions manager to support Girder · Slicer/Slicer@109e79c · GitHub](https://github.com/Slicer/Slicer/commit/109e79ce24a24fae7d053696b5eb46ebe193e1cf#diff-28a05eaf07fcf6d76c0acf5469b48e5c86f2c0f169d995f027e1f6be14debce0)[ENH: Set default extensions manager ServerAPI to "Girder\_v1" · Slicer/Slicer@489a919 · GitHub](https://github.com/Slicer/Slicer/commit/489a919a321c7911dc49183745375269a5b99e9b#diff-28a05eaf07fcf6d76c0acf5469b48e5c86f2c0f169d995f027e1f6be14debce0)[BUG: Fix loading of extension installed using "Girder\_v1" serverAPI · Slicer/Slicer@5c7c2e4 · GitHub](https://github.com/Slicer/Slicer/commit/5c7c2e4c1614167fbe96a23bd889897ad57066a1#diff-28a05eaf07fcf6d76c0acf5469b48e5c86f2c0f169d995f027e1f6be14debce0)[BUG: Fix retrieval of extension metadata by name using "Girder\_v1" se… · Slicer/Slicer@57ce038 · GitHub](https://github.com/Slicer/Slicer/commit/57ce038ac3dc761d19906af5045ec18c953fd673#diff-28a05eaf07fcf6d76c0acf5469b48e5c86f2c0f169d995f027e1f6be14debce0)[BUG: Fix extension compatibility check if installed using "Girder\_v1"… · Slicer/Slicer@1…](https://github.com/Slicer/Slicer/commit/1c71a320711e4a88fa7a443037e8cc4cd301aa69#diff-28a05eaf07fcf6d76c0acf5469b48e5c86f2c0f169d995f027e1f6be14debce0)

> [@New extension manager and issues with corporate certificates](https://discourse.slicer.org/t/new-extension-manager-and-issues-with-corporate-certificates/19361):
>
> Today I downloaded a new preview version, and tried to install MoniaLabel and SlicerMorph on my work computers, and encountered this error: Mixed Content: The page at 'https://extensions.slicer.org/catalog/All/30133/win?q=' was loaded over HTTPS, but requested an insecure image 'http://www.example.com/Slicer/Extensions/BreastImplantAnalyzer.png'. This content should also be served over HTTPS. Mixed Content: The page at 'https://extensions.slicer.org/catalog/All/30133/win?q=' was loaded over H…

---

<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:** [August 27, 2021, 1:50am UTC](https://discourse.slicer.org/t/is-monailabel-functional/19376/4 "2021-08-27T01:50:50Z")

</div>

You can simply unzip the content of the extension package and add the loadable, scripted, and CLI module folders to additional module paths.

You can also use the extension manager from a mobile network or at home to download Slicer and install extensions, then copy it to a USB stick. Slicer Preview Releases are fully portable applications, so they run without any installation.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [August 27, 2021, 1:52am UTC](https://discourse.slicer.org/t/is-monailabel-functional/19376/5 "2021-08-27T01:52:23Z")

</div>

> [@lassoan](#):
>
> nd CLI module folders to additional module paths.

OK. I forgot about that method of manually installing. Will try. Hopefully those extension manager issues will get fixed soon though…

---

<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:** [August 27, 2021, 2:01am UTC](https://discourse.slicer.org/t/is-monailabel-functional/19376/6 "2021-08-27T02:01:59Z")

</div>

I think @jcfr will return next week and this will be probably quite high on his priority list.

---

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [September 1, 2021, 6:26pm UTC](https://discourse.slicer.org/t/is-monailabel-functional/19376/7 "2021-09-01T18:26:07Z")

</div>

Pinging @diazandr3s so he’s aware of this thread.

---

<div class="post-metadata">

**Author:** ![diazandr3s](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/diazandr3s/32/9973_2.png) [@diazandr3s](https://discourse.slicer.org/u/diazandr3s)\
**Post date:** [September 2, 2021, 9:36am UTC](https://discourse.slicer.org/t/is-monailabel-functional/19376/8 "2021-09-02T09:36:58Z")

</div>

@Fernando many thanks for the ping! As Andras commented, MONAI Label is under continuous development. Three days is almost history for this project 😃
