Comments (3)
[2022-12-10 00:59:25.745] main.py (69) - [INFO] : 程序启动完成
2022-12-10 00:59:25 - WARNING 未找到可用的 ASGI 服务,反向 WebSocket 和 WebHook 上报将不可用。
仅 HTTP 轮询与正向 WebSocket 可用。
建议安装 ASGI 服务器,如 `uvicorn` 或 `hypercorn`。
在命令行键入:
pip install uvicorn
或者
pip install hypercorn
[2022-12-10 00:59:25.746] bot.py (260) - [WARNING] : 未找到可用的 ASGI 服务,反向 WebSocket 和 WebHook 上报将不可用。
仅 HTTP 轮询与正向 WebSocket 可用。
建议安装 ASGI 服务器,如 `uvicorn` 或 `hypercorn`。
在命令行键入:
pip install uvicorn
或者
pip install hypercorn
2022-12-10 00:59:25 - ERROR As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary
[2022-12-10 00:59:25.751] base.py (43) - [ERROR] : As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary
Exception in thread Thread-2 (run):
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.10/dist-packages/mirai/bot.py", line 197, in run
MiraiRunner(self).run(host, port, asgi_server, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/mirai/bot.py", line 274, in run
asyncio.run(self._run())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/dist-packages/mirai/bot.py", line 238, in _run
await self.startup()
File "/usr/local/lib/python3.10/dist-packages/mirai/bot.py", line 226, in startup
await asyncio.gather(*coros)
File "/usr/local/lib/python3.10/dist-packages/mirai/bot.py", line 135, in startup
await self._adapter.login(self.qq)
File "/usr/local/lib/python3.10/dist-packages/mirai/adapters/base.py", line 35, in wrapped
return await func(self, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/mirai/adapters/websocket.py", line 187, in login
self.connection = await connect(self.host_name, extra_headers=headers)
File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/client.py", line 622, in __await_impl__
transport, protocol = await self._create_connection()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1089, in create_connection
transport, protocol = await self._create_connection_transport(
File "/usr/lib/python3.10/asyncio/base_events.py", line 1107, in _create_connection_transport
protocol = protocol_factory()
File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/client.py", line 160, in __init__
super().__init__(**kwargs)
File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/protocol.py", line 154, in __init__
self._drain_lock = asyncio.Lock(
File "/usr/lib/python3.10/asyncio/locks.py", line 78, in __init__
super().__init__(loop=loop)
File "/usr/lib/python3.10/asyncio/mixins.py", line 17, in __init__
raise TypeError(
TypeError: As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary
格式乱了。。重新发下
from qchatgpt.
解决办法
-
由安装器进行部署的,到安装器目录执行以下指令
- Linux
python/bin/pip install websockets --upgrade
- Windows
python\Scripts\pip3 install websockets --upgrade
- Linux
-
手动部署的
pip3 install websockets --upgrade
yirimirai默认安装的websockets库版本过低,参见YiriMiraiProject/YiriMirai#49
from qchatgpt.
Traceback (most recent call last): File "main.py", line 14, in from pkg.utils.log import init_runtime_log_file, reset_logging File "/home/ajw/QChatGPT/pkg/utils/init.py", line 1, in from .threadctl import ThreadCtl File "/home/ajw/QChatGPT/pkg/utils/threadctl.py", line 52 def submit(self, pool: Pool, fn, /, *args, **kwargs ):
from qchatgpt.
Related Issues (20)
- [Bug]: 官方qq机器人在群聊内不能识别出管理员账号,使用管理员账号在群聊内发送安装插件命令以及update命令,机器人回复权限不足 HOT 2
- [Plugin]: 请求登记新插件 HOT 1
- [Feature]: Ollama平台集成-pr前沟通 HOT 3
- [Plugin]: 请求登记新插件 HOT 1
- [Feature]: 模型切换命令
- [Feature]: 希望能够支持官方QQ机器人的列表对话
- [Bug?]: 使用qq官方机器人,但是 平台适配器运行出错: Cannot connect to host bots.qq.com:443 ssl:default [getaddrinfo failed] HOT 1
- [Bug]: 艾特机器人没反应 HOT 1
- [Plugin]: 请求登记新插件 HOT 1
- [Bug]: 无法回复音频和图片 HOT 6
- [Bug]: 传入消息忽略规则再次失效 HOT 1
- [Feature]: 在设置了管理员账号之后,希望能在群聊中生效
- [Bug]: Docker 更新重建容器后插件依赖丢失
- [Bug]: 正则表达式似乎不可用? HOT 1
- [BUG]前缀忽略功能似乎失效了 HOT 1
- [Plugin]: 请求登记新插件 HOT 1
- [Bug]: 群聊中和私聊中发送动图就会阻塞 HOT 1
- [Bug]: Claude3.5 sonnet识图时出现未处理的异常404 message = Not found报错
- [Plugin]: 请求登记新插件 HOT 1
- [Bug]: Claude API报错,first message must use the "user" role HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qchatgpt.