flextool icon indicating copy to clipboard operation
flextool copied to clipboard

Python version for FlexTool

Open e-zaline opened this issue 1 year ago • 7 comments

I have installed FlexTool with version 3.8, as recommended in the documentation. Now when opening SpineToolBox I get this message:

[12-08-2024 17:58:59] Please upgrade your Python.
[12-08-2024 17:58:59] Looks like you are running Python 3.8. Support for Python older than 3.9  will be dropped in September 2024.

Do you think it may create problems for FlexTool, or will we keep using 3.8 anyway?

e-zaline avatar Aug 12 '24 16:08 e-zaline

The documentation should absolutely recommend a newer version. There's no guarantee you will be able to start Toolbox in Python 3.8 after October.

soininen avatar Aug 13 '24 05:08 soininen

In practice, does it mean that we'll need to uninstall and re-install flextool and spinetoolbox?

e-zaline avatar Aug 15 '24 07:08 e-zaline

Not everything, the repositories do not need changes. You need a new environment: conda create -n flextool python=3.xx conda activate flextool (You might need to either delete the old 'flextool' environment or call the new one something else)

And load packages to the new environment: conda install git cd Spine-Toolbox git pull python -m pip install -r requirements.txt

ArttuTupala avatar Aug 15 '24 07:08 ArttuTupala

Hi, I have installed Python 3.12.4 version in my system. Can I create the environment without specifying the Python version or do you recommend the version 3.12.4 while creating the environment?

It'd also be good to specify the new version in the documentation.

hbshrestha avatar Sep 23 '24 13:09 hbshrestha

On my side I have specified python=3.9, and it works fine. I agree that the documentation should be updated. image

e-zaline avatar Sep 27 '24 09:09 e-zaline

Edit: the documentation file is updated on GitHub (with version 3.11) but not the documentation. @ArttuTupala, whenever you have time, could you take care of refreshing the doc?

e-zaline avatar Sep 27 '24 09:09 e-zaline

Documentation has been updated. It currently says versions up-to 3.12 work, but actually also 3.13 should work since this week (Toolbox update). But I haven't tested, so I keep this open.

jkiviluo avatar Jan 10 '25 08:01 jkiviluo