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
执行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