tax / pywhatsapp

Simple wrapper around yowsup to send a message or mediafile with whatsapp
Other
63 stars 23 forks source link

permission error when used under apache wsgi #7

Closed ragowthaman closed 7 years ago

ragowthaman commented 7 years ago

Hi :- pywhatsapp works like a charm when I used it in my Django app locally with its default server. But, with Apache/wsgi (in aws beanstalk) it is causing permission error. [Errno 13] Permission denied: '/home/wsgi'

I assume apache/wsgi is not running this for security reasons. But I have no idea how to fix this. Could you please help me.

true, it's not a bug with pywhatsapp rather my ignorance with configuration and deployments using wsgi. But any help is appreciated.

Many thanks

ragowthaman commented 7 years ago

I simply changed Yowsup's PATH_STORAGE constant like so in my views.py

from yowsup.common import YowConstants
YowConstants.PATH_STORAGE = "/tmp/.yowsup"