-
Notifications
You must be signed in to change notification settings - Fork 11
TypeError: 'type' object is not subscriptable #14
Comments
Hello, What python version are you using? You can type |
That's odd. I will look into this again in a few days. I am quite busy at the moment, so I am unable to work on it right away. |
Nevermind! I had some time today and found out why I wasn't able to reproduce the issue. If you take a look at this issue you will see a very similar problem to this case. So I was testing my script on my raspberry pi today and got the same exception because I am using python 3.8, but on my pc I am using 3.9 which allows these type annotations. So if you want to get it working quickly you should try to run it again with python 3.9. Sorry to keep you waiting for so long (for such a simple issue). |
Could you try and test the script from "python38-compatibility" branch? I am pretty sure that fixes the issue, but can't test it right now, so I would like to get your feedback on that, before I merge and close this. |
I had time to test this today and didn't have any issues. If anything is not working correctly on python 3.8 and you still experience some issues, feel free to reopen this issue. |
Add type annotations for python3.8 | Fixes: #14
Hi Mr
I want to run the WaWebSession.py but while I run this script, show me this error
Traceback (most recent call last): File "/home/majid/Desktop/whatsapp/WaWebSessionHandler/WaWebSession.py", line 25, in <module> class SessionHandler: File "/home/majid/Desktop/whatsapp/WaWebSessionHandler/WaWebSession.py", line 30, in SessionHandler __browser_profile_list: list[str] TypeError: 'type' object is not subscriptable
I run this script with python 3 and also I downloaded and pasted the chromedriver in PATH
but doesn't work for me
can you help me please Mr?
The text was updated successfully, but these errors were encountered: