python - sqlite3.OperationalError: no such table: user -
i'm using flask server in raspberry pi archlinux arm.
i have 1 script called rest.py wich contains necessary connect bdd:
(...) database = 'stuff.db' (...) top.sqlite_db = sqlite3.connect(app.config['database']) (etc)
if execute file.py servers runs propertly, establish connection , can rests calls perfectly, can get, post, etc.
but, when execute file.py using script:
#!/bin/sh sudo python file.py
..doesn't work. following error: sqlite3.operationalerror: no such table: user
i've tried grant absolute permissions files (chmod 777..., know not practice don't know do... ). directory /tmp , parent directory of file.py , stuff.db full permissions.
i've tried eliminate dbb , re-create it. still same.
any idea guys?
thank help.
Comments
Post a Comment