bindestriche / srt_fix

yt-autosub-srt-fix a yt-dlp plugin to fix double lines of youtube subtitles converted to srt via ffmpeg
The Unlicense
22 stars 5 forks source link

TypeError: 'type' object is not subscriptable #6

Closed GitEin11 closed 10 months ago

GitEin11 commented 10 months ago

I get this error when trying to run the python

Traceback (most recent call last): File "./srt_fixer_gui.py", line 49, in class SimpleSrt: File "./srt_fixer_gui.py", line 80, in SimpleSrt def get_duration(parts: list[int, int, int, int]) -> timedelta: TypeError: 'type' object is not subscriptable

GitEin11 commented 10 months ago

nvm I manage to run the .exe thru wine

bindestriche commented 10 months ago

great that you got it to work for you, but the issue is still there. It's mad to run a python program through wine, it should work directly. I'd love to fix it. What is "the python" ? on what os are you ? what python version do you have?

GitEin11 commented 10 months ago

I run this in terminal

python3 ./srt_fixer_gui.py

then I get that error

using: Python 3.8.10 Ubuntu 20.04.6 LTS x86_64

bindestriche commented 10 months ago

@GitEin11 thank you the issue was that typehints are not supported by your version, I removed them, it should work now