[Python] Python venv mismatch

Discussão em 'Python' iniciado por Stack, Maio 3, 2025.

  1. Stack

    Stack Membro Participativo

    A program I want to use makes use of python scripts. This program is siril, an astrophotography program. Running this script is described here.

    The problem I'm having is that this fails immediately with this message.

    16:14:43: Error: python not ready yet. This may happen at first run if the python venv and module setup has not yet completed. Please wait a short time for a completion message in the log and try again.


    Ah, venv!!

    Sheesh! I'm an old retired python hand but this venv stuff is a bit beyond what I remember. From what I read about venv, it's a tool for python developers to be able to have multiple virtual development environments that they can switch between.

    But I'm not a developer in this situation. I'm just an end user trying to run a packaged script.

    So why are they using venvs?

    More importantly, what do I have to do get this to work?

    My system is Ubuntu 24.04.2 LTS. Newly upgraded. I tried the following to see what is going on.

    $ which python
    $ which pip
    /usr/bin/pip
    $ python
    Command 'python' not found, did you mean:
    command 'python3' from deb python3
    command 'python' from deb python-is-python3


    So, no executable called python. Running python3 works. python3 is installed on the system. I installed python-is-python3 and now I can invoke python, but it doesn't help.

    Somebody please help this geezer understand what he needs to do to configure this venv!

    Update: adding info requested by a commenter.

    Siril has its own scripting language, but the latest version adds the ability to run python scripts. One python script comes with the package and I'm trying to run it. You run it from the siril menu which runs the script within the program.

    I've looked at the script. Nothing in it suggests that it needs to run in a venv, at least not to my eyes. It can't be run outside the program, as siril provides some additional packages that the script needs to import.

    I looked in Siril's GitHub. I don't find the script there. There's no way to attach it here or I would, but I don't think that would help either.

    Minimum reproducible example: To reproduce, you'd have to download and install Siril on an Ubuntu 24.04.2 system. It is available from https://free-astro.org/download/siril_1.4.0~beta1-1_amd64.deb Then run Scripts->Python Scripts->Siril_Catalog_Installer.py

    Sorry, I can't put it any more succinctly.

    Continue reading...

Compartilhe esta Página