mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.02k stars 795 forks source link

Permission denied when accessing profile folder #303

Open mvrozanti opened 6 years ago

mvrozanti commented 6 years ago

Linux Mint 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Python 2.7.12

Not using docker.

Just tried pip2 install -U webwhatsapi, upgraded to 2.0.3

First of all, great app. Thank you for this. I was using it fine I think in the beginning of the year. I see you upgraded it but somehow I get the following error in my geckodriver.log :

1529944585451       geckodriver     INFO    geckodriver 0.19.1
1529944585455   geckodriver     INFO    Listening on 127.0.0.1:49137
1529944602907   mozrunner::runner       INFO    Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.AvKabs6JphfZ"
Running Firefox as root in a regular user's session is not supported.  ($XAUTHORITY is /home/nexor/.Xauthority which is owned by nexor.)

This above happens when running sudo, but without sudo I just get a permission denied when the api tries to access my profile folder. Maybe I should chmod the profile folder (currently drwxr-xr-x)?

Thanks again for the neat project!

kevinkit commented 6 years ago

Where do you save the profile path? Maybe put it in your home folder where you will not need root access

Generally speaking, pip installation might be behind

mvrozanti commented 6 years ago

@kevinkit I noticed it just upgraded to 2.0.3 when it's 2.0.5 already. By the way, the profile folder is in ~/.mozilla. I might try out 2.0.5 soon