# Failed to get TotalSegmentator package version on macOS

**URL:** <https://discourse.slicer.org/t/failed-to-get-totalsegmentator-package-version-on-macos/32492>\
**Category:** Support\
**Tags:** segmentation, totalsegmentator\
**Created:** [October 30, 2023, 7:15pm UTC](https://discourse.slicer.org/t/failed-to-get-totalsegmentator-package-version-on-macos/32492 "2023-10-30T19:15:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [October 30, 2023, 7:15pm UTC](https://discourse.slicer.org/t/failed-to-get-totalsegmentator-package-version-on-macos/32492/1 "2023-10-30T19:15:58Z")

</div>

FYI - on a Mac, when I push the button to get package version information, I am getting this error:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/4/34bb9561891c634a0235273ffafab51f2df58376.png)

Traceback:

```auto
Traceback (most recent call last):
  File "/Applications/Slicer 2.app/Contents/bin/Python/slicer/util.py", line 3146, in tryWithErrorDisplay
    yield
  File "/Applications/Slicer 2.app/Contents/Extensions-32251/TotalSegmentator/lib/Slicer-5.5/qt-scripted-modules/TotalSegmentator.py", line 300, in onPackageInfoUpdate
    self.ui.packageInfoTextBrowser.plainText = self.logic.installedTotalSegmentatorPythonPackageInfo().rstrip()
  File "/Applications/Slicer 2.app/Contents/Extensions-32251/TotalSegmentator/lib/Slicer-5.5/qt-scripted-modules/TotalSegmentator.py", line 564, in installedTotalSegmentatorPythonPackageInfo
    versionInfo = subprocess.check_output([shutil.which('PythonSlicer'), "-m", "pip", "show", "TotalSegmentator"]).decode()
  File "/Applications/Slicer 2.app/Contents/lib/Python/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/Applications/Slicer 2.app/Contents/lib/Python/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/Applications/Slicer 2.app/Contents/bin/../bin/PythonSlicer', '-m', 'pip', 'show', 'TotalSegmentator']' returned non-zero exit status 1.

```

---

<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 30, 2023, 7:19pm UTC](https://discourse.slicer.org/t/failed-to-get-totalsegmentator-package-version-on-macos/32492/2 "2023-10-30T19:19:08Z")

</div>

Have you already installed TotalSegmentator?

What do you see if you start a command terminal and run this?

```
/Applications/Slicer 2.app/Contents/bin/../bin/PythonSlicer -m pip show TotalSegmentator

```

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [October 30, 2023, 7:26pm UTC](https://discourse.slicer.org/t/failed-to-get-totalsegmentator-package-version-on-macos/32492/3 "2023-10-30T19:26:28Z")

</div>

> [@lassoan](#):
>
> Have you already installed TotalSegmentator?

I installed the extension, and didn’t think I need to install something else. I did not realize that TotalSegmentator is not installed until I try to “Apply”. I guess it might be good to disable buttons that are not applicable, but since no one else raised this other than me, it is definitely not a priority.

---

<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 30, 2023, 7:43pm UTC](https://discourse.slicer.org/t/failed-to-get-totalsegmentator-package-version-on-macos/32492/4 "2023-10-30T19:43:10Z")

</div>

Agreed. We should display a more meaningful message. I’ve added an issue to track this:

> <https://github.com/lassoan/SlicerTotalSegmentator/issues/44>
>
> See details here: https://discourse.slicer.org/t/failed-to-get-totalsegmentator-…package-version-on-macos/32492

---

<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:** [October 30, 2023, 7:48pm UTC](https://discourse.slicer.org/t/failed-to-get-totalsegmentator-package-version-on-macos/32492/5 "2023-10-30T19:48:20Z")

</div>

One should either load a volume and press “Apply” (which should install TotalSegmentator if not already there) or “Force reinstall” (under “Advanced”).
