• MPY issues

    From Gryphon@21:1/120 to g00r00 on Tuesday, March 14, 2017 10:34:00
    g00r00,

    I was finally playing around with MPY and I made a startling discovery. If I add some python libraries to an MPY script, it has a fatal error.

    For instance, I've taken the default testpython.mpy script and ran it, and it runs fine.

    But then I add the following:
    #######
    from mystic_bbs import *
    import sqlite3 as lite
    #######

    It gives me an error:
    sys:1: RuntimeWarning: Python C API version mismatch for module __mysticerror__:
    PYTHON ERROR:has API version 1013, module __mysticerror__ has version 2124481525
    File "testpython.mpy", line 6, in <module>
    File "/usr/lib/python2.7/sqlite3/__init__.py", line 24, in <module>ic_bbs: Thi
    from dbapi2 import * 1013, module mystic_bbs has version 2124481525.
    File "/usr/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
    from _sqlite3 import *
    ImportError: /usr/liPress a key

    I've tried to set up the PYTHONHOME and PYTHONPATH variables, but I don't
    know if they are registering. I export them from my mis nanny script, since I don't know where else to apply them.

    "No matter where you go, there you are!" - Buckaroo Bonzai

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Cyberia BBS | Cyberia.Darktech.Org | Kingwood, TX (21:1/120)