Я сделал сайт на quart, но он не запускается на Linux mint
### site.py: ###
from quart import Quart, render_template
from quart_discord import DiscordOAuth2Session
from discord.ext import ipc
app = Quart(__name__)
ipc_client = ipc.Client(secret_key="key_123")
app.config["SECRET_KEY"] = "key_123"
app.config["DISCORD_CLIENT_ID"] = 123
app.config["DISCORD_CLIENT_SECRET"] = "Secret_123"
app.config["DISCORD_REDIRECT_URI"] = "http://127.0.0.1:5000/
@app.route("/")
async def home():
return await render_template("index.html")
if __name__ == '__main__':
app.run(debug=True)
### Ошибка при запуски site.py: ###
Traceback (most recent call last):
File "site.py", line 1, in <module>
from quart import Quart, render_template
File "/home/xpeawey/.local/lib/python3.8/site-packages/quart/__init__.py", line 6, in <module>
from .app import Quart
File "/home/xpeawey/.local/lib/python3.8/site-packages/quart/app.py", line 38, in <module>
from hypercorn.asyncio import serve
File "/home/xpeawey/.local/lib/python3.8/site-packages/hypercorn/asyncio/__init__.py", line 6, in <module>
from .run import worker_serve
File "/home/xpeawey/.local/lib/python3.8/site-packages/hypercorn/asyncio/run.py", line 16, in <module>
from .tcp_server import TCPServer
File "/home/xpeawey/.local/lib/python3.8/site-packages/hypercorn/asyncio/tcp_server.py", line 11, in <module>
from ..protocol import ProtocolWrapper
File "/home/xpeawey/.local/lib/python3.8/site-packages/hypercorn/protocol/__init__.py", line 5, in <module>
from .h2 import H2Protocol
File "/home/xpeawey/.local/lib/python3.8/site-packages/hypercorn/protocol/h2.py", line 22, in <module>
from .ws_stream import WSStream
File "/home/xpeawey/.local/lib/python3.8/site-packages/hypercorn/protocol/ws_stream.py", line 9, in <module>
from wsproto.connection import Connection, ConnectionState, ConnectionType
File "/home/xpeawey/.local/lib/python3.8/site-packages/wsproto/__init__.py", line 9, in <module>
from .connection import Connection, ConnectionState, ConnectionType
File "/home/xpeawey/.local/lib/python3.8/site-packages/wsproto/connection.py", line 23, in <module>
from .utilities import LocalProtocolError
File "/home/xpeawey/.local/lib/python3.8/site-packages/wsproto/utilities.py", line 12, in <module>
from h11._headers import Headers as H11Headers
ImportError: cannot import name 'Headers' from 'h11._headers' (/home/xpeawey/.local/lib/python3.8/site-packages/h11/_headers.py)
P.S Я сначала запускаю код с ботом(работает), а потом site.py
Что делать?
###
РЕЩЕНИЕ ###
$ pip3 install quart==0.3.1