• Cannot Initialize Python Error

    From Vorlonze@1337:3/163 to All on Monday, March 31, 2025 10:18:40
    Hello everyone,
    Would someone here be able to help me with this error?
    I have python.27 and .313 installed and pathed in the environment variables path c:\Python27 and c:\Python313. I cannot figure out why when I start iChat it gives this "Cannot Initialize Python, press a key" error.
    I can call python from any dir in a command prompt and from the Windows search bar. Any help would be appreciated. Let me know if you would need more specific information.

    Thanks

    ... APPLE: It may be slow, but at least it's expensive.

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Mystic Realms - A Social Media Alternative (1337:3/163)
  • From opicron@1337:1/109 to Vorlonze on Monday, March 31, 2025 18:32:51
    it gives this "Cannot Initialize Python, press a key" error.
    I can call python from any dir in a command prompt and from the Windows se bar. Any help would be appreciated. Let me know if you would need more specific information.
    Do other scripts fail too?

    oP!

    ... Silly Wabbit, QWKs are for kids!

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (1337:1/109)
  • From Vorlonze@1337:3/163 to opicron on Tuesday, April 01, 2025 07:55:37
    opicron wrote to Vorlonze <=-

    it gives this "Cannot Initialize Python, press a key" error.
    I can call python from any dir in a command prompt and from the Windows se bar. Any help would be appreciated. Let me know if you would need more specific information.
    Do other scripts fail too?

    No, I have not had any other issues with python. Mystic calls other scrripts without issue.
    Just iChat.
    I don't know where to look in irc.mpy to see where its failing, if there at all. I dont't have any experience
    with python.
    I don't see an error.log of any kind where this shows up.



    ... Trust is gained in drops and lost in buckets.
    ___ MultiMail/Win v0.52

    --- Mystic BBS/QWK v1.12 A48 (Windows/64)
    * Origin: Mystic Realms - A Social Media Alternative (1337:3/163)
  • From opicron@1337:1/109 to Vorlonze on Tuesday, April 01, 2025 20:11:35
    Do other scripts fail too?
    No, I have not had any other issues with python. Mystic calls other scrri without issue.
    Just iChat.
    I think it might be failing on of the included modules.

    Are the following modules installed with PIP?

    socket, traceback, threading, ConfigParser

    oP!

    ... "I am a jelly doughnut." --John F. Kennedy

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (1337:1/109)
  • From opicron@1337:1/109 to Vorlonze on Wednesday, April 02, 2025 10:11:54
    it gives this "Cannot Initialize Python, press a key" error.
    I can call python from any dir in a command prompt and from the Windo bar. Any help would be appreciated. Let me know if you would need mo specific information.
    Do other scripts fail too?

    No, I have not had any other issues with python. Mystic calls other scrri without issue.
    Just iChat.
    I don't know where to look in irc.mpy to see where its failing, if there a all. I dont't have any experience
    with python.

    I only get Cannot Initialize Python when the /usr/local/lib/libpython2.7.so file cannot be found.

    Do you have the libpython2.7.so file available on your distribution? It doesnt matter if python runs in command line, you need this link library for Mystic.

    I am sure that other .mpy script fail too because of this. Please check.

    oP!

    ... Vote Republican, it's easier than thinking.

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (1337:1/109)
  • From Vorlonze@1337:3/163 to opicron on Wednesday, April 02, 2025 08:48:36
    opicron wrote to Vorlonze <=-

    it gives this "Cannot Initialize Python, press a key" error.
    I can call python from any dir in a command prompt and from the Windo bar. Any help would be appreciated. Let me know if you would need mo specific information.
    Do other scripts fail too?

    No, I have not had any other issues with python. Mystic calls other scrri without issue.
    Just iChat.
    I don't know where to look in irc.mpy to see where its failing, if there a all. I dont't have any experience
    with python.

    I only get Cannot Initialize Python when the /usr/local/lib/libpython2.7.so file cannot be found.

    Do you have the libpython2.7.so file available on your distribution? It doesnt matter if python runs in command line, you need this link
    library for Mystic.

    I am sure that other .mpy script fail too because of this. Please
    check.

    I did a search of the Python27 dir and it said not found.

    I ran py -2.7 -m pip install libpython2.7.so and get a bunch of errors, retrying, ERROR: Could not find a version that satifies the requirement libpython2.7.so (from versions: none), Error: No matching distribution found for libpython2.7.so and finally InsecurePlatformWarning with could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl cert.....

    I don't know what that all means but I suspect that its not available anymore. But I do not know enough to say for sure.



    ... Cats remind us that not everything in Nature has purpose.
    ___ MultiMail/Win v0.52

    --- Mystic BBS/QWK v1.12 A48 (Windows/64)
    * Origin: Mystic Realms - A Social Media Alternative (1337:3/163)
  • From Vorlonze@1337:3/163 to opicron on Wednesday, April 02, 2025 08:48:36
    opicron wrote to Vorlonze <=-

    Do other scripts fail too?
    No, I have not had any other issues with python. Mystic calls other scrri without issue.
    Just iChat.
    I think it might be failing on of the included modules.

    Are the following modules installed with PIP?

    socket, traceback, threading, ConfigParser

    Searched Python27 dir and found:

    socket:
    Found SocketServer.pyc, socketpyc, socketlib,socketpyd, test_scoket.py, SocketServer.py, test_socketserver.py and socket.py

    traceback:
    Found traceback.pyc, traceback.h, test_traceback.py and traceback.py

    threading:
    Found threading.pyc, test_dummy_threading.py, dummy_threading.py, test_threading.py, test_threading_local.py, threading.py, and _threading_local.py

    ConfigParser:
    Found ConfigParser.pyc and ConfigParser.py

    missing anything?

    ... What is mind? No matter! What is matter? Never mind! - Homer S.
    ___ MultiMail/Win v0.52

    --- Mystic BBS/QWK v1.12 A48 (Windows/64)
    * Origin: Mystic Realms - A Social Media Alternative (1337:3/163)
  • From opicron@1337:1/109 to Vorlonze on Wednesday, April 02, 2025 15:01:17
    opicron wrote to Vorlonze <=-

    it gives this "Cannot Initialize Python, press a key" error.
    I can call python from any dir in a command prompt and from the bar. Any help would be appreciated. Let me know if you would ne specific information.
    Do other scripts fail too?

    No, I have not had any other issues with python. Mystic calls other without issue.
    Just iChat.
    I don't know where to look in irc.mpy to see where its failing, if th all. I dont't have any experience
    with python.

    I only get Cannot Initialize Python when the /usr/local/lib/libpython2.7.so file cannot be found.

    Do you have the libpython2.7.so file available on your distribution? doesnt matter if python runs in command line, you need this link library for Mystic.

    I am sure that other .mpy script fail too because of this. Please check.

    I did a search of the Python27 dir and it said not found.

    I ran py -2.7 -m pip install libpython2.7.so and get a bunch of errors, retrying, ERROR: Could not find a version that satifies the requirement libpython2.7.so (from versions: none), Error: No matching distribution fou for libpython2.7.so and finally InsecurePlatformWarning with could not fet URL https://pypi.org/simple/pip/: There was a problem confirming the ssl cert.....

    Yeah, I think you didnt install the dynamic Python 2.7 library. For examples of Ubuntu 22.04 and 24.04 please check this github:

    https://github.com/opicron/mysticbbs

    The Dockerfiles contain the commands how I build my Python enviroment? What Linux (or Windows) are you on? If not Ubuntu, please search for how to install Python 2.7 dynamic library on your distribution.

    oP!

    ... These things on my nose aren't just for show. þ Ro

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (1337:1/109)
  • From opicron@1337:1/109 to Vorlonze on Wednesday, April 02, 2025 15:01:55

    missing anything?

    No, if these are available we only miss the dynamic Python library which Mystic uses to execute scripts.

    oP!

    ... A cats worst enemy is a closed door.

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (1337:1/109)
  • From Vorlonze@1337:3/163 to opicron on Wednesday, April 02, 2025 12:23:45
    On 02 Apr 2025, opicron said the following...
    Yeah, I think you didnt install the dynamic Python 2.7 library. For examples of Ubuntu 22.04 and 24.04 please check this github:

    https://github.com/opicron/mysticbbs

    The Dockerfiles contain the commands how I build my Python enviroment? What Linux (or Windows) are you on? If not Ubuntu, please search for how to install Python 2.7 dynamic library on your distribution.


    Windows. Thank you I will do that. But off to work now.
    Again, thanks

    ... A Scarf is just an unfinished Afghan

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Mystic Realms - A Social Media Alternative (1337:3/163)
  • From Vorlonze@1337:3/163 to opicron on Wednesday, April 02, 2025 12:24:36
    On 02 Apr 2025, opicron said the following...


    missing anything?

    No, if these are available we only miss the dynamic Python library which Mystic uses to execute scripts.


    Well ok then, almost there!
    Thank you greatly.

    ... Everyone has a photographic memory. Some don't have film.

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Mystic Realms - A Social Media Alternative (1337:3/163)
  • From opicron@1337:1/109 to Vorlonze on Wednesday, April 02, 2025 16:56:32
    Windows. Thank you I will do that. But off to work now.
    Again, thanks

    On windows I haven't any first hand experience, but this wiki page explains it all I think:

    https://wiki.mysticbbs.com/doku.php?id=python_install

    oP!

    ... Rome was not built in one day. John Heywood (1497-1580)

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (1337:1/109)
  • From Vorlonze@1337:3/163 to opicron on Thursday, April 03, 2025 08:56:41
    On 02 Apr 2025, opicron said the following...

    Windows. Thank you I will do that. But off to work now.
    Again, thanks

    On windows I haven't any first hand experience, but this wiki page explains it all I think:

    https://wiki.mysticbbs.com/doku.php?id=python_install


    I did exactly that from the wiki page when 1st installed python.
    The wiki also reads that windows python looks for python27.dll to initialize and not libpython2.7.so.1.0, thats for linux. MacOS is another different file.

    python27.dll is in the SYSWOW64 dir. Its also in the system paths. I manually edited the paths to be sure.

    At a loss still.

    Thanks.

    ... Next time you wave at me, use more than one finger!

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Mystic Realms - A Social Media Alternative (1337:3/163)