Skip to main content

Fix Conda SSLError on Windows by copying DDLs

Project description

fix-conda-ssl

Fix the dreaded Conda SSLError on Windows by copying DDLs. This is not about validating certificates behind a corporate firewall but about Python not being able to import ssl inside conda environments resulting in "SSL module is not available" errors.

The Problem

Every once in a while, the planets are out of alignment and conda on Windows is broken again. Sometimes it is only the conda-forge channel for the newest version of Python, sometimes it is (much) worse. Reinstalling the latest version of Anaconda is, unfortunately, not a quick solution for my lab full of university-managed Windows PCs without administrator access. After noticing on a Friday late-afternoon that SSL was broken again and you could not only not install packages into a conda environment but also not run pipx-installed applications like Poetry inside of an environment, I needed a student-friendly solution to the problem. After all, when my students come in after the weekend I don't want to send them home because of broken machines. So, I sat down to write this tool.

The solution

Many reports can be found detailing the problem starting years ago. The solution seems to be pretty straight-forward, although it can be a bit cumbersome to perform. Basically, you just need to copy libcrypo-something.dll and libssl-something.dll from the environments Library/bin folder to its DLLs folder. So, enter fixconda.

Screenshot of the terminal user interface

Installation and usage

You probably won't be able to install this package inside broken environments. Usually, the base environment works well so be sure to activate the base environment before performing these steps.

It is best to install using pipx to keep this application out of your base conda environment:

> pipx install fix-conda-ssl

If needed, you can also install using pip but won't be able to fix the environment fix-conda-ssl is installed to:

> pip install fix-conda-ssl

Start the application by typing:

> fixconda

Select an environment using the mouse or cursor keys and click or press enter to fix the environment.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fix_conda_ssl-0.3.1.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

fix_conda_ssl-0.3.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file fix_conda_ssl-0.3.1.tar.gz.

File metadata

  • Download URL: fix_conda_ssl-0.3.1.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.10.13 Darwin/23.1.0

File hashes

Hashes for fix_conda_ssl-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f69b95281201a8b353ac20297d8ac0606bc02b650f8c04b397f9b4c80a2722e5
MD5 1c3089bc504b332c056491a4eec54d66
BLAKE2b-256 c6d463db3cdddd167ff00ea225ce5dda7f5c8f567380bb9b9107273d3ca8d793

See more details on using hashes here.

File details

Details for the file fix_conda_ssl-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: fix_conda_ssl-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.10.13 Darwin/23.1.0

File hashes

Hashes for fix_conda_ssl-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4dec2767348870461cbf396859975722b946a8453e6ff2cadd8182005ec1cdb
MD5 6a23165e9de3aa98cff4ee78ec8beb61
BLAKE2b-256 ec35f665beff0d4c85791d66c728bb1232d3188a46c5e86ab49617c2f5eb2632

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page