añadir poesíadevuelve un error de atributo

añadir poesíadevuelve un error de atributo

Estoy intentando crear un paquete de Python usando poesía. No he podido replicar los pasos descritos en documentación. Cuando intento agregar una dependencia, por ejemplo

poetry add pendulum

yo obtengo

jan@jan-XPS-13-9380:~/Documents/Simosol/tmp/poetry-test$ poetry add pendulum
Using version ^2.1.2 for pendulum

Updating dependencies
Resolving dependencies... (1.0s)

  AttributeError

  __enter__

  at ~/.local/lib/python3.6/site-packages/poetry/utils/helpers.py:98 in download_file
       94│     url, dest, session=None, chunk_size=1024
       95│ ):  # type: (str, str, Optional[requests.Session], int) -> None
       96│     get = requests.get if not session else session.get
       97│ 
    →  98│     with get(url, stream=True) as response:
       99│         response.raise_for_status()
      100│ 
      101│         with open(dest, "wb") as f:
      102│             for chunk in response.iter_content(chunk_size=chunk_size):

Esto sucede con todos los paquetes que he probado (pandas, geopandas, numpy, shapely). No entiendo mucho cuál es el problema y no he encontrado preguntas similares en GitHub ni aquí.

Pregunta:¿Qué está causando este error y cómo puedo solucionarlo?

Yo uso Ubuntu 18.04, Python 3.6.9. Tengohizo esta pregunta en stackoverflowy me informaron que pertenece aquí.

información relacionada