Skip to content

cannot import name 'remove_expired_responses' from 'requests_cache' #126

@lucbettaieb

Description

@lucbettaieb

python version: 3.10.12
pygbif version:

Name: pygbif
Version: 0.6.3
Summary: Python client for GBIF
Home-page: http://github.com/gbif/pygbif
Author: Scott Chamberlain
Author-email: myrmecocystus@gmail.com
License: MIT
Location: /usr/local/lib/python3.10/dist-packages
Requires: appdirs, geojson-rewind, geomet, matplotlib, requests, requests-cache
Required-by:

Getting the following error upon import:

    import pygbif
  File "/usr/local/lib/python3.10/dist-packages/pygbif/__init__.py", line 44, in <module>
    from .caching import caching
  File "/usr/local/lib/python3.10/dist-packages/pygbif/caching.py", line 6, in <module>
    from requests_cache import remove_expired_responses
ImportError: cannot import name 'remove_expired_responses' from 'requests_cache' (/usr/local/lib/python3.10/dist-packages/requests_cache/__init__.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions