• Python modules and venv question

    From Nikoh@1:396/4 to All on Saturday, April 05, 2025 08:11:08
    From: [email protected] (Nikoh)

    I would like to create some scripts for Mystic BBS, but I want to avoid installing the required modules system-wide. Instead, I would like to use a virtual environment (venv), but I don't know how to tell Mystic to use the virtual environment I created.

    I tried creating a symbolic link to the shared library that Mystic uses inside venv/bin, but it still don't recognize the modules from the venv, it only sees the system-wide ones.

    Can someone please help me?
    Thanks.


    |02Violence |10is the
    |15last refuge
    |12of the |04incompetent!

    --- NewsGate v1.0 gamma 2
    * Origin: News Gate @ Net396 -Huntsville, AL - USA (1:396/4)
  • From Nikoh@1:396/4 to All on Friday, April 11, 2025 07:47:56
    From: [email protected] (Nikoh)

    Problem solved, thanks to Opicron who showed me the way ;-)
    The problem is python version and you can solve installing libpython3.10.so.1.0 If you are running Ubuntu:
    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt update
    sudo apt install libpython3.10
    The following packages will be installed:
    libpython3.10, libpython3.10-minimal and libpython 3.10-stdlib
    Now you must point mystic to new library path, maybe:


    |02Violence |10is the
    |15last refuge
    |12of the |04incompetent!

    --- NewsGate v1.0 gamma 2
    * Origin: News Gate @ Net396 -Huntsville, AL - USA (1:396/4)