Closed DOH-WLD0303 closed 2 years ago
Just use this code...
import ssl
My apologies, I had forgotten to loop back on this thread and close it. I was able to come to a solution with the help of the cx_freeze repo owner, (discussion found here). What was happening is that cx_freeze wasn't packaging up the dlls required for SSL with Python. I added the necessary steps to my setup.py script to package those into my application and was able to resolve the problem.
Just as a note though, import ssl
will not fix this issue in a frozen python exe, at least not for cx_freeze. Other freeze packages may differ in this instance.
Hi folks,
I'm running into a strange issue that seems to only occur on machines of users outside of my team. For context, I'm building an msi file for our end users using cx_freeze. I have a tkinter GUI application that on start up gets the chromedriver version that is packaged with the msi file and the chromedriver version that the user requires. The major version numbers are compared to determine if chromedriver_autoinstaller.install needs to be run.
The error occurs in the install function, I've included the traceback below.
Note: Line 2-7 are print statements from the application. Line 2 shows the directory that the packaged chromedriver lives (I've verified that it is there manually).
The code responsible for running doing this is below:
I'm very much at a loss of what the issue is. Is there perhaps an issue with the autoinstaller when frozen with cx_freeze?