Jun-11-2017, 02:10 PM
Hello there!
I just started writing in python. I am facing some issue regarding permissions to SQLite.
This is my repo
After installation, as the data.db goes to /usr/local/lib/.... (in Ubuntu 16.04) I get some problem in writing to the database. If I simply use
sudo medium it will not work because I am using selenium (chromedriver) so it won't open as root. I made it work somehow by chmod 777 -R to that path, but I'll need to repeat every time I install it with setup.py. Please help me if I can do another way round.
I just started writing in python. I am facing some issue regarding permissions to SQLite.
This is my repo
github.com/feat7/medium-scrapper
After installation, as the data.db goes to /usr/local/lib/.... (in Ubuntu 16.04) I get some problem in writing to the database. If I simply use
sudo medium it will not work because I am using selenium (chromedriver) so it won't open as root. I made it work somehow by chmod 777 -R to that path, but I'll need to repeat every time I install it with setup.py. Please help me if I can do another way round.