title: Quart: ImportError: cannot import name 'Headers' from 'h11._headers' when using Docker
body: <p>Get the following error when trying to start up a docker container.</p>
  <pre><code>web       | Traceback (most recent call last):
  web       |   File &quot;app.py&quot;, line 4, in &lt;module&gt;
  web       |     from quart import Quart, render_template, redirect, request, url_for
  web       |   File &quot;/opt/pypy/lib/pypy3.9/site-packages/quart/__init__.py&quot;, line 7, in &lt;module&gt;
  web       |     from .app import Quart
  web       |   File &quot;/opt/pypy/lib/pypy3.9/site-packages/quart/app.py&quot;, line 38, in &lt;module&gt;
  web       |     from hypercorn.asyncio import serve
  web       |   File &quot;/opt/pypy/lib/pypy3.9/site-packages/hypercorn/asyncio/__init__.py&quot;, line 6, in &lt;module&gt;
  web       |     from .run import worker_serve
  web       |   File &quot;/opt/pypy/lib/pypy3.9/site-packages/hypercorn/asyncio/run.py&quot;, line 16, in &lt;module&gt;
  web       |     from .tcp_server import TCPServer
  web       |   File &quot;/opt/pypy/lib/pypy3.9/site-packages/hypercorn/asyncio/tcp_server.py&quot;, line 11, in &lt;module&gt;
  web       |     from ..protocol import ProtocolWrapper
  web       |   File &quot;/opt/pypy/lib/pypy3.9/site-packages/hypercorn/protocol/__init__.py&quot;, line 5, in &lt;module&gt;
  web       |     from .h2 import H2Protocol
  web       |   File &quot;/opt/pypy/lib/pypy3.9/site-packages/hypercorn/protocol/h2.py&quot;, line 22, in &lt;module&gt;
  web       |     from .ws_stream import WSStream
  web       |   File &quot;/opt/pypy/lib/pypy3.9/site-packages/hypercorn/protocol/ws_stream.py&quot;, line 9, in &lt;module&gt;
  web       |     from wsproto.connection import Connection, ConnectionState, ConnectionType
  web       |   File &quot;/opt/pypy/lib/pypy3.9/site-packages/wsproto/__init__.py&quot;, line 9, in &lt;module&gt;
  web       |     from .connection import Connection, ConnectionState, ConnectionType
  web       |   File &quot;/opt/pypy/lib/pypy3.9/site-packages/wsproto/connection.py&quot;, line 23, in &lt;module&gt;
  web       |     from .utilities import LocalProtocolError
  web       |   File &quot;/opt/pypy/lib/pypy3.9/site-packages/wsproto/utilities.py&quot;, line 12, in &lt;module&gt;
  web       |     from h11._headers import Headers as H11Headers
  web       | ImportError: cannot import name 'Headers' from 'h11._headers' (/opt/pypy/lib/pypy3.9/site-packages/h11/_headers.py)
  web exited with code 1'''
  </code></pre>
  <p>Have been running this code for several months with no issue and this seems to be a new error on a rebuild.</p>
  <p>Get the same error whether using pypy3.8, pypy3.9, python3.10</p>
  <p>Since it is a clean build (docker system purge), Quart is forced to rebuild. I can't see why it would be failing on a dependency of an old build.  The only other recommendation I can find was to rebuild 'requests'.</p>
  <p>Using pip to install Quart</p>