Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Python version for FlexTool #218

Open
e-zaline opened this issue Aug 12, 2024 · 7 comments · Fixed by #220
Open

Python version for FlexTool #218

e-zaline opened this issue Aug 12, 2024 · 7 comments · Fixed by #220

Comments

@e-zaline
Copy link
Collaborator

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?

@soininen
Copy link
Collaborator

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.

@ArttuTupala ArttuTupala linked a pull request Aug 14, 2024 that will close this issue
@e-zaline
Copy link
Collaborator Author

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

@ArttuTupala
Copy link
Collaborator

ArttuTupala commented Aug 15, 2024

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

@hbshrestha
Copy link

hbshrestha commented Sep 23, 2024

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.

@e-zaline
Copy link
Collaborator Author

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

@e-zaline
Copy link
Collaborator Author

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 e-zaline reopened this Sep 27, 2024
@jkiviluo
Copy link
Member

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants