machinewrapped / gpt-subtrans

Open Source project using LLMs to translate SRT subtitles
Other
311 stars 36 forks source link

TypeError: 'type' object is not subscriptable #85

Closed vcstack closed 7 months ago

vcstack commented 7 months ago

After I install and run cmd: python gui-subtrans.py then error occurred:

File "gui-subtrans.py", line 9, in from GUI.MainWindow import MainWindow File "D:\gaubao\gpt-subtrans\GUI\MainWindow.py", line 17, in from GUI.Command import Command File "D:\gaubao\gpt-subtrans\GUI\Command.py", line 6, in from GUI.ProjectDataModel import ProjectDataModel File "D:\gaubao\gpt-subtrans\GUI\ProjectDataModel.py", line 2, in from GUI.ProjectViewModel import ProjectViewModel File "D:\gaubao\gpt-subtrans\GUI\ProjectViewModel.py", line 8, in from PySubtitleGPT import SubtitleLine File "D:\gaubao\gpt-subtrans\PySubtitleGPT\SubtitleLine.py", line 5, in from PySubtitleGPT.Helpers import CreateSrtSubtitle, GetTimeDelta File "D:\gaubao\gpt-subtrans\PySubtitleGPT\Helpers.py", line 17, in def UpdateFields(item : dict, update: dict, fields : list[str]): TypeError: 'type' object is not subscriptable

Python version is: 3.8.18

machinewrapped commented 7 months ago

Probably the Python version, can you try installing at least 3.10?

machinewrapped commented 7 months ago

I've added a minimum Python version check to the install scripts, to ensure that the system is running at least 3.10.0.