# Shape variation analyzer

**URL:** <https://discourse.slicer.org/t/shape-variation-analyzer/23836>\
**Category:** Support\
**Created:** [June 12, 2022, 1:42am UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836 "2022-06-12T01:42:59Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![lili-yu22](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lili-yu22](https://discourse.slicer.org/u/lili-yu22)\
**Post date:** [June 12, 2022, 1:42am UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/1 "2022-06-12T01:42:59Z")

</div>

Systerm：win10，slicer5.1.0  
l have installed the extension shape variation analyzer，but it shows not loaded，the python interactor shows module not found error：no module named joblib，can you give me some guidelines?

---

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [June 12, 2022, 9:47am UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/2 "2022-06-12T09:47:56Z")

</div>

maybe you could try pip\_install(‘joblib’)

hopw it helps

---

<div class="post-metadata">

**Author:** ![lili-yu22](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lili-yu22](https://discourse.slicer.org/u/lili-yu22)\
**Post date:** [June 12, 2022, 11:34am UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/3 "2022-06-12T11:34:47Z")

</div>

thank you，but follow your advice，it shows “no module named threadpoolctl”，then l install the“threadpoolctl”it still failed. l uninstall the extension，want to install again，now l even can’t install the extension，how can i do

---

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [June 12, 2022, 12:03pm UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/4 "2022-06-12T12:03:17Z")

</div>

Try reinstalling slicer latest version and trying again

---

<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:** [June 12, 2022, 6:11pm UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/5 "2022-06-12T18:11:44Z")

</div>

@lili-yu22 I installed Shape Variation Analyzer using Slicer 5.0.2 through the Extensions Manager on Windows and it included joblib and threadpoolctl. How did you install the extension? Through the Extensions Manager? Installing from file? Cloning from GitHub and building from source?

---

<div class="post-metadata">

**Author:** ![lili-yu22](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lili-yu22](https://discourse.slicer.org/u/lili-yu22)\
**Post date:** [June 13, 2022, 12:55am UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/6 "2022-06-13T00:55:21Z")

</div>

through the extension manager，now I can’t download it

---

<div class="post-metadata">

**Author:** ![lili-yu22](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lili-yu22](https://discourse.slicer.org/u/lili-yu22)\
**Post date:** [June 13, 2022, 1:56am UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/7 "2022-06-13T01:56:26Z")

</div>

now，according your advice after install threadpoolctl，it success，i found at night it always failed，at day time，it success，l don’t know why it happen

---

<div class="post-metadata">

**Author:** ![SlicerBP](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@SlicerBP](https://discourse.slicer.org/u/SlicerBP)\
**Post date:** [November 27, 2022, 3:34pm UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/8 "2022-11-27T15:34:47Z")

</div>

I have the same problem. Shape variation analyzer does not work! Slicer 5.0.2

Python 3.9.10 (main, May 6 2022, 03:14:57) [MSC v.1930 64 bit (AMD64)] on win32

> > >

C:\Users\bp\AppData\Local\NA-MIC\Slicer 5.0.2\NA-MIC\Extensions-30822\ShapeVariationAnalyzer\lib\Slicer-5.0\qt-scripted-modules\shapepcalib.py:811: SyntaxWarning: “is” with a literal. Did you mean “==”?  
if (len(y\_design) is 0):  
C:\Users\bp\AppData\Local\NA-MIC\Slicer 5.0.2\NA-MIC\Extensions-30822\ShapeVariationAnalyzer\lib\Slicer-5.0\qt-scripted-modules\shapepcalib.py:820: SyntaxWarning: “is not” with a literal. Did you mean “!=”?  
if len(y\_design) is not 0:  
C:\Users\bp\AppData\Local\NA-MIC\Slicer 5.0.2\NA-MIC\Extensions-30822\ShapeVariationAnalyzer\lib\Slicer-5.0\qt-scripted-modules\cpns\cpns.py:57: SyntaxWarning: “is” with a literal. Did you mean “==”?  
if len(self.fileList) is 0:

---

<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:** [November 27, 2022, 4:12pm UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/9 "2022-11-27T16:12:05Z")

</div>

> [@SlicerBP](#):
>
> I have the same problem. Shape variation analyzer does not work! Slicer 5.0.2

Please use the latest Slicer Stable Release (currently 5.0.3, in a few days 5.2.x) or the latest Slicer Preview Release (currently 5.3.x).

---

<div class="post-metadata">

**Author:** ![SlicerBP](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@SlicerBP](https://discourse.slicer.org/u/SlicerBP)\
**Post date:** [December 3, 2022, 8:11pm UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/10 "2022-12-03T20:11:28Z")

</div>

Hi, thank you for your reply! However, I have still the same problem:

> C:\Usersbp\AppData\Local\NA-MIC\Slicer 5.2.1\NA-MIC\Extensions-31317\ShapeVariationAnalyzer\lib\Slicer-5.2\qt-scripted-modules\cpns\cpns.py:57: SyntaxWarning: “is” with a literal. Did you mean “==”?  
> if len(self.fileList) is 0:  
> File “”, line 1  
> ==  
> ^  
> SyntaxError: invalid syntax

ShapeVariationAnalyzer does not work!

---

<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:** [December 3, 2022, 8:55pm UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/11 "2022-12-03T20:55:53Z")

</div>

That is just a warning and not an error. I issued a PR to fix these warnings in ShapeVariationAnalyzer back in June, but the developers of that extension haven’t responded to integrate the change.

> <https://github.com/DCBIA-OrthoLab/ShapeVariationAnalyzer/pull/65>
>
> I observed these syntax warnings in https://slicer.cdash.org/test/22434929 where… Slicer is using Python 3.9 now.
> 
> \`\`\`
> /Volumes/D/P/S-0-E-b/ShapeVariationAnalyzer-build/inner-build/lib/Slicer-5.1/qt-scripted-modules/shapepcalib.py:811: SyntaxWarning: "is" with a literal. Did you mean "=="?
> if (len(y\_design) is 0):
> /Volumes/D/P/S-0-E-b/ShapeVariationAnalyzer-build/inner-build/lib/Slicer-5.1/qt-scripted-modules/shapepcalib.py:820: SyntaxWarning: "is not" with a literal. Did you mean "!="?
> if len(y\_design) is not 0:
> /Volumes/D/P/S-0-E-b/ShapeVariationAnalyzer-build/inner-build/lib/Slicer-5.1/qt-scripted-modules/cpns/cpns.py:57: SyntaxWarning: "is" with a literal. Did you mean "=="?
> if len(self.fileList) is 0:
> \`\`\`
> 
> The syntax warning in question started as of Python 3.8.
> https://docs.python.org/3.8/whatsnew/3.8.html#changes-in-python-behavior
> 
> \> The compiler now produces a \[SyntaxWarning\](https://docs.python.org/3.8/library/exceptions.html#SyntaxWarning) when identity checks (is and is not) are used with certain types of literals (e.g. strings, numbers). These can often work by accident in CPython, but are not guaranteed by the language spec. The warning advises users to use equality tests (== and !=) instead. (Contributed by Serhiy Storchaka in \[bpo-34850\](https://bugs.python.org/issue34850).)
> 
> cc: @jcfr

Is there something with your usage of ShapeVariationAnalyzer that is not working?

---

<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:** [December 3, 2022, 8:58pm UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/12 "2022-12-03T20:58:03Z")

</div>

Xref

> <https://github.com/DCBIA-OrthoLab/ShapeVariationAnalyzer/issues/67>
>
> ShapeVariationAnalyzer does not work under Slicer 5.2.1
> \`\`\`
> 
> \[Qt\] Switch to m…odule: "shapepcalib"
> \[Qt\] Warning, there is no UI for the module "shapepcalib"
> \`\`\`

---

<div class="post-metadata">

**Author:** ![Shivi23](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@Shivi23](https://discourse.slicer.org/u/Shivi23)\
**Post date:** [April 9, 2023, 6:20pm UTC](https://discourse.slicer.org/t/shape-variation-analyzer/23836/13 "2023-04-09T18:20:34Z")

</div>

Hi, I am using Slicer 5.2.2 and I have installed Shape Variation Analyzer by adding it as an extension. However, I do not see it as a module in the module list. Please help.
