Closed tarsri closed 3 years ago
I have faced the same issue today
Hi, I can confirm the isue. The last version (0.7.0) of requests_cache broke the package. This also happened before when they released the 0.6.0.
If you install the previous version (0.6.4) it will work for you while we fix it.
pip install requests_cache==0.6.4
it works, Thank you very much
new version 0.10.5 of chembl_webresource_client fixes the issue.
Sorry about that! A few tips for making this less prone to breakage:
requests-cache~=0.7.0
. That will allow updating for patch releases (0.7.1
) but not major or minor releases (0.8.0
)._
) are subject to change, so it's safer to stick to things documented as part of the public API.chembl_webresource_client.cache
is patching out BaseCache.create_key
, which may also potentially break with future updates. If you just want to take request headers into account, there's an option for that.If you run into any more issues or have more questions, you're welcome to create an issue on the requests-cache repo.
Hi! It works well, thank you for your response!
Many thanks for your suggestions @JWCook. I used them :)
Closing this.
Hi! I have a problem when I want to access chembl API, I can install chembl_webresource, but I can't access into the database, it said that
ImportError: cannot import name '_encode' from 'requests_cache.cache_keys' (/Users/tarapongsrisongkram/my_env/lib/python3.9/site-packages/requests_cache/cache_keys.py)
Here is my code
pip install chembl_webresource_client
from chembl_webresource_client.new_client import new_client
I've try run it on collab but it doesn't work either, how can i fix it ? any help is appreciate P.S. I run on Python 3.9