ReagentX / purple_air_api

Python package to get and transform PurpleAir data
https://pypi.org/project/purpleair/
GNU General Public License v3.0
51 stars 19 forks source link

Requests_cache #81

Closed ogunjosam closed 3 years ago

ogunjosam commented 3 years ago

A new update in the package requests_cache (https://github.com/reclosedev/requests-cache/blob/master/requests_cache/core.py) is throwing up an error "AttributeError: module 'requests_cache' has no attribute 'core'"

What is the workaround?

ReagentX commented 3 years ago

For now, pin that dependency an older version. I will push an update to fix this problem.

ReagentX commented 3 years ago

https://github.com/ReagentX/purple_air_api/blob/0339bd1c8f4c40a503dd7d36604d957b8e70a47f/purpleair/api_data.py#L10-L15

ReagentX commented 3 years ago

https://requests-cache.readthedocs.io/en/latest/user_guide.html#patching

ReagentX commented 3 years ago

To see the changes, reinstall the package in your venv or upgrade it manually with pip install --upgrade purpleair