• python errors

    From Gryphon@21:1/120 to g00r00 on Tuesday, January 08, 2019 11:56:00
    g00r00,

    I'm having trouble getting python modules to work with MPY apps. I can't get the sqlite3 module to work, and mystic is obscuring the error with the 'press any key' prompt. So I can't see what the error is.

    Is there a reason why some modules will load, but others will not?

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: Cyberia BBS | cyberiabbs.zapto.org | San Jose, CA (21:1/120)
  • From g00r00@21:1/108 to Gryphon on Wednesday, January 23, 2019 04:16:42
    I'm having trouble getting python modules to work with MPY apps. I
    can't get the sqlite3 module to work, and mystic is obscuring the error with the 'press any key' prompt. So I can't see what the error is.

    I don't really have an answer for you. The press any key prompt should print whatever error it gets and it doesn't clear the screen so even if Python
    prints an error to STDIO you should see it.

    I am assuming this is in Linux? I can try it here and see what I can come up with.

    --- Mystic BBS v1.12 A42 2018/12/31 (Windows/32)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From g00r00@21:1/108 to Gryphon on Thursday, January 31, 2019 08:23:50
    I'm having trouble getting python modules to work with MPY apps. I
    can't get the sqlite3 module to work, and mystic is obscuring the error with the 'press any key' prompt. So I can't see what the error is.

    Just an update to this although not a good one.

    I tested it in Windows and it works fine. But I am also having the same
    issue in Linux Ubuntu. The latest build logs Python errors to errors.log but
    I am assuming the error you see is the same as mine... I have not been able
    to figure out why it doesn't work.

    Googling suggests that its an environment issue or Python was built wrong but that really seems unlikely to me because just running python from command
    line seems to work fine with sqlite3.

    I am not sure how to fix this but I will keep trying.

    --- Mystic BBS v1.12 A42 2019/01/25 (Windows/32)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From g00r00@21:1/108 to Gryphon on Friday, February 01, 2019 22:54:50
    I'm having trouble getting python modules to work with MPY apps. I can't get the sqlite3 module to work, and mystic is obscuring the err with the 'press any key' prompt. So I can't see what the error is.

    I tested it in Windows and it works fine. But I am also having the same issue in Linux Ubuntu. The latest build logs Python errors to errors.log

    Another update: I tested it on macOS today and it works fine there too.

    So the issue only seems to happen in Linux and I don't know if its all Linux, but definitely Ubuntu.

    --- Mystic BBS v1.12 A42 2019/02/01 (Windows/32)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From g00r00@21:1/108 to Gryphon on Saturday, February 02, 2019 16:46:26
    I'm having trouble getting python modules to work with MPY apps. I
    can't get the sqlite3 module to work, and mystic is obscuring the error with the 'press any key' prompt. So I can't see what the error is.

    Finally resolved this issue. So here is the deal:

    It works fine on Windows and macOS but not on Ubuntu Linux. I haven't tested beyond that, but I do have a solution for the problem.

    The issue is that Python in Ubuntu is compiled in a way that does not properly support embedded applications, so it needs to be recompiled properly. I've figured out the proper way to recompile it and now sqlite3 is working fine with Mystic Python. I detailed the steps to recompile Python on the Wiki, but I have yet to go back through and try the steps against a fresh Ubuntu 18 installation.

    You can read about this on the Wiki towards the bottom: http://wiki.mysticbbs.com/doku.php?id=python_install

    --- Mystic BBS v1.12 A42 2019/02/01 (Windows/32)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)