-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use httpx backend because of missing SyncConnectionPool in httpcore #2
Comments
Here is another possible cause for the problem: As far as I understand it, some environments require the use of the httpx library, others the httpcore instead. ipfshttpclient tries to work out which library it should use during runtime, but doesn't always make the correct choice and then runs into a misleading error. Could you therefore report what operating system and python version you're using? |
If you would like to test your hypothesis about the cause of the problem being the versions of the httpx and httpcore libraries, here are the versions I am currently using which work for me on Ubuntu 20 with python3.8.10: |
I forgot to mention this issue arises when I explicitly wish to switch to the
This issue arises for me on Ubuntu 20.04.3 LTS (GNU/Linux 5.11.0-1022-aws x86_64) I dug in a little into the present master tree for
I did a clean install, purged pip cache, and explicitly specified versions
|
Thanks for the details, I managed to replicate your steps with the same results. Right, so using slightly older versions of the httpx and httpcore libs didn't help. The issue is in the ipfshttpclient2 module, which is an modified version of the ipfshttpclient library. It would be best to fix the issue there, because I don't really want my ipfshttpclient2 to be a fork which people start using because the official ipfshttpclient hasn't been updated in almost a year. That would be missing the point of open-source work. Therefore I recommend you work on fixing this issue not in the context of this IPFS-Toolkit project, but of ipfshttpclient library. Let me know as soon as you do and I'll integrate the fix into IPFS-Toolkit. PS: I did a pull request there once but it didn't go through cause of some automated test fails whose report I didn't really understand. I'll have to learn how to do that properly soon, then I can get rid of the ipfshttpclient2 module in my project and import the official ipfshttpclient module. |
I have had a successful installation of IPFS-Toolkit that has the following versions:
When I attempt to establish a connection with a reusable connection pool....
I get the following exception:
Taking a first hand look at a few StackOverflow threads where developers run into quite a few missing attribute exceptions regarding
httpcore
, it seems like putting a version freeze on thehttpx
andhttpcore
requirements would be a good idea here.The text was updated successfully, but these errors were encountered: