chn-lee-yumi / MaterialSearch

AI语义搜索本地素材。以图搜图、查找本地素材、根据文字描述匹配画面、视频帧搜索、根据画面描述搜索视频。Semantic search. Search local photos and videos through natural language.
GNU General Public License v3.0
799 stars 110 forks source link

启动报错 TypeError: 'type' object is not subscriptable #44

Closed muxuan1978 closed 9 months ago

muxuan1978 commented 9 months ago

执行python main.py,打印配置后报错:

Traceback (most recent call last): File "main.py", line 10, in from database import get_image_path_by_id, is_video_exist File "D:\MaterialSearch\database.py", line 192, in def get_image_id_path_features(session: Session) -> tuple[list[int], list[str], list[bytes]]: TypeError: 'type' object is not subscriptable

chn-lee-yumi commented 9 months ago

你的python版本是多少?尝试更新一下。

muxuan1978 commented 9 months ago

Python版本原来是3.8.6,更换到3.10.9可以了,非常感谢