• Getting Python to work with Mystic

    From Gryphon@21:1/101 to All on Wed Jun 19 03:11:08 2024
    Hi All,
    I've been trying to get python to work with mystic and I'm not having any luck and I'm hoping that I can get some assistance here.

    I'm running Ubuntu 24.04LTS x86_64 and I have only python3 installed. No python2 is installed. I'm running Mystic A49 L64.

    I've followed the instructions as well as I can but still can't seem to get it to work.

    I've added /lib/x86_64-linux-gnu/libpython3.12.so to the Python 3 Library field in the mystic config, but I've never been clear if that is supposed to hold the path to the libs or the full path/lib.so file. Either way, I've tried both and I still get "Cannot initialize Python, press a key"

    Do I need to restart MIS after each change? Do I need to set some environment variables?

    Any help would be appreciated.

    ... Hard work never killed anyone but why take a risk?

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Avon@21:1/101 to Gryphon on Thu Jun 20 11:11:12 2024
    On 19 Jun 2024 at 03:11a, Gryphon pondered and said...

    Hi All,

    Hi there, nice to see you active again :)

    I've been trying to get python to work with mystic and I'm not having
    any luck and I'm hoping that I can get some assistance here.

    what version of Mystic are you using?

    Kerr Avon [Blake's 7] 'I'm not expendable, I'm not stupid and I'm not going' avon[at]bbs.nz | bbs.nz | fsxnet.nz

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Gryphon@21:1/101 to Avon on Fri Jun 21 05:50:26 2024
    On 20 Jun 2024 at 11:11a, Avon pondered and said...

    On 19 Jun 2024 at 03:11a, Gryphon pondered and said...

    Hi All,

    Hi there, nice to see you active again :)

    I've been trying to get python to work with mystic and I'm not having any luck and I'm hoping that I can get some assistance here.

    what version of Mystic are you using?

    I'm using mystic a49 l64 on ubuntu 24.04.

    I have to be honest, I'm not hopeful that it can be fixed. I can't get python2 installed at all, so I'm left with only python3. I had a mind to rebuild my VM with an older version of Ubuntu or maybe even debian or fedora. I did try it with centos9 but it failed there as well.

    ... The reason Santa is so jolly is because he knows where the bad girls live

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Avon@21:1/101 to Gryphon on Mon Jun 24 19:52:56 2024
    On 21 Jun 2024 at 05:50a, Gryphon pondered and said...

    I'm using mystic a49 l64 on ubuntu 24.04.

    if you're playing with a pre-alpha it may be an issue with that - just not sure.

    I recall g00r00 had made some changes to the way Mystic should 'just work' with Python without the need to point to where libraries were installed etc.

    Perhaps it may pay to try A48 and see how you go?

    In my case I have no paths specified for Python2 or 3 in my settings and fortunately it is 'just working'

    Kerr Avon [Blake's 7] 'I'm not expendable, I'm not stupid and I'm not going' avon[at]bbs.nz | bbs.nz | fsxnet.nz

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From The Godfather@21:3/165 to Gryphon on Tue Jun 25 18:44:30 2024
    I've been trying to get python to work with mystic and I'm not having
    any luck and I'm hoping that I can get some assistance here.
    I'm running Ubuntu 24.04LTS x86_64 and I have only python3 installed. No python2 is installed. I'm running Mystic A49 L64.

    I've followed the instructions as well as I can but still can't seem to get it to work.

    Hey Gryphon,

    I had the same issue. The problem was that Python 2.7.18 did not install the the /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 file where I point (and I think Mystic looks for) the python libraries. libpython3.10.so.1 was there.

    installing:

    sudo apt-get install python2.7-dev

    I think that is all I needed and it did the trick. Not sure if that is your issue specifically? I also point mystic in config directly to both .s0.1 files for python 2 and 3.

    |15-|12t|04G
    |15www|08.|15theun|07dergrou|08nd|07.|08us|15:|0810023

    ... DOS=HIGH? I knew it was on something...

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: www.theunderground.us Telnet 10023 SSH 7771 (21:3/165)
  • From djdave@21:1/133 to Gryphon on Tue Jul 2 23:20:00 2024
    Hi Gryphon
    I hit this today when installing a new instance of Mystic on a fresh build of Ubuntu server (22.04 in my case)
    There seems to be a dependancy issue somewhere in the Mystic code. If you do not have Python2 installed the
    mystic-bbs library will not load, so Python3 will not work.
    May not be helpful on 24.xx, not sure if they allow Python2 to be installed from standard repositories??
    -DJDave

    ... Computers all wait at the same speed!

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: DJDave BBS (21:1/133)
  • From ogg@21:2/147 to djdave on Thu Jul 4 15:23:16 2024
    Hi Gryphon
    I hit this today when installing a new instance of Mystic on a fresh
    build of Ubuntu server (22.04 in my case)
    There seems to be a dependancy issue somewhere in the Mystic code. If
    you do not have Python2 installed the
    mystic-bbs library will not load, so Python3 will not work.
    May not be helpful on 24.xx, not sure if they allow Python2 to be installed from standard repositories??
    -DJDave

    I spent a couple of days moving from win 11 to ubuntu. Started with ubuntu
    24, went to 20 and finally ended up on 18 due to not being able to get python 2.7 installed, including pip. Ubuntu 18 seems to be working fine for the
    last couple of hours.

    ogg
    Sysop, Altair IV BBS
    altairiv.ddns.net:2323

    ... The only place I want data loss is on my credit card!

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Altair IV BBS (21:2/147)
  • From Gryphon@21:1/101 to Avon on Tue Jul 9 08:15:14 2024
    if you're playing with a pre-alpha it may be an issue with that - just
    not sure.

    I recall g00r00 had made some changes to the way Mystic should 'just
    work' with Python without the need to point to where libraries were installed etc.
    Perhaps it may pay to try A48 and see how you go?

    I'm running with A49 atm but I started with A48 and it still had that issue.
    In my case I have no paths specified for Python2 or 3 in my settings and fortunately it is 'just working'

    I wonder if Python2 is required whereas Python3 is optional, because I do not have python2 installed at all and it doesn't appear that it's possible to do it at all.

    ... Users come in two types: Those who have lost data, and those who will.

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Gryphon@21:1/101 to The Godfather on Tue Jul 9 08:17:42 2024
    On 25 Jun 2024 at 06:44p, The Godfather pondered and said...

    I've been trying to get python to work with mystic and I'm not having any luck and I'm hoping that I can get some assistance here.
    I'm running Ubuntu 24.04LTS x86_64 and I have only python3 installed. python2 is installed. I'm running Mystic A49 L64.

    I've followed the instructions as well as I can but still can't seem get it to work.

    Hey Gryphon,

    I had the same issue. The problem was that Python 2.7.18 did not
    install the the /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 file where I point (and I think Mystic looks for) the python libraries. libpython3.10.so.1 was there.

    installing:

    sudo apt-get install python2.7-dev

    I think that is all I needed and it did the trick. Not sure if that is your issue specifically? I also point mystic in config directly to both .s0.1 files for python 2 and 3.


    when I do sudo apt-get install python2.7-dev, I get a message that it is not found. This is Ubunto 24.04 LTS.

    ... Classic: A book which people praise but don't read. - Mark Twain

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Accession@21:1/200 to Gryphon on Mon Jul 8 17:57:04 2024
    On Tue, 9 Jul 2024 13:17:42 +1200, you wrote:

    when I do sudo apt-get install python2.7-dev, I get a message that it is not found. This is Ubunto 24.04 LTS.

    Pretty soon, you will have to compile Python 2.7 from source on every distro, as they are in the process (and have been for years, really) of phasing out 2.x for 3.x. You can get the latest "bugfix" version from 2019 here:

    https://www.python.org/downloads/release/python-2716/

    Directly from that site:

    "Python 2.7 is scheduled to be the last major version in the 2.x series before it moves into an extended maintenance period. This release contains many of the features that were first released in Python 3.1."

    I brought up the fact that it would become a problem back when Python support was initially added to Mystic. But at the time, Python 3.x was fairly new and they were still calling 2.x "stable". However, whoever thought 3.x was ever going to go away is crazy. :)

    Regards,
    Nick

    ... Take my advice, I don't use it anyway.
    --- Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:115.0) Gecko/20100101 Thunderb
    * Origin: _thePharcyde distribution system (Wisconsin) (21:1/200)
  • From ogg@21:2/147 to Accession on Mon Jul 8 18:14:04 2024
    Pretty soon, you will have to compile Python 2.7 from source on every distro, as they are in the process (and have been for years, really) of phasing out 2.x for 3.x. You can get the latest "bugfix" version from
    2019 here:

    https://www.python.org/downloads/release/python-2716/

    I noticed that there's a 2.7.18 release. Should I stick with 2.7.16 or go with the 2.7.18?

    ogg
    Sysop, Altair IV BBS
    altairiv.ddns.net:2323

    ... Origin of Life? Just check my refrigerator...

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Altair IV BBS (21:2/147)
  • From Accession@21:1/200 to ogg on Tue Jul 9 19:00:00 2024
    On Mon, 8 Jul 2024 23:14:04 -0500, you wrote:

    https://www.python.org/downloads/release/python-2716/

    I noticed that there's a 2.7.18 release. Should I stick with 2.7.16 or
    go with the 2.7.18?

    Guess I didn't look hard enough. You're right. Heck, there's also a release candidate after that (2.7.18rc1), but I don't know how reliable it is, since it looks like it never got turned into an actual release.

    I imagine if they're all deemed fairly stable, you should be safe going with whatever version works the best for you.

    Regards,
    Nick

    ... Take my advice, I don't use it anyway.
    --- Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:115.0) Gecko/20100101 Thunderb
    * Origin: _thePharcyde distribution system (Wisconsin) (21:1/200)
  • From Gryphon@21:1/101 to Accession on Sat Jul 20 04:11:02 2024
    On 08 Jul 2024 at 05:57p, Accession pondered and said...

    On Tue, 9 Jul 2024 13:17:42 +1200, you wrote:

    when I do sudo apt-get install python2.7-dev, I get a message that it not found. This is Ubunto 24.04 LTS.

    Pretty soon, you will have to compile Python 2.7 from source on every distro, as they are in the process (and have been for years, really) of phasing out 2.x for 3.x. You can get the latest "bugfix" version from
    2019 here:

    https://www.python.org/downloads/release/python-2716/

    Thanks! I'm compiling it now.

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)