python3.8/site-packages/httpcore/_backends/anyio.py:198: RuntimeWarning: coroutine 'current_time' was never awaited return float(anyio.current_time()) #1776
-
when I use the version 0.18.0+, there will be an issue described with "python3.8/site-packages/httpcore/_backends/anyio.py:198: RuntimeWarning: coroutine 'current_time' was never awaited return float(anyio.current_time())" . I just code it with python-asyncio. When I update my httpx version on 0.17.1, it is been resovled. SO I think it may be an issue about 0.18.0+ |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Thanks for the report! Could you include a complete traceback for this please? |
Beta Was this translation helpful? Give feedback.
-
I am sorry that I can't reappear this issue now. But I will paste my code here next time for you . Thank you very much |
Beta Was this translation helpful? Give feedback.
-
Stumbled upon the same issue just now while trying to send requests from Python console using HTTPX 0.18.2.
Here is the code:
And traceback:
NOTE: For me this issue appears only when running code from console. When running my app in Docker container it's all good. |
Beta Was this translation helpful? Give feedback.
-
Looks like you've got an out-of-date version of Not clear why that'd be occurring, since You'd be able to resolve this by making sure that you update each of |
Beta Was this translation helpful? Give feedback.
Looks like you've got an out-of-date version of
anyio
installed there. (I think you've got version 2.x installed, while the latest versions of httpcore expect 3.x)Not clear why that'd be occurring, since
httpcore
does pin to anyio 3.* in it'ssetup.py
. Perhaps some manual installing/uninstalling of packages accidentally got things into a broken state.You'd be able to resolve this by making sure that you update each of
httpx
,httpcore
,anyio
to the latest versions.