Error - Can't connect to HTTPS URL because the SSL module is not available.

15 views
Skip to first unread message

JT Poole

unread,
Jun 26, 2025, 11:32:30 PMJun 26
to PyInstaller
Hello everyone,

Sorry to disturb you all while programming, but I am writing in reference to a very big issue I’ve experienced with the latest release of PyInstaller 6.14.1.

For the past few days, after compiling Python scripts on multiple machines (M4 MacMini, Intel MacMini, M1 MacBook Air, M2 MacBook Air) running macOS version 15.5, I have come across an issue with PyInstaller 6.14.1 that causes SSL errors when using:
  • import requests
  • import urllib.request
  • import http.client
Each Python script that I’ve run that includes the above imports, I encounter a similar issue as this:

Unhandled exception:
Can't connect to HTTPS URL because the SSL module is not available.

So far, I haven’t changed anything with my Python scripts and I keep getting the above or a similar error pertaining to the SSL module not being available. Mind you, this error has persisted on multiple machines and I have recreated my virtual environments a few times, using the minimalist of packages and I’ve encountered the same result as above. This issue wasn’t happening a few days ago and now each time I’ve compiled a program that uses the above imports with PyInstaller, I face that issue and I would like to know if there is a work-around in the works to solve this problem?

If anyone has faced a similar issue and has a way around it, I would love to know what it is.

Thanks

bwoodsend

unread,
Jun 27, 2025, 11:17:15 AMJun 27
to PyInstaller

How are you installing Python and OpenSSL (python.org, brew, conda, pyenv)? If you look inside build/xxx/Analysis-00.toc, if/where does it say PyInstaller is getting libssl from?

Reply all
Reply to author
Forward
0 new messages