spine-tools / Spine-Toolbox

Spine Toolbox is an open source Python package to manage data, scenarios and workflows for modelling and simulation. You can have your local workflow, but work as a team through version control and SQL databases.
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
71 stars 17 forks source link

Windows pipx install broken? #2985

Open jkiviluo opened 3 days ago

jkiviluo commented 3 days ago

Tried to install Spine Toolbox on new Windows using Python 3.13 installed from an installer. I chose 3.13 since that's what Python's webpage is pushing and we don't say in our installation instructions to use an older one.

I had a Windows related problem first: adding python to the end of the path is not sufficient, since Windows 'app execution aliases' are picking up Python before it gets to the real python path. Had to move python up in the path (used setx PATH "full path string with folders moved around manually").

But then I got to try this:

python -m pipx install spinetoolbox

However it failed with:

C:\Users\prokjt>python -m pipx install spinetoolbox
Fatal error from pip prevented installation. Full pip output in file:
    C:\Users\prokjt\pipx\logs\cmd_2024-10-19_11.07.40_pip_errors.log

pip seemed to fail to build package:
    spinetoolbox

Some possibly relevant errors from pip install:
    ERROR: Cannot install spinetoolbox==0.8.2, spinetoolbox==0.8.3, spinetoolbox==0.8.4 and spinetoolbox==0.8.5 because these package versions have conflicting dependencies.
    ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Error installing spinetoolbox.

My next try was this, but it also fails:

C:\Users\prokjt>python -m pipx install spinetoolbox==0.8.5
Fatal error from pip prevented installation. Full pip output in file:
    C:\Users\prokjt\pipx\logs\cmd_2024-10-19_11.09.04_pip_errors.log

pip seemed to fail to build package:
    spinetoolbox==0.8.5

Some possibly relevant errors from pip install:
    ERROR: Ignored the following versions that require a different python version: 0.6.1 Requires-Python <3.9,>=3.6; 0.6.10 Requires-Python !=3.8.0,<3.9,>=3.7.1; 0.6.11 Requires-Python !=3.8.0,<3.9,>=3.7.1; 0.6.12 Requires-Python !=3.8.0,<3.9,>=3.7.1; 0.6.13 Requires-Python !=3.8.0,<3.10,>=3.7.1; 0.6.14 Requires-Python !=3.8.0,<3.10,>=3.7.1; 0.6.15 Requires-Python !=3.8.0,<3.10,>=3.7.1; 0.6.17 Requires-Python <3.12,>=3.8.1; 0.6.18 Requires-Python <3.12,>=3.8.1; 0.6.1a0 Requires-Python >=3.6, <3.9; 0.6.1a1 Requires-Python >=3.6, <3.9; 0.6.1a2 Requires-Python >=3.6, <3.9; 0.6.1a4 Requires-Python >=3.6, <3.9; 0.6.1a5 Requires-Python >=3.6, <3.9; 0.6.1a6 Requires-Python >=3.6, <3.9; 0.6.3 Requires-Python <3.9,>=3.6; 0.6.5 Requires-Python <3.9,>=3.7.1; 0.6.6 Requires-Python !=3.8.0,<3.9,>=3.7.1; 0.6.7 Requires-Python !=3.8.0,<3.9,>=3.7.1; 0.6.8 Requires-Python !=3.8.0,<3.9,>=3.7.1; 0.6.9 Requires-Python !=3.8.0,<3.9,>=3.7.1; 0.7.0 Requires-Python <3.12,>=3.8.1; 0.7.1 Requires-Python <3.12,>=3.8.1; 0.7.2 Requires-Python <3.12,>=3.8.1; 0.7.3 Requires-Python <3.12,>=3.8.1; 0.7.4 Requires-Python <3.12,>=3.8.1; 0.8.0 Requires-Python <3.12,>=3.8.1; 0.8.1 Requires-Python <3.12,>=3.8.1; 6.3.0 Requires-Python <3.11,>=3.6; 6.3.1 Requires-Python <3.11,>=3.6; 6.3.2 Requires-Python <3.11,>=3.6; 6.4.0.1 Requires-Python <3.12,>=3.7; 6.4.1 Requires-Python <3.12,>=3.7; 6.4.2 Requires-Python <3.12,>=3.7; 6.4.3 Requires-Python <3.12,>=3.7; 6.5.0 Requires-Python <3.12,>=3.7; 6.5.1 Requires-Python <3.12,>=3.7; 6.5.1.1 Requires-Python <3.12,>=3.7; 6.5.2 Requires-Python <3.12,>=3.7; 6.5.3 Requires-Python <3.12,>=3.7; 6.6.0 Requires-Python <3.13,>=3.8; 6.6.1 Requires-Python <3.13,>=3.8; 6.6.2 Requires-Python <3.13,>=3.8; 6.6.3 Requires-Python <3.13,>=3.8; 6.6.3.1 Requires-Python <3.13,>=3.8; 6.7.0 Requires-Python <3.13,>=3.9; 6.7.1 Requires-Python <3.13,>=3.9; 6.7.2 Requires-Python <3.13,>=3.9; 6.7.3 Requires-Python <3.13,>=3.9; 6.8.0 Requires-Python <3.13,>=3.9; 6.8.0.1 Requires-Python <3.13,>=3.9
    ERROR: Could not find a version that satisfies the requirement PySide6!=6.5.3,!=6.6.3,!=6.7.0,>=6.5.0 (from spinetoolbox) (from versions: none)
    ERROR: No matching distribution found for PySide6!=6.5.3,!=6.6.3,!=6.7.0,>=6.5.0

Error installing spinetoolbox from spec 'spinetoolbox==0.8.5'.
soininen commented 1 day ago

Looks like PySide6 is not yet ready for Python 3.13. There is nothing we can really do about it but wait... and hope that they get the Toolbox crashing bugs in PySide6 6.8.x fixed.

soininen commented 1 day ago

Looking at the issues we have with our dependencies and Python 3.13, maybe we should just say that we are not ready for it yet.