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

Dépendance urllib #103

Open
linogaliana opened this issue Dec 2, 2024 · 0 comments
Open

Dépendance urllib #103

linogaliana opened this issue Dec 2, 2024 · 0 comments

Comments

@linogaliana
Copy link
Collaborator

linogaliana commented Dec 2, 2024

Retour d'un étudiant de mon cours de Python

Je suis en train d'avancer sur mon projet Python avec Amandine et Claire sur le ssp lab avec un VSpython et je me rends compte d'une dépendance du package Cartiflette.

Apparemment il est nécessaire avoir une version antérieure à la version 2 d'urllib3 (j'ai forcé l'installation de la version 1.26 en tâtonnant et ca a l'air de fonctionner).

Je n'avais pas rencontré ce problème pendant le TP sur les géopandas alors voilà pour l'info

 from cartiflette import carti_download
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/lib/python3.12/site-packages/cartiflette/__init__.py", line 1, in <module>
    from cartiflette.api import download_from_cartiflette_inner
  File "/opt/conda/lib/python3.12/site-packages/cartiflette/api/__init__.py", line 3, in <module>
    from .output import download_from_cartiflette_inner
  File "/opt/conda/lib/python3.12/site-packages/cartiflette/api/output.py", line 8, in <module>
    import s3fs
  File "/opt/conda/lib/python3.12/site-packages/s3fs/__init__.py", line 1, in <module>
    from .core import S3FileSystem, S3File
  File "/opt/conda/lib/python3.12/site-packages/s3fs/core.py", line 29, in <module>
    import aiobotocore.session
  File "/opt/conda/lib/python3.12/site-packages/aiobotocore/session.py", line 3, in <module>
    from botocore import translate
  File "/opt/conda/lib/python3.12/site-packages/botocore/translate.py", line 16, in <module>
    from botocore.utils import merge_dicts
  File "/opt/conda/lib/python3.12/site-packages/botocore/utils.py", line 39, in <module>
    import botocore.httpsession
  File "/opt/conda/lib/python3.12/site-packages/botocore/httpsession.py", line 45, in <module>
    from urllib3.contrib.pyopenssl import (
  File "/opt/conda/lib/python3.12/site-packages/urllib3/contrib/pyopenssl.py", line 97, in <module>
    util.PROTOCOL_TLS: OpenSSL.SSL.SSLv23_METHOD,
    ^^^^^^^^^^^^^^^^^
AttributeError: module 'urllib3.util' has no attribute 'PROTOCOL_TLS'
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

1 participant