MinImagen icon indicating copy to clipboard operation
MinImagen copied to clipboard

type error 'type' object is not subscriptable

Open night3759 opened this issue 3 years ago • 5 comments

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

night3759 avatar Sep 16 '22 11:09 night3759

Also facing the same issue.

RavneetDTU avatar Sep 18 '22 09:09 RavneetDTU

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.

night3759 avatar Sep 18 '22 23:09 night3759

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.

dilta avatar Sep 20 '22 02:09 dilta

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

agrmohak avatar May 21 '23 08:05 agrmohak

I did the following and it works

from typing import Tuple

then wherever tuple was there i replaced with Tuple

sadath-12 avatar Jun 27 '23 14:06 sadath-12