mnkgrover08-zz / whatsapp_automation

Whatsapp Automation is a collection of APIs that interact with WhatsApp messenger running in an Android emulator, allowing developers to build projects that automate sending and receiving messages, adding new contacts and broadcasting messages multiple contacts.
GNU General Public License v3.0
202 stars 61 forks source link

Post Issue #3

Closed desstannoz closed 6 years ago

desstannoz commented 6 years ago

AttributeError: 'WhatsAppNewContactListener' object has no attribute 'apilog'

mnkgrover08-zz commented 6 years ago

This Error arises when we don't have log files available in /var/log directory. Execute following commands prior to starting the project

sudo mkdir -p /var/www/whatsapp_api sudo chmod -R 777 /var/www/whatsapp_api sudo touch /var/www/whatsapp_single_worker.log sudo chmod -R 777 /var/www/whatsapp_single_worker.log sudo touch /var/www/whatsapp_single_consumer.log sudo chmod -R 777 /var/www/whatsapp_single_consumer.log sudo touch /var/log/whatsapp_api/api.log sudo chmod -R 777 /var/log/whatsapp_api/api.log

Above commands will create the required log files.