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

Missing ssl module in QGIS 3.22 on Windows (used when installing a 3d party python package) #46276

Closed
1 of 2 tasks
axelande opened this issue Nov 30, 2021 · 5 comments
Closed
1 of 2 tasks
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers stale Uh oh! Seems this work is abandoned, and the PR is about to close.

Comments

@axelande
Copy link

What is the bug or the crash?

I've just upgraded from 3.16 to 3.22 and I have written several plugins (e.g https://github.com/axelande/geodatafarm3/blob/master/GeoDataFarm.py#L41-L54) that uses third party python packages. To install them I have a script that looks like this:

import platform
import subprocess
import sys
try:
    import matplotlib
except ModuleNotFoundError:
    print('installing matplotlib')
    if platform.system() == 'Windows':
        subprocess.call([sys.exec_prefix + '/python', "-m", 'pip', 'install', 'matplotlib'])
    else:
        subprocess.call(['python3', '-m', 'pip', 'install', 'matplotlib'])

But when I now launch QGIS 3.22 I get this error upon launch:

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/matplotlib/

Steps to reproduce the issue

Run QGIS 3.22 from the start menu, open the Python console and paste:

import platform
import subprocess
import sys
try:
    import matplotlib
except ModuleNotFoundError:
    print('installing matplotlib')
    if platform.system() == 'Windows':
        subprocess.call([sys.exec_prefix + '/python', "-m", 'pip', 'install', 'matplotlib'])
    else:
        subprocess.call(['python3', '-m', 'pip', 'install', 'matplotlib'])

Versions

3.22.1 (Python 3.9)

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@axelande axelande added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Nov 30, 2021
@gioman
Copy link
Contributor

gioman commented Nov 30, 2021

Possibly better suited for https://trac.osgeo.org/osgeo4w/report/1?sort=ticket&asc=0&page=1

@axelande
Copy link
Author

I don't have a osgeo4w trac account so I can't report it there but I assume that this is related: https://trac.osgeo.org/osgeo4w/ticket/715

@alexbruy
Copy link
Contributor

alexbruy commented Oct 8, 2023

Can we close this? Seems it was fixed some time ago.

@alexbruy alexbruy added the Feedback Waiting on the submitter for answers label Oct 8, 2023
@github-actions
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Oct 23, 2023
Copy link

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

No branches or pull requests

3 participants