WhatsApp Automation using Python on Raspberry Pi - error : TypeError: 'NoneType' object is not subscriptable

Submitted by JSTAL on

Hi, Followed this tutorial: WhatsApp Automation using Python on Raspberry Pi – A Personalized WhatsApp bot for Home Automation

installed on a raspberry PI4 - had some issues but in the end installation became OK (I think so)  

but I don't see the "Whatsapp_Bot" user to communicate with.  How do I get that?

print screen of whatsapp

Next issue: in the shell I see following error message, but I don't know how to fix that error?  Any idea ?

##Whatsapp page ready for automation##
New chat or message is available
Traceback (most recent call last):
  File "/home/pi/Whatsapp/Walter_Whatsap_bot.py", line 111, in <module>
    incoming_message = read_last_message() #read the last message that we received

  File "/home/pi/Whatsapp/Walter_Whatsap_bot.py", line 66, in read_last_message
    pygu.moveTo(smily_paperclip_pos[0], smily_paperclip_pos[1])

TypeError: 'NoneType' object is not subscriptable

 

 

Thanks