italoseara / whatsappy

A whatsapp api made with selenium in Python
MIT License
43 stars 8 forks source link

getting this error trying to even run the first example [bonked install?] #6

Closed 13100D closed 2 years ago

13100D commented 2 years ago

from whatsappy import whatsapp File "c:\Users[my user]\AppData\Local\Programs\Python\Python38\lib\site-packages\whatsappy__init__.py", line 1, in from .chat import ( File "c:\Users[my user]\AppData\Local\Programs\Python\Python38\lib\site-packages\whatsappy\chat.py", line 7, in from .message import * File "c:\Users[my_user]\AppData\Local\Programs\Python\Python38\lib\site-packages\whatsappy\message.py", line 19, in class _BaseMessage: File "c:\Users[my user]\AppData\Local\Programs\Python\Python38\lib\site-packages\whatsappy\message.py", line 64, in _BaseMessage def forward(self, contacts: list[str]): TypeError: 'type' object is not subscriptable

italoseara commented 2 years ago

I'm currently traveling, I'll try to figure it out ASAP

yohannd1 commented 2 years ago

Apparently it's complaining because of the list[str] operation, which is something I believe was added in recent versions. Maybe we could change it to List[str] (with List being imported from typing).

yohannd1 commented 2 years ago

@13100D uh, did you get it working? Not sure if you closed because of the solution I proposed or if you got it working now.

italoseara commented 2 years ago

@YohananDiamond i wasn't sure either, but i've just updated it, i just need to upload it to pip