Closed jarq6c closed 2 years ago
@jarq6c thanks for tagging me here. It looks like hydrotools._restclient
version 3.0.4
from #130 was never published to pypi. I can take care of that and it should resolve the issue. We likely want to pin the _restclient
version nwis_client
is using to >=3.0.4
.
That would be my oversight! Go ahead and publish an updated _restclient
to PyPI if you can.
The new _restclient
version is now up.
I just verified that 3.0.4
resolves the issue in jupyter lab. I will open a PR to require 3.0.4
or higher in nwis_client
!
Duplicate
Tagging @aaraney for advice. It seems #100 fixed the issue in Google Collab, but it still persists in Jupyter Notebook and Spyder (which may have further issues with
asyncio
).Running the code above inside a Jupyter Notebook or from Spyder resulted in
RuntimeError: This event loop is already running
.Fix
You can resolve the error by adding