Uh oh!
There was an error while loading. Please reload this page.
Incompatible with httpcore 0.12.0 - #1495
Conversation
Hey 👋 Indeed, I'm also getting an error about $ pipinstallhttpxhttpcore==0.12.0
$ python>>>importhttpx>>>client=httpx.Client()
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/Users/florimond.manca/.pyenv/versions/3.8.5/lib/python3.8/site-packages/httpx/_client.py", line605, in__init__self._transport=self._init_transport(
File"/Users/florimond.manca/.pyenv/versions/3.8.5/lib/python3.8/site-packages/httpx/_client.py", line652, in_init_transportreturnHTTPTransport(
File"/Users/florimond.manca/.pyenv/versions/3.8.5/lib/python3.8/site-packages/httpx/_transports/default.py", line58, in__init__self._pool=httpcore.SyncConnectionPool(
TypeError: __init__() gotanunexpectedkeywordargument'retries'And then exiting the interpreter shows the exception you're mentioning that comes from Exceptionignoredin: <functionClient.__del__at0x1013363a0>Traceback (mostrecentcalllast):
File"/Users/florimond.manca/.pyenv/versions/3.8.5/lib/python3.8/site-packages/httpx/_client.py", line1134, in__del__self.close()
File"/Users/florimond.manca/.pyenv/versions/3.8.5/lib/python3.8/site-packages/httpx/_client.py", line1106, incloseself._transport.close()
AttributeError: 'Client'objecthasnoattribute'_transport'The reason is that Upgrading to |
johtso
commented
Mar 5, 2021
Argh, awkward. Is there any reasonable way to catch this kind of thing in tests? Testing with every combination of dependency versions specified in |
florimondmanca
commented
Mar 6, 2021
Testing against the oldest HTTPCore version as per the HTTPX requirement sounds sensible. I'm not sure about running this as part of every CI run, but maybe we could start with that. Only putting it as a task in the release job would mean we only catch these issues once the release is ready, ideally that would be before. Another option is to actually work locally with the lowest HTTPCore possible. That would mean pinning HTTPCore strictly in our |
The version 0.12.0 of httpcore is not compatible. When this version is installed, all the tests using
httpx.Client()will fail with the following errorAttributeError: 'Client' object has no attribute '_transport'