FYWinds / takker

一个基于Nonebot2和go-cqhttp的娱乐性qq机器人,已停更
GNU Affero General Public License v3.0
82 stars 11 forks source link

启动出错 #28

Closed Fahaxikiii closed 1 year ago

Fahaxikiii commented 2 years ago

root@VM-16-3-ubuntu:/www/wwwroot/takker-1.3.0# poetry run python bot.py 02-27 16:32:57 [INFO] utils | 已禁用uvicorn自动重载 Traceback (most recent call last): File "bot.py", line 5, in from service.init import init_bot_startup, update_plugin_list File "/www/wwwroot/takker-1.3.0/service/init.py", line 5, in from service.db.db_connect import db_init File "/www/wwwroot/takker-1.3.0/service/db/db_connect.py", line 8, in models: list[str] = [ TypeError: 'type' object is not subscriptable root@VM-16-3-ubuntu:/www/wwwroot/takker-1.3.0#

FYWinds commented 2 years ago

请检查python版本是否为python3.9+,小写list作为typing是py3.9后添加的feature

(奇怪,pyproject.toml内应该要求了python版本大于3.9,未达成要求应该虚拟环境都创建不了