TIP: Click on subject to list as thread! ANSI
echo: mystic
to: All
from: Daniel Stephens
date: 2023-02-07 20:34:00
subject: Re: RPi & Python 3

Hello and thank you for creating this wonderful BBS!

I'm in the process of building a front end to a Node.js API for keeping track of all of my ICs and other active electronics. I want to be able to access it from my Amiga 1000, and so I've decided that Mystic BBS is the best option for this. I already use 
Mystic for moving text files back and forth from WP 4.1 on my Amiga to NeoOffice on my Mac and it works great.

Anyway, I am using the Python3 module 'requests' for handling HTTP requests to the Node.js API on an Ubuntu machine on the interwebs.

However, simply importing this module into a Mystic Python3 script causes an error to show up in the error.log:
EAccessViolation Access violation

I am running Mystic version 1.12 A48
It's running on a Raspi 4 with the latest Raspbian
It's running Python 3.9.2

The python script is simply:
import mystic_bbs as bbs
import requests
bbs.writeln("Hello from Python 3")
bbs.writeln("We have imported requests module")
bbs.writeln("|PA")

The script runs fine until it ends at which point it abruptly ends the connection. It even properly executes the |PA pause; but as soon as a key is pressed the connection terminates.

If I comment out the "import requests" line, the script runs without terminating the connection and there is no error in the log file.

Any help would be most appreciated.

ps: I did do a fresh install of everything and tried with Python 2.7. The same script did not cause the connection to terminate, however it did give me a RunTimeWarning of an API version mismatch for module mystic_bbs.

Thank you!

--- SoupGate-Win32 v1.05
                                                                                                            
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.