• logging python errors

    From Pepper@21:1/187 to All on Sunday, December 31, 2017 09:10:45
    I'm playing around with python and tweepy to send tweets from the BBS.
    Using my version and the one found on the shadowscope.com website I seem to
    get module errors, when run from mystic (using the demo menu calling the .mpy).I am running an A37 build from last week.
    The issue is I can't see the full error output. Is there a way to pipe those errors to a logfile ? Python 2.5 and above is version 1013 .. but 'mysticerror' seems to be reporting version 1936524277
    This is all the errors I can see when ran, but it's a little truncated.

    sys:1: RuntimeWarning: Python C API version mismatch for module __mysticerror__ PYTHON ERROR (tweet.mpy)sion 1013, module __mysticerror__ has version 193652427 File "tweet.mpy", line 3, in <module>rsion mismatch for module mystic_bbs: Thi File "/usr/local/lib/python2.7/dist-packages/tweepy/__init__.py", line 17, in <module>
    from tweepy.streaming import Stream, StreamListener
    File "/usr/local/lib/python2.7/dist-packages/tweepy/streaming.py"

    -=Pepper=-

    --- Mystic BBS v1.12 A37 2017/12/13 (Raspberry Pi/32)
    * Origin: Cosmik Debris BBS | Little Falls,NY (21:1/187)
  • From g00r00@21:1/108 to Pepper on Sunday, December 31, 2017 10:44:19
    I'm playing around with python and tweepy to send tweets from the BBS. Using my version and the one found on the shadowscope.com website I seem to get module errors, when run from mystic (using the demo menu calling

    Usually this means that Python can't find the module you are trying to
    include, so you likely need to set environment variables for this.

    --- Mystic BBS v1.12 A37 2017/12/30 (Windows/32)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From Pepper@21:1/187 to g00r00 on Tuesday, January 02, 2018 20:02:39
    On 12/31/17, g00r00 said the following...
    Usually this means that Python can't find the module you are trying to include, so you likely need to set environment variables for this.

    Interestingly, now that I fixed a typo. I have no issue running it as an external program (DD), like python /mystic/scripts/whatever.py. But changing
    it to a .mpy and running from (GY) it errors out.
    Is there a difference in the way python is called ... between DD & PY ?

    -=Pepper=-

    --- Mystic BBS v1.12 A38 2018/01/01 (Raspberry Pi/32)
    * Origin: Cosmik Debris BBS | Little Falls,NY (21:1/187)