@kjm That looks like been made for micropython on Linux. It will fail at line 2, because ffilib.py (and libsqlite3.py as well) does not exist on pycom boards.