danielgross / whatsapp-gpt

MIT License
3.07k stars 596 forks source link

AttributeError: 'NoneType' object has no attribute 'query_selector' #1

Closed natv closed 1 year ago

natv commented 1 year ago

Hey thanks for writing these scripts!

I got it mostly installed, up to the point where it tries to launch the browser, but the browser only pops up for a split second and then goes away.

This is the error in the terminal:

┌──(flask)─(kali㉿kali)-[~/whatsapp-gpt/flask] └─$ python /home/kali/whatsapp-gpt/server.py Traceback (most recent call last): File "/home/kali/whatsapp-gpt/server.py", line 61, in start_browser() File "/home/kali/whatsapp-gpt/server.py", line 52, in start_browser if not is_logged_in(): File "/home/kali/whatsapp-gpt/server.py", line 25, in is_logged_in return get_input_box() is not None File "/home/kali/whatsapp-gpt/server.py", line 21, in get_input_box return PAGE.query_selector("div[class*='PromptTextarea__TextareaWrapper']").query_selector("textarea") AttributeError: 'NoneType' object has no attribute 'query_selector'

Any help would be appreciated.

khandriod commented 1 year ago

same issue with me. how did you fix it