I'm trying to write and MPY app that uses sqlite3 to manage the app data. >But I'm getting errors just trying to import the sqlite3 module.
I'm running on 64-bit linux and using python2.7 (of course)
My env is set up properly I expect:
bbs@cyberia:~/scripts$ echo $PYTHONPATH
/usr/bin/python
bbs@cyberia:~/scripts$ echo $PYTHONHOME
/usr/lib/python2.7
My code has the proper import format:
------------
from mystic_bbs import *
import sqlite3
But when I run the app, I get this error: >-----------------------------------------
File "/usr/lib/sqlite3/dbapi1.py", line 28, in <module>
from _sqlite3 import *
ImportError: /usr/lib/pythPress a Key
The "Press a Key" is part of the output. Unfortunately it obscures the >relevant part of the error and I don't know how to make it go away.
One thing I did notice is that there is no /usr/lib/sqlite3 directory. I >figured it was some error with the installation, so I removed and reinstalled >python-sqlite3. But I still get the error.
Has anybody else tried adding sqlite3 to an MPY app? If so, did you >encounter this error?
--- Mystic BBS v1.12 A36 2017/12/03 (Linux/64)
* Origin: Cyberia BBS | cyberia.darktech.org | San Jose, CA (21:1/120)
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 31 |
Nodes: | 8 (0 / 8) |
Uptime: | 199:52:32 |
Calls: | 2,083 |
Calls today: | 1 |
Files: | 11,139 |
Messages: | 947,896 |