I'm having trouble getting Ren'py to work with sqlite3. Normally sqlite3 is included within standard Python but my understanding is that it has been omitted from Ren'py (presumably to keep the distribution packages smaller). Has anyone successfully installed / used sqlite3 with Ren'py? If so, I would very much appreciate some guidance!
I've copied a Python 2.7 version of the sqlite package into a 'python-packages' directory within the 'game' directory. Here's my 'init python' block in a file called '01init.rpy':
Code: Select all
init python:
import sqlite3
When I attempt to build the app, I get the following error:
###
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/01init.rpy", line 2, in script
init python:
File "game/01init.rpy", line 3, in <module>
import sqlite3
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 108: invalid continuation byte
###
If anyone could point me in the right direction, I would be extremely grateful.
Thanks in advance.