-
Notifications
You must be signed in to change notification settings - Fork 28
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
can't use caching: AttributeError: module 'requests_cache' has no attribute 'delete' #145
Comments
@jhnwllr can you investigate this when you have a chance? |
For now I downgraded to pygbif 0.6.3 and my above lines do not raise any errors. I think this was the origin of the problem because it introduced the above error line 86:
|
@abubelinha Can I ask what version of the We might need to update the minimum version in I am using And I don't get any error on import. |
|
@abubelinha Type "help", "copyright", "credits" or "license" for more information.
>>> import pygbif
>>> pygbif.__version__
'0.6.4'
>>> pygbif.caching(True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\ftw712\Desktop\packages\pygbif\pygbif\caching.py", line 86, in caching
requests_cache.delete(expired=True)
^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'requests_cache' has no attribute 'delete'
>>> import requests_cache
>>> requests_cache.__version__
'0.7.0'
>>> |
Can this be fixed by updating the Would be an easy fix, then. |
Thanks @CecSve , @jhnwllr and @lucbettaieb
Now I can call But caching is proving to be useless for my use case (see #146). |
Python 3.8.7, pygbif 0.6.4:
I saw some other issues about requests_cache and they are closed, so I understand they have been solved.
But I think my pygbif version is the most recent available.
Any ideas?
The text was updated successfully, but these errors were encountered: