Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

smoke Xarn everyday

Name: Anonymous 2010-06-23 2:51

Name: Anonymous 2010-06-27 4:44

Traceback (most recent call last):
  File "./progscrape.py", line 248, in <module>
    (thread[0], post, p['name'], p['meiru'], p['trip'], p['now'], p['com']))
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a te
xt_factory that can interpret 8-bit bytestrings (like text_factory = str). It is
 highly recommended that you instead just switch your application to Unicode str
ings.

Name: Anonymous 2010-06-27 4:52

>>68
adding db_conn.textfactory = str after the db_conn = sqlite3.connect(db_name) line seems to have fixed that.
i'd rather not muck around with FIOC's idiotic type system to figure out how to do the "highly recommended" fix instead.

Name: Anonymous 2010-06-27 4:53

>>61
s/textfactory/text_factory/

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List