# Error when TotalSegmentator trying to install required Python packages: \`SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (\_ssl.c:1129)’))\`

**URL:** https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539
**Category:** Support
**Tags:** totalsegmentator
**Created:** [February 26, 2024, 11:42am UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539 "2024-02-26T11:42:10Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![rnvwnvvir](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rnvwnvvir/32/69459_2.png) [@rnvwnvvir](https://discourse.slicer.org/u/rnvwnvvir)
#### Post date: [February 26, 2024, 11:42am UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539/1 "2024-02-26T11:42:10Z")

</div>

Hello,my slicer is 3.6.1.The following error occurs when using TotalSegmentator. Restart is unuseful.Thanks for your help.  
 ![联想截图_20240223163912](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/e/ae8d1ffb75b6b8b2ed84f25bede032ff517be608.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: [February 26, 2024, 3:53pm UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539/2 "2024-02-26T15:53:28Z")

</div>

If the error does not go away after restarting Slicer, it means that there is some trouble with installing the required Python packages in your Slicer application. You can find more details in the application log that will help you resolving the problem. For example, if you find that you are running out of disk space while trying to install a package then you need to make more free space on your disk.

---

<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: [February 26, 2024, 4:38pm UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539/3 "2024-02-26T16:38:31Z")

</div>

Having uninstalled Slicer 5.6.1 and deleted the entire directory:  
%LOCALAPPDATA%/slicer.org/Slicer 5.6.1

Then deleting my entire python pip cache at:  
%LOCALAPPDATA%/pip

Then deleting my TotalSegmentator cache at:  
%USERPROFILE%/.totalsegmentator

I reinstalled Slicer 5.6.1, installed the TotalSegmentator Slicer extension and then re-ran TotalSegmentator on the CTChest sample data set, I was successful running TotalSegmentator:

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

@rnvwnvvir If you follow the same steps as I did below, you should be able to observe similar success.

---

<div class="post-metadata">

### Author: ![rnvwnvvir](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rnvwnvvir/32/69459_2.png) [@rnvwnvvir](https://discourse.slicer.org/u/rnvwnvvir)
#### Post date: [February 27, 2024, 2:06am UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539/4 "2024-02-27T02:06:04Z")

</div>

Thank you, James Butler.I have uninstalled Slicer 5.6.1 and delete all files about slicer 5.6.1.Trying to reinstall the Slicer.But the problem still exist.Below is its error log.I don’t know what the problem is.

Python 3.9.10 (main, Dec 12 2023, 02:25:18) [MSC v.1935 64 bit (AMD64)] on win32

> > >

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (\_ssl.c:1129)’))’: /simple/pandas/  
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (\_ssl.c:1129)’))’: /simple/pandas/  
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (\_ssl.c:1129)’))’: /simple/pandas/  
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (\_ssl.c:1129)’))’: /simple/pandas/  
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (\_ssl.c:1129)’))’: /simple/pandas/  
Could not fetch URL [https://pypi.org/simple/pandas/:](https://pypi.org/simple/pandas/:) There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘[pypi.org](http://pypi.org)’, port=443): Max retries exceeded with url: /simple/pandas/ (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (\_ssl.c:1129)’))) - skipping  
ERROR: Could not find a version that satisfies the requirement pandas (from versions: none)  
ERROR: No matching distribution found for pandas  
Traceback (most recent call last):  
File “D:/LeStoreDownload/3dslicer/Slicer 5.6.1/slicer.org/Extensions-32438/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 665, in setupPythonRequirements  
import pandas  
ModuleNotFoundError: No module named ‘pandas’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “D:/LeStoreDownload/3dslicer/Slicer 5.6.1/slicer.org/Extensions-32438/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 268, in onApplyButton  
self.logic.setupPythonRequirements()  
File “D:/LeStoreDownload/3dslicer/Slicer 5.6.1/slicer.org/Extensions-32438/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 667, in setupPythonRequirements  
slicer.util.pip\_install(“pandas”)  
File “D:\LeStoreDownload\3dslicer\Slicer 5.6.1\bin\Python\slicer\util.py”, line 3887, in pip\_install  
\_executePythonModule(“pip”, args)  
File “D:\LeStoreDownload\3dslicer\Slicer 5.6.1\bin\Python\slicer\util.py”, line 3848, in \_executePythonModule  
logProcessOutput(proc)  
File “D:\LeStoreDownload\3dslicer\Slicer 5.6.1\bin\Python\slicer\util.py”, line 3814, in logProcessOutput  
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)  
subprocess.CalledProcessError: Command ‘[‘D:/LeStoreDownload/3dslicer/Slicer 5.6.1/bin/…/bin\PythonSlicer.EXE’, ‘-m’, ‘pip’, ‘install’, ‘pandas’]’ returned non-zero exit status 1.

---

<div class="post-metadata">

### Author: ![rnvwnvvir](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rnvwnvvir/32/69459_2.png) [@rnvwnvvir](https://discourse.slicer.org/u/rnvwnvvir)
#### Post date: [February 27, 2024, 2:08am UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539/5 "2024-02-27T02:08:57Z")

</div>

Thank you, Andras Lasso.Re-running will still cause problems.The error log is as follows.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/b/0b7551edcea87e9de13cdad36d07a3f5791a4700.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: [February 27, 2024, 3:53am UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539/6 "2024-02-27T03:53:04Z")

</div>

It seems that your internet connection is failing. How do you connect to the internet?

---

<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: [February 27, 2024, 3:58am UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539/7 "2024-02-27T03:58:34Z")

</div>

This may be related to the issue of ZScaler getting in the way. @rnvwnvvir does your computer have ZScaler running when this happens? I have observed a similar error trying to download PyTorch when I’m at home and using my corporate laptop which forces ZScaler to be running. When I’m physically at my workplace and on the corporate network ZScaler doesn’t run and there is no issue. When I’m home it doesn’t allow me to turn ZScaler off as I have to enter in special credentials which I don’t have to do that action.

> [@Sandbox module cannot be downloaded via extension manager today?](https://discourse.slicer.org/t/sandbox-module-cannot-be-downloaded-via-extension-manager-today/33809/22):
>
> Great detective work! I think this explains the all the issues that you have been experiencing. It seems that ZScaler implements a man-in-the-middle attack on all external network communications. According [this blog post](https://geekingfrog.com/blog/post/corporate-man-in-the-middle) ZScaler does not generate generally trustable certificates, just some temporary throwaway ones. The ZScaler agent running on the user’s computer receives these temporary certificates and regularly replaces them on the system. I’m very surprised that hospitals go this far and d…

---

<div class="post-metadata">

### Author: ![shar486](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shar486/32/70060_2.png) [@shar486](https://discourse.slicer.org/u/shar486)
#### Post date: [April 16, 2024, 7:10am UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539/9 "2024-04-16T07:10:19Z")

</div>

Hello, did you find the solution? I had the same problem, and it didn’t help to use the methods discussed above. I think it’s because we lack pandas packs, but I don’t know where to install them.

---

<div class="post-metadata">

### Author: ![rnvwnvvir](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rnvwnvvir/32/69459_2.png) [@rnvwnvvir](https://discourse.slicer.org/u/rnvwnvvir)
#### Post date: [April 22, 2024, 9:31am UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539/10 "2024-04-22T09:31:04Z")

</div>

Sorry,I don’t solve the problem

---

<div class="post-metadata">

### Author: ![zhang\_zhixiong](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhang_zhixiong/32/77975_2.png) [@zhang\_zhixiong](https://discourse.slicer.org/u/zhang_zhixiong)
#### Post date: [September 23, 2024, 3:52am UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539/11 "2024-09-23T03:52:52Z")

</div>

I had the same problem. Did you solve it?

---

<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: [September 23, 2024, 4:36am UTC](https://discourse.slicer.org/t/error-when-totalsegmentator-trying-to-install-required-python-packages-sslerror-ssleoferror-8-eof-occurred-in-violation-of-protocol-ssl-c-1129/34539/12 "2024-09-23T04:36:06Z")

</div>

Most likely these errors are caused by your IT administrators monitoring and restricting your internet access, therefore it is mainly their responsibility to help you with resolving any side effects, such as applications not being able to download additional plugins or data.

There are two main workarounds:

- Option A: Download all required components (Slicer extension packages, AI models) manually, using your web browser. This works, because IT administrators in corporate and hospital environments usually set up monitoring and filtering of all your internet traffic via your web browser, therefore they usually allow access to more sites for your web browser than for other applications (such as 3D Slicer).
- Option B: Run Slicer on a computer with less restricted internet access and install all the extensions you need. Once all the components are downloaded, Slicer will not need internet access, so you will be able to run the AI tool on any computer. You can even transfer the installed Slicer to any other computer (the Slicer installation folder is portable between computers, no installation is needed).
