Akimio521/AutoFilm

cannot import name 'TaskGroup' from 'asyncio'

Closed this issue · 3 comments

Traceback (most recent call last):
File "/root/AutoFilm/main.py", line 5, in
import autofilm
File "/root/AutoFilm/autofilm.py", line 6, in
from modules import Alist2Strm
File "/root/AutoFilm/modules/init.py", line 1, in
from .Alist2Strm import Alist2Strm
File "/root/AutoFilm/modules/Alist2Strm.py", line 11, in
from alist import AlistFileSystem, AlistPath
File "/usr/local/lib/python3.10/dist-packages/alist/init.py", line 25, in
from asyncio import get_running_loop, run, TaskGroup
ImportError: cannot import name 'TaskGroup' from 'asyncio' (/usr/lib/python3.10/asyncio/init.py)

依赖包已安装,为啥还会出现这个错误?
python版本是3.10.7

看样子是python-alist的问题,可能是引入了新版本的特性吧,目前版本我只在3.11和3.12中测试过,有需要可以在web-mount-packs提交issue排查

找到问题了,python版本问题,3.10不行,TaskGroup这个模块是3.11新加入的,所有最低需要3.11
另外,链接到的教程网页已经过时了,yaml都是错的

是的,文档一直没时间改