Python SQLite error only when run from terminal

visit shbcf.ru