# OpenSSL version for python

**URL:** <http://hpc-community.unige.ch/t/openssl-version-for-python/3793>\
**Category:** HPC Wish list\
**Tags:** baobab\
**Created:** [January 22, 2025, 1:46pm UTC](http://hpc-community.unige.ch/t/openssl-version-for-python/3793 "2025-01-22T13:46:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maria.Reva](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/m/6de8d8/32.png) [@Maria.Reva](http://hpc-community.unige.ch/u/Maria.Reva)\
**Post date:** [January 22, 2025, 1:46pm UTC](http://hpc-community.unige.ch/t/openssl-version-for-python/3793/1 "2025-01-22T13:46:05Z")

</div>

Hi,

I am trying to use the `bertopic` package in Python, but I’m facing issues because of a mismatch in OpenSSL versions. Here’s the situation:

1. Python’s Built-In OpenSSL: Python 3.8.6 is built with OpenSSL 1.0.2o-fips (2018).

- Verified via: `python -c "import ssl; print(ssl.OPENSSL_VERSION)"`

1. System OpenSSL: The system’s OpenSSL version is 1.1.1k.

- Verified via: `openssl version`

`bertopic` requires OpenSSL 1.1.1+, which is incompatible with Python’s current OpenSSL.

I would like to run Python with a version of OpenSSL compatible with the `bertopic` package (1.1.1+).

Thanks for your help,  
Maria

---

<div class="post-metadata">

**Author:** ![Adrien.Albert](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/adrien.albert/32/188_2.png) [@Adrien.Albert](http://hpc-community.unige.ch/u/Adrien.Albert)\
**Post date:** [January 22, 2025, 4:39pm UTC](http://hpc-community.unige.ch/t/openssl-version-for-python/3793/2 "2025-01-22T16:39:15Z")

</div>

Hi Maria

For future request pleas post on #HPC issues catergorie and use the provided template.

Could you please give me the sbatch and the code to reproduce the error ?

How did you install `bertopic`

---

<div class="post-metadata">

**Author:** ![Maria.Reva](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/m/6de8d8/32.png) [@Maria.Reva](http://hpc-community.unige.ch/u/Maria.Reva)\
**Post date:** [January 23, 2025, 2:41pm UTC](http://hpc-community.unige.ch/t/openssl-version-for-python/3793/3 "2025-01-23T14:41:29Z")

</div>

Hi,

Ive loaded the module and active my venv (the batch is in /home/users/r/reva/SFN\_LNP/scripts/bert.sh) :

module load GCCcore/10.2.0 Python/3.8.6  
. /home/users/r/reva//env\_name/bin/activate

The error pops up when I simply do import, take aside running the code, just import fails : from bertopic import BERTopic

bertopic was installed directly in my venv via pip install.

Let me know if I can provide any other info.

Thanks,  
Maria

---

<div class="post-metadata">

**Author:** ![Maria.Reva](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/m/6de8d8/32.png) [@Maria.Reva](http://hpc-community.unige.ch/u/Maria.Reva)\
**Post date:** [January 24, 2025, 1:47pm UTC](http://hpc-community.unige.ch/t/openssl-version-for-python/3793/4 "2025-01-24T13:47:59Z")

</div>

Hi,

let me know if I can provide more information.

Thank you,

Maria

---

<div class="post-metadata">

**Author:** ![Adrien.Albert](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/adrien.albert/32/188_2.png) [@Adrien.Albert](http://hpc-community.unige.ch/u/Adrien.Albert)\
**Post date:** [January 24, 2025, 1:50pm UTC](http://hpc-community.unige.ch/t/openssl-version-for-python/3793/5 "2025-01-24T13:50:13Z")

</div>

I am sorry for the wait time, we are on urgent issue impacting serverals users 😕

---

<div class="post-metadata">

**Author:** ![Maria.Reva](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/m/6de8d8/32.png) [@Maria.Reva](http://hpc-community.unige.ch/u/Maria.Reva)\
**Post date:** [January 28, 2025, 7:31am UTC](http://hpc-community.unige.ch/t/openssl-version-for-python/3793/6 "2025-01-28T07:31:43Z")

</div>

Hi Adrien,

No problems. Please let me know if you had time to look into it.

Thank you,  
Maria

---

<div class="post-metadata">

**Author:** ![Yann.Sagon](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/yann.sagon/32/3_2.png) [@Yann.Sagon](http://hpc-community.unige.ch/u/Yann.Sagon)\
**Post date:** [January 28, 2025, 9:51am UTC](http://hpc-community.unige.ch/t/openssl-version-for-python/3793/7 "2025-01-28T09:51:43Z")

</div>

@Maria.Reva

I’ve recompiled Python 3.8.6 with more recent OpenSSL version:

Before:

```auto
(baobab)-[sagon@login1 ~]$ python -c "import ssl; print(ssl.OPENSSL_VERSION)"
OpenSSL 1.0.2o-fips 27 Mar 2018

```

After:

```auto
(baobab)-[sagon@login1 ~]$ python -c "import ssl; print(ssl.OPENSSL_VERSION)"
OpenSSL 1.1.1k FIPS 25 Mar 2021

```

By the way: is there a reason to use this old Python version instead of the latest we provide?

Best

---

<div class="post-metadata">

**Author:** ![Maria.Reva](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/m/6de8d8/32.png) [@Maria.Reva](http://hpc-community.unige.ch/u/Maria.Reva)\
**Post date:** [January 28, 2025, 2:48pm UTC](http://hpc-community.unige.ch/t/openssl-version-for-python/3793/8 "2025-01-28T14:48:49Z")

</div>

Thanks a lot!

In my experience 3.8 worked well when prototyping on my personal machine, python version \>3.9 resulted in the incompatibilities with others lib that we use along the way.

Thanks again,  
Maria
