<class 'sqlite3.ProgrammingError'> | Python 2.7.18: /bin/python2 Wed Dec 25 02:28:05 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/marknnrq/file-extension.net/seeker/seeker.py in <module>() |
293 |
294 |
295 |
296 if __name__ == "__main__": |
=> 297 main() |
main = <function main> |
/home/marknnrq/file-extension.net/seeker/seeker.py in main() |
222 |
223 ts = clock() |
=> 224 results = seeker_query(qext, qand, qor, qnot) |
225 te = clock() |
226 |
results undefined, global seeker_query = <function seeker_query>, qext = 'NT\xc3\xa3\xc2\xad', qand = [], qor = [], qnot = [] |
/home/marknnrq/file-extension.net/seeker/seeker.py in seeker_query(qext='NT\xc3\xa3\xc2\xad', qand=[], qor=[], qnot=[]) |
200 res = [] |
201 conn = sqlite3.connect("seeker.db3") |
=> 202 for row in conn.execute(sqlbody, (fts_query,)): |
203 res.append(row) |
204 conn.close() |
row undefined, conn = <sqlite3.Connection object>, conn.execute = <built-in method execute of sqlite3.Connection object>, sqlbody = '\n select ext, ftype, site, extra\n from see... where\n (seeker match ?)\n limit 150\n ', fts_query = 'ext:NT\xc3\xa3\xc2\xad ' |
<class 'sqlite3.ProgrammingError'>: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
args =
('You must not use 8-bit bytestrings unless you us... just switch your application to Unicode strings.',)
message =
'You must not use 8-bit bytestrings unless you us... just switch your application to Unicode strings.'