Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ImportError: cannot import name 'Middleware' from 'httpx.middleware' (Windows) #613
I'm getting the following error trying to import httpx on Windows (python 3.8 and python 3.7 tested)
It seems to be due to httpx containing both a package (httpx/middleware/init.py) and a module (httpx/middleware.py) of the same name, which is probably not a good idea.
I'm running 0.9.1 on Windows and seeing this error, downgrading to 0.8.0 to fix it...