Closed ehinman closed 1 month ago
Thanks for reporting this. It seems the issue is caused by aiohttp-client-cache
. It's being addressed soon. Once it's done, updating aiohttp-client-cache
should fix the issue. I will then release a new version to pin the dep on aiohttp-client-cache
to the fixed version.
BTW, until it gets fixed, as a workaround, you can disable caching by:
import os
os.environ["HYRIVER_CACHE_DISABLE"] = "true"
This should fix the issue at the expense of missing caching.
Thanks so much @cheginit!
@ehinman This issue is fixed with HyRiver 0.18. Please install the new version and if you still get this error, reopen this issue.
What happened?
I have a CI pipeline in GitLab that builds Jupyter notebooks into documentation pages using Sphinx. One of the notebooks has the following line:
huc_shapes = WaterData('huc08').bybox([-115.065380, 45.947037, -112.692334, 47.572536])
The CI pipeline fails on this line with the following error:
AttributeError: 'CachedResponse' object has no attribute '__aexit__'
What did you expect to happen?
I expected the notebook to run the WaterData cell with no issues and build the documentation in html pages. It works on my local version of the repository, but it fails in the CI pipeline on GitLab.
Minimal Complete Verifiable Example
No response
MVCE confirmation
Relevant log output
Anything else we need to know?
This is the docker image we're using to run the CI pipeline: image: ${ARTIFACTORY_URL}/docker-official-mirror/python:3.11
I suspect this is a version conflict problem somewhere in the packages being used by pynhd with the docker image, but I'm not sure. Thanks!
Environment