-
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
ModuleNotFoundError: No module named 'requests_cache.core' #93
Comments
Hi, I am still having issues after the change |
What type of issues? Can you add an error message? |
I was getting exactly the same message you get in your first comment (see below) but now it seems to work fine.
|
I am having this exact same problem, I cannot get it to work. I have the same error message as well. |
@agrosh24 Did you try the suggested solution from my first post? |
I am running into the same issue. Installing from pypi with ModuleNotFoundError: No module named 'requests_cache.core' Installing development version with ModuleNotFoundError: No module named 'appdirs' And after that what seems like a cascade of failed dependencies (beginning with appdirs, geojson_rewind then geomet) :/ |
I ended up fixing it with the following lines: pip3 install appdirs geojson_rewind geomet requests_cache
pip3 install git+git://github.com/sckott/pygbif.git#egg=pygbif |
additionally I wanted to complement the previous answer, in case you are using google colab. the way i solved the problem was like this.
Even so, I think that some libraries should be updated or changed to prevent these incompatibility problems and not have to use so many previous configurations to be able to run the GBIF client. |
If you go onto https://requests-cache.readthedocs.io/en/stable/user_guide/troubleshooting.html. The request_core package says: "requests_cache.core: This module was deprecated in v0.6 and removed in v0.8. Just import from requests_cache instead of requests_cache.core." A simple solution is to open the python file in the pygbif package that is importing requests_cache.core, and change that to import requests_cache. |
Thanks for the comments everyone. We've just released version 0.6.1, which updates the required dependencies. |
I got the following error after pip install ...
Solution: edit pygbif/caching.py
And change in line 2: requests_cache.core to requests_cache
(source: https://requests-cache.readthedocs.io/en/stable/user_guide/troubleshooting.html
ModuleNotFoundError: No module named 'requests_cache.core': This module was deprecated in v0.6 and removed in v0.8. Just import from requests_cache instead of requests_cache.core.)
The text was updated successfully, but these errors were encountered: