• Python Script disconnects user after running

    From MobbyG@21:1/219 to All on Sat Nov 26 13:31:34 2022
    Hello all.

    I am having an issue with a script that worked fine with Python 2 onmy Raspberry Pi 400, but when run with Python 3, it displays the data, but then kicks the user off the BBS after hitting a key at the pause prompt.

    The error in the log just says:
    {time stamp} An error has occured: EAccessViolation Access violation
    {time stamp} Shutting down

    I have posted the source on pastebin: https://pastebin.com/cHq7YwDi

    I can't run it under Python 2 because it seems after I did a reinstall of the Raspiabn OS after trying to troubleshoot another issue, I had to reinstall Python 2.7, but the shared library for Python 2 is no longer there in the folder where it's supposed to be. The quickest solution, or so O thought, would have been to just switch it to Python 3, which from the code, doesn't appear to be anything specific to version 2.x.

    Anyone have any ideas?

    Thanks in advance..

    73!
    Rich, KB2MOB

    --- Mystic BBS v1.12 A48 2022/07/15 (Raspberry Pi/32)
    * Origin: Radio Freqs & Geeks BBS Running on a Pi400 (21:1/219)
  • From ogg@21:2/147 to MobbyG on Sat Nov 26 13:13:03 2022
    On 26 Nov 2022, MobbyG said the following...

    Hello all.

    I am having an issue with a script that worked fine with Python 2 onmy Raspberry Pi 400, but when run with Python 3, it displays the data, but then kicks the user off the BBS after hitting a key at the pause prompt.

    The error in the log just says:
    {time stamp} An error has occured: EAccessViolation Access violation
    {time stamp} Shutting down

    I have posted the source on pastebin: https://pastebin.com/cHq7YwDi

    I can't run it under Python 2 because it seems after I did a reinstall
    of the Raspiabn OS after trying to troubleshoot another issue, I had to reinstall Python 2.7, but the shared library for Python 2 is no longer there in the folder where it's supposed to be. The quickest solution, or so O thought, would have been to just switch it to Python 3, which from the code, doesn't appear to be anything specific to version 2.x.

    Anyone have any ideas?

    Thanks in advance..

    73!
    Rich, KB2MOB

    I had issues with Mystic/python on Ubuntu that I couldn't resolve. I jumped over to Win11/python2.7 and everything is working as expected. I'm getting my linux machine ready for the move over to Debian to see if I can get python2.7 and python3 running together. I'm going to watch this thread to see how you get on. Good luck!

    ogg
    Sysop, Altair IV BBS
    altairiv.ddns.com

    ... Shortcut: longest distance between two points

    --- Mystic BBS v1.12 A48 2022/07/15 (Windows/64)
    * Origin: Altair IV BBS (21:2/147)
  • From esc@21:4/173 to MobbyG on Sat Nov 26 21:19:35 2022
    I am having an issue with a script that worked fine with Python 2 onmy Raspberry Pi 400, but when run with Python 3, it displays the data, but then kicks the user off the BBS after hitting a key at the pause prompt.

    Mystic with Python3 is, IMO, in a pretty broken state and I would focus on getting things working as expected with Python2 until g00r00 has time to dig in and troubleshoot some of this stuff.

    Honestly there are countless threads about this and what we all land on is just reverting to 100% python2 for the time being. Sorry this advice kinda sucks, but it is what it is :/

    --- Mystic BBS v1.12 A48 2022/07/11 (Linux/64)
    * Origin: m O N T E R E Y b B S . c O M (21:4/173)
  • From esc@21:4/173 to ogg on Sat Nov 26 21:21:06 2022
    I had issues with Mystic/python on Ubuntu that I couldn't resolve. I jumped over to Win11/python2.7 and everything is working as expected.
    I'm getting my linux machine ready for the move over to Debian to see if
    I can get python2.7 and python3 running together. I'm going to watch
    this thread to see how you get on. Good luck!

    So far, I've not seen anyone using Mystic with /both/ p2 and p3 coexisting. It's one-or-the-other, meaning that if a p2 script runs during a user session, then trying to run a p3 script will cause the EACCESSVIOLATION error. And vice versa (i.e., running a p3 followed by p2). However, the python3 issues seem far more numerous in general than python2 which is why everyone is still sitting on python2 for now.

    --- Mystic BBS v1.12 A48 2022/07/11 (Linux/64)
    * Origin: m O N T E R E Y b B S . c O M (21:4/173)