Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.x typed vars crash #66

Open
jayahayajg opened this issue Apr 19, 2023 · 3 comments
Open

Python 3.x typed vars crash #66

jayahayajg opened this issue Apr 19, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jayahayajg
Copy link

Traceback (most recent call last):
File "C:\Users\jspar\Downloads\stammer-main\stammer-main\stammer.py", line 20, in
import video_out
File "C:\Users\jspar\Downloads\stammer-main\stammer-main\video_out.py", line 2, in
from decay_cache import DecayCache
File "C:\Users\jspar\Downloads\stammer-main\stammer-main\decay_cache.py", line 13, in
class DecayCache:
File "C:\Users\jspar\Downloads\stammer-main\stammer-main\decay_cache.py", line 14, in DecayCache
items: dict[DecayItem] = {}
TypeError: 'type' object is not subscriptable

@Firepal
Copy link
Collaborator

Firepal commented Apr 21, 2023

What is your python version?
Use python3 --version

@MDTravisYT
Copy link

MDTravisYT commented May 7, 2023

I'm getting the same error. Here's the version along with the error output:

root@[computer]:[folder]# python3 stammer.py in1.mp4 in2.mp4 out.mp4
Traceback (most recent call last):
  File "stammer.py", line 20, in <module>
    import video_out
  File "[folder]/video_out.py", line 2, in <module>
    from decay_cache import DecayCache
  File "[folder]/decay_cache.py", line 13, in <module>
    class DecayCache:
  File "[folder]/decay_cache.py", line 14, in DecayCache
    items: dict[DecayItem] = {}
TypeError: 'type' object is not subscriptable
root@[computer]:[folder]# python3 --version
Python 3.8.10
root@[computer]:[folder]#

@Firepal
Copy link
Collaborator

Firepal commented May 7, 2023

Python 3.9 typing is creating a whole BUNCH of errors... i think it will have to be removed. Python doesn't even do true type-checking.

@Firepal Firepal changed the title error on execution Python 3.x typed vars crash Dec 27, 2023
@Firepal Firepal added the bug Something isn't working label Dec 27, 2023
@Firepal Firepal self-assigned this Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants