Siril 1.3.6 beta version and Python [Windows 11]

Hello,
Despite python.exe is declared in Windows System Environment PATH variable, I get the following WARNING message when launching Siril 1.3.6 beta version
log: JPEG ICC profiles supported.

** (siril.exe:79168): WARNING **: 18:13:16.268: Failed to determine Python version
log: Failed to prepare virtual environmentlog: Local scripts repository is up-to-date!

Hi,

can you go to %LOCALAPPDATA%\Siril and check if there’s a venv folder there?
And if yes, can you show the folders present in this folder? Normally, there should be a Scripts folder with python.exe.
BTW, which version of python do you have? And could you show the whole log (before the warning is emitted)

18:13:14: Bienvenue dans siril v1.3.6
18:13:14: Type de fichiers supportés : Images BMP, Images PIC (IRIS), Images binaires PGM et PPM, Images RAW, Images FITS-CFA, Films, Séquences SER, Images TIFF, Images XISF, Images JPG, Images JPG XL, Images PNG, Images HEIF, images AVIF.
18:13:15: Setting CWD (Current Working Directory) to ‘D:\Documents_Trait_Astro\SiriL\work’
18:13:15: Parallel processing enabled: using 12 logical processors.
18:13:15: Preparing python virtual environment: C:\Users\Jean-Marc\AppData\Local\siril\venv.
18:13:15: Color management active.
18:13:15: JPEG ICC profiles supported.
18:13:16: Failed to prepare virtual environment18:13:16: Local scripts repository is up-to-date!
18:13:16: Local SPCC database repository is up-to-date!
18:13:22: Searching scripts in: “C:\Program Files\Siril\scripts”…
18:13:22: Loading script: DSA-Fix_Misshapen_Stars.ssf
18:13:22: Loading script: DSA-HubbleMatic.ssf
18:13:22: Loading script: DSA-OSC_Preprocessing_Master_Dark___Bias.ssf

Python version is 3.12


Can you open a powershell console and type the following, pls?
$env:Path -split ';'
and paste the result here?

I think I understand why it captured msys python instead of Windows, but I would like to make sure.

Actually, I was able to reproduce and pushed a fix.
Pull the latest master version. Delete venv folder from %LOCALAPPDATA%\siril and start again Siril from a powershell terminal (or by double-clicking siril.exe in C:\msys2\mingw64\bin)

It seems working. I just got the following message after calling ninja command
[10/32] Compiling C object src/libsiril.a.p/io_siril_pythonmodule.c.obj
In function ‘check_or_create_venv’,
inlined from ‘initialize_python_venv’ at …/src/io/siril_pythonmodule.c:1764:7:
…/src/io/siril_pythonmodule.c:1739:17: warning: ‘argv’ may be used uninitialized [-Wmaybe-uninitialized]
1739 | g_strfreev(argv);
| ^~~~~~~~~~~~~~~~
…/src/io/siril_pythonmodule.c: In function ‘initialize_python_venv’:
…/src/io/siril_pythonmodule.c:1711:25: note: ‘argv’ was declared here
1711 | gchar *argv = g_new0(gchar, 6);

Do you know where we have to download the new Gaia3 archive (offline SPCC catalog) ?

You can use a script dedicated for in the script repository. Go in siril preferences, then scripts tab.