Closed Eddy-JV closed 5 months ago
@Eddy-JV Do you have suggestions here?
It happened to me also some few times. But if I am not mistaken, it was solved by just running the script again. I guess I had some network issues.
@hazemakhalek is it running in your environment?
In general: The ssl.SSLError with the message "[SSL: CERTIFICATE_VERIFY_FAILED]" indicates that there's a problem with verifying the SSL certificate of the server you're trying to connect to. This can happen if the server's SSL certificate is not recognized as valid by your Python environment.
Here are a few steps you can take to troubleshoot and resolve this issue:
Update Your CA Certificates: Make sure your system's CA (Certificate Authority) certificates are up-to-date. This can be done by updating your operating system's package manager or by manually updating the CA certificates.
Check System Time and Date: Incorrect system time and date settings can lead to SSL verification errors. Ensure that your system's time and date settings are correct.
Verify the Server's SSL Certificate: Manually check if the SSL certificate of the server you're trying to connect to is valid. You can do this using a web browser or command-line tools like OpenSSL.
Add SSL Certificates to Python: If the server is using a self-signed certificate or a custom certificate authority, you might need to add the server's certificate to Python's certificate store. You can do this by using the certifi library:
pip install certifi
Then, in your code, set the SSL certificate file using:
import certifi
import ssl
ssl_context = ssl.create_default_context(cafile=certifi.where())
Pass ssl_context to your requests or other networking libraries.
import requests
response = requests.get(url, verify=False)
Check Proxy Settings: If you're behind a corporate firewall or using a proxy, it could be intercepting SSL traffic. Ensure your proxy settings are correctly configured.
Check Antivirus/Firewall: Some antivirus or firewall software might interfere with SSL connections. Temporarily disabling such software (if safe) can help identify if it's the cause.
Network Issues: In some cases, network issues might cause SSL verification problems. Ensure you have a stable internet connection.
Remember that disabling SSL verification or not verifying the server's certificate can expose your communications to potential security risks. It's always best to resolve the underlying SSL issue rather than bypassing the verification.
@hazemakhalek please retrigger CI and see if error persists @energyLS can review
Closes #184 (if applicable).
Changes proposed in this Pull Request
[x] Fetch global industry dataset for:
[x] Adapt the script for input to the model.
[x] Integrate it to the model using snakemake and add in config file.
[ ] Ready for merge.
Checklist
envs/environment.yaml
andenvs/environment.docs.yaml
.config.default.yaml
,config.tutorial.yaml
, andtest/config.test1.yaml
.doc/configtables/*.csv
and line references are adjusted indoc/configuration.rst
anddoc/tutorial.rst
.doc/release_notes.rst
is amended in the format of previous release notes, including reference to the requested PR.