Closed bradjohnl closed 4 months ago
Did you enable execution of the commands? I don't see any commands in debug and there is no command "web" in Google plugin, "web_search" is the command.
You must enable "Execute commands" option checkbox to perform web search (and to execute rest of commands from the plugins):
@szczyglis-dev Thank you. That did seem to unlock the issue, however I get an error:
Command: Google Web Search: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)>
I've done some searching and tried to upgrade the certifi library with pip, however that did not sort any effect. I've had the option "Disable SSL verify" enabled, and I've tried to disable it. Same results.
I will continue to research and try some stuff, but it would be great if you know the solution to this problem if you can share it.
I've tried some things, on my system (Fedora Linux):
System: Fedora Linux.
Troubleshooting Steps Taken:
Verified System Date and Time: Checked and confirmed that the system's date and time are correctly set.
Ensured Operating System is Up-to-Date: Updated the Fedora Linux operating system to ensure all system components, including SSL/TLS libraries, are current.
Updated CA Certificates:
Ran sudo dnf install ca-certificates
to ensure the latest CA certificates are installed on the system.
Used sudo update-ca-trust
to refresh the system's CA trust store.
Set Python to Use System Certificates: Configured Python to use system SSL certificates by setting the REQUESTS_CA_BUNDLE environment variable to point to Fedora's certificate bundle (/etc/ssl/certs/ca-bundle.crt).
Updated Python's certifi Package: Upgraded the certifi package in Python using pip install --upgrade certifi to ensure Python has the latest set of certificates for SSL verification.
Checked Python's SSL Configuration: Examined Python’s OpenSSL version using ssl.OPENSSL_VERSION in the Python interpreter to understand the SSL configuration Python is using. It seems I am using a relatively recent version: 3.1.1 (May 2023)
Inspected Remote Server's Certificates:
Used openssl s_client -showcerts -connect google.com:443
to inspect the SSL certificate chain of the remote server for any issues or missing certificates.
I can confirm that the SSL handshake is successful:
--- SSL handshake has read 6813 bytes and written 394 bytes Verification: OK ---
Despite these steps, the issue persists.
I have to say that on another system using Pop!_OS 22.04 I am not facing the issue.
I am using the precompiled binary in both systems
Based on this I think the issue can be closed as it's not related to the application itself, but rather on one specific system.
@szczyglis-dev your first comment addressed what needed to be done, but this other issue on the SSL side, looks like it's not dependent on the application
Solved with SSL_CERT_DIR=/etc/ssl/certs ./pygpt
Good to hear that everything is working now ;)
Btw, additionally, in the newest version 2.0.156
, I updated certifi
in compiled versions to 2024.2.2
and expanded the Disable SSL verify
option to also cover connections to the Google search engine (not just the search results as before).
When I try to use the web search, it writes the command but it doesn't actually perform the search:
Logs with debug enabled: