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

'type' object is not subscriptable #1

Open
mhmrahmati opened this issue Sep 24, 2023 · 1 comment
Open

'type' object is not subscriptable #1

mhmrahmati opened this issue Sep 24, 2023 · 1 comment

Comments

@mhmrahmati
Copy link

Hi, I got the bellow error when i wanted to run the code.

Traceback (most recent call last): File "social_distancing_violation_system.py", line 58, in <module> class MainCtrl: File "social_distancing_violation_system.py", line 185, in MainCtrl def get_roi_frame(self, frame, coordinate: list[tuple]): TypeError: 'type' object is not subscriptable

I have python version 3.8.0 (2019) and all requirements.txt have installed successfully. is it about python version?

@afiqharith
Copy link
Owner

Hi @mhmrahmati , I think it related to the python version. You may try to use from __future__ import annotations to fix the issue.
You may also refer this link regarding the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants