Error in SSL requests.exceptions.SSLError: HTTPSConnectionPool when running as executable #648
Labels
component:support
How to do xyz?
status:triaged
Issue/PR triaged to the corresponding sub-team
type:help
Support-related issues
Description of the bug:
So, below is my code
It runs PERFECTLY FINE inside visual studio code. No errors at all. BUT when I create an exe using
pyinstaller --onefile words.py
and run that exe, I get a huge exception.Why is the behavior different when running in Visual Studio Code vs compiling as exe and running?
This is what I've tried, change
genai.configure(api_key=key, transport='rest')
togenai.configure(api_key=key)
and then create exe again using this new setting bypyinstaller --onefile words.py
. And this time, when I run the exe, I get a completely different error.Actual vs expected behavior:
Actual Behavior
2 different errors, as mentioned above, with and without the
transport='rest'
part when running as compiled exe.Expected Behavior
It should work with proper chat as it does inside Visual Studio Code.
Any other information you'd like to share?
I do not have any proxy or VPN or anything like that.
The text was updated successfully, but these errors were encountered: