Skip to content

type error 'type' object is not subscriptable #6

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

Open
night3759 opened this issue Sep 16, 2022 · 5 comments
Open

type error 'type' object is not subscriptable #6

night3759 opened this issue Sep 16, 2022 · 5 comments

Comments

@night3759
Copy link

image
I meet this problem when I run the main file. I don't know how to fix it.

@RavneetDTU
Copy link

Also facing the same issue.

@night3759
Copy link
Author

I tried to revise the part "tuple[]" to "tuple([])".And then it works,. There are a lot of palces which need to be revised. I don't know if this is right, but it really works.

@dilta
Copy link

dilta commented Sep 20, 2022

I think that is because of version mismatch. (I encountered that before)
create a new virtual dev environment, and:
pip install -r requirements.txt

The requirements.txt is in the repo.

@agrmohak
Copy link

This is particularly because of python version.
try using Python 3.10

@sadath-12
Copy link

I did the following and it works

from typing import Tuple

then wherever tuple was there i replaced with Tuple

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

5 participants