Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssl.SSLContext() without protocol argument is deprecated #230

Open
Me-xx opened this issue Jan 19, 2025 · 1 comment
Open

ssl.SSLContext() without protocol argument is deprecated #230

Me-xx opened this issue Jan 19, 2025 · 1 comment

Comments

@Me-xx
Copy link

Me-xx commented Jan 19, 2025

PYthonWarning
2025-01-19T17:51:38 WARNING
warning:%AppData%/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\client.py:128:
DeprecationWarning: ssl.SSLContext() without protocol argument is
deprecated.

ctx = ssl.SSLContext()

         traceback: File "", line 1, in 


Steps to reproduce the issue

Install QGIS and Install Mergin Plugin and Sync a Project

Versions

QGIS-Version | 3.40.2-Bratislava -- | --

Solution

This should solve the Problem cafile = os.path.join(this_dir, "cert.pem") if not os.path.exists(cafile): raise Exception("missing " + cafile) ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) ctx.load_verify_locations(cafile)

Must be put in "plugins\Mergin\mergin\client.py" line 128

@ValentinBuira
Copy link
Contributor

Thanks for the bug report, this is in our underlying python API client we use to talk to Mergin Maps services. I'll transfer the issue

@ValentinBuira ValentinBuira transferred this issue from MerginMaps/qgis-plugin Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants