• Cannot initialize Python

    From Hawk@21:1/188 to All on Sun Jun 25 13:57:17 2023
    Can anyone help with this situation?
    I'm running Mystic on Windows 11 and my
    Mystic Python mods .mpy scripts error out!
    I get this error: Cannot initialize Python press a key.

    My python 2.7 and Python 3.11 mods do work

    |07 |01· |14H|12a|04wk|07 |04Hubba|12r|14d
    |01└──────────────┐
    |14 |01 |08+o |14B|12l|04ack Fl|12a|14g |01·

    --- Mystic BBS v1.12 A49 2023/01/28 (Windows/32)
    * Origin: Black Flag <ACiD Telnet HQ> blackflag.acid.org:23 (21:1/188)
  • From SirRonmit@21:2/120 to Hawk on Sun Jun 25 14:19:45 2023
    Can anyone help with this situation?
    I'm running Mystic on Windows 11 and my
    Mystic Python mods .mpy scripts error out!
    I get this error: Cannot initialize Python press a key.

    I'm not running on WIN11, but my WIN7 32-BIT did the same thing.
    Did you open the Configuration and update these:

    CONFIG: General Settings: Python2 Library: c:\Python27\
    CONFIG: General Settings: Python3 Library: c:\Python3\

    Mine were set to defaults which failed to work.

    -- of course, making sure your drive and paths reflect yours.

    Timothy Norris
    aka SirRonmit
    admin@f4fbbs.com
    bbs.f4fbbs.com:2323 or :62323

    ... Do device drivers need a chauffeur's license?

    --- Mystic BBS v1.12 A48 (Windows/32)
    * Origin: Files 4 Fun BBS (21:2/120)
  • From x1pepe@21:1/150 to All on Wed Aug 16 20:54:43 2023
    Hi guys!
    I am trying to exec a phyton program in Mystic. I do that:

    Command: (GZ) Execute Python3 Script
    Data : /mystic/themes/default/scripts/16color.py

    ...and the error I get its: Cannot initialize Python

    Also I try that:
    Command: (DD) Exec External Program
    Data : /mystic/themes/default/scripts/python3 16color.py

    ...but nothing happens
    In Linux console: python3 16color.py (ENTER) it's works.

    I have my board in a Raspberry PI4, Mystic BBS 1.12 A48

    Thanxs in advance :D

    --- Mystic BBS v1.12 A48 (Raspberry Pi/32)
    * Origin: Sotano Msx BBS (21:1/150)
  • From ogg@21:2/147 to x1pepe on Wed Aug 16 14:48:30 2023
    On 16 Aug 2023, x1pepe said the following...

    Hi guys!
    I am trying to exec a phyton program in Mystic. I do that:

    Command: (GZ) Execute Python3 Script
    Data : /mystic/themes/default/scripts/16color.py

    ...and the error I get its: Cannot initialize Python

    Also I try that:
    Command: (DD) Exec External Program
    Data : /mystic/themes/default/scripts/python3 16color.py

    ...but nothing happens
    In Linux console: python3 16color.py (ENTER) it's works.

    I have my board in a Raspberry PI4, Mystic BBS 1.12 A48

    Thanxs in advance :D

    --- Mystic BBS v1.12 A48 (Raspberry Pi/32)
    * Origin: Sotano Msx BBS (21:1/150)
    I've found that python3 does not play well with mystic. Try using python2 code.

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

    ... Enter any 12-digit prime number to continue.

    --- Mystic BBS v1.12 A49 2023/04/30 (Windows/64)
    * Origin: Altair IV BBS (21:2/147)
  • From MeaTLoTioN@21:1/158 to x1pepe on Thu Aug 17 12:50:18 2023
    On 16 Aug 2023, x1pepe said the following...

    Also I try that:
    Command: (DD) Exec External Program
    Data : /mystic/themes/default/scripts/python3 16color.py

    This won't work as "python3" doesn't live in /mystic/themes/default/scripts/python3, instead first type `which python3` and then use that for the data, i.e.

    $ which python3
    /usr/bin/python3

    Command | (DD)
    Data | /usr/bin/python3 /mystic/themes/default/scripts/16color.py

    Hope this helps.

    ---
    |14Best regards,
    |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N // @meatlotion:erb.pw

    |07── |08[|10eml|08] |15ml@erb.pw |07── |08[|10web|08] |15www.erb.pw |07───┐ |07── |08[|09fsx|08] |1521:1/158 |07── |08[|11tqw|08] |151337:1/101 |07┬──┘ |07── |08[|12rtn|08] |1580:774/81 |07─┬ |08[|14fdn|08] |152:250/5 |07───┘
    |07── |08[|10ark|08] |1510:104/2 |07─┘

    ... Documentation: The worst part of programming.

    --- Mystic BBS v1.12 A48 2022/07/15 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (21:1/158)
  • From MeaTLoTioN@21:1/158 to x1pepe on Thu Aug 17 12:53:34 2023
    On 16 Aug 2023, x1pepe said the following...

    I am trying to exec a phyton program in Mystic. I do that:

    Command: (GZ) Execute Python3 Script
    Data : /mystic/themes/default/scripts/16color.py

    Also forgot to mention that using (GZ) is for Mystic Python3 scripts, not regular python3 scripts, a mystic python3 script will have the .mpy extension, and you will need to make sure in your mystic config you have put the location for the libpython3 library in the Configuration -> General Settings menu under "Python3 Library"

    Hope this helps.

    ---
    |14Best regards,
    |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N // @meatlotion:erb.pw

    |07── |08[|10eml|08] |15ml@erb.pw |07── |08[|10web|08] |15www.erb.pw |07───┐ |07── |08[|09fsx|08] |1521:1/158 |07── |08[|11tqw|08] |151337:1/101 |07┬──┘ |07── |08[|12rtn|08] |1580:774/81 |07─┬ |08[|14fdn|08] |152:250/5 |07───┘
    |07── |08[|10ark|08] |1510:104/2 |07─┘

    ... Evil triumphs when good people do nothing. - Einstein

    --- Mystic BBS v1.12 A48 2022/07/15 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (21:1/158)
  • From x1pepe@21:1/150 to MeaTLoTioN on Thu Aug 17 18:20:30 2023
    Hi!

    $ which python3
    /usr/bin/python3
    In my case works: $ whereis python3

    Command | (DD)
    Data | /usr/bin/python3 /mystic/themes/default/scripts/16color.py

    Yes! That's works!
    Thanks!

    --- Mystic BBS v1.12 A48 (Raspberry Pi/32)
    * Origin: Sotano Msx BBS (21:1/150)
  • From MeaTLoTioN@21:1/158 to x1pepe on Thu Aug 17 17:35:20 2023
    On 17 Aug 2023, x1pepe said the following...

    Hi!

    $ which python3
    /usr/bin/python3
    In my case works: $ whereis python3

    Command | (DD)
    Data | /usr/bin/python3 /mystic/themes/default/scripts/16color.py

    Yes! That's works!
    Thanks!


    Nice one, glad it helped =)

    ---
    |14Best regards,
    |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N // @meatlotion:erb.pw

    |07── |08[|10eml|08] |15ml@erb.pw |07── |08[|10web|08] |15www.erb.pw |07───┐ |07── |08[|09fsx|08] |1521:1/158 |07── |08[|11tqw|08] |151337:1/101 |07┬──┘ |07── |08[|12rtn|08] |1580:774/81 |07─┬ |08[|14fdn|08] |152:250/5 |07───┘
    |07── |08[|10ark|08] |1510:104/2 |07─┘

    ... Computers are not intelligent. They only think they are.

    --- Mystic BBS v1.12 A48 2022/07/15 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (21:1/158)
  • From x1pepe@21:1/150 to MeaTLoTioN on Fri Aug 25 18:32:30 2023
    Well, now I am testing with .mpy files.
    In my general config I have:
    Python2 Library: /usr/lib/python2.7
    Python3 Library: /usr/local/lib/python3.9

    ... but I have: "Cannot initializa Python, press a key"
    Just I am testing with the example by default in Mystic board DEMOS MENU and (Y) Mystic Pyhton Demo.

    Thanks in advance...

    --- Mystic BBS v1.12 A48 (Raspberry Pi/32)
    * Origin: Sotano Msx BBS (21:1/150)
  • From Gryphon@21:1/101 to x1pepe on Wed Jun 19 03:22:01 2024
    On 16 Aug 2023 at 08:54p, x1pepe pondered and said...

    Hi guys!
    I am trying to exec a phyton program in Mystic. I do that:

    Command: (GZ) Execute Python3 Script
    Data : /mystic/themes/default/scripts/16color.py

    I believe when running the GZ menu command, it is for running MPY mystic python scripts. You could possible rename your 16color.py script to 16color.mpy and add the mystic libs to the script. That *may* work.
    Also I try that:
    Command: (DD) Exec External Program
    Data : /mystic/themes/default/scripts/python3 16color.py

    Data should possibly be "/path/to/python3 /path/to/16color.py"

    ... A house is a place to keep your stuff while you go out and get more stuff

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