Open jkiviluo opened 1 month ago
Tried with Python 3.11.9 and it works fine.
Apparently psycopg2
nowadays requires a C compiler to install which I guess is a no-go even if they fix the build on Python 3.13. We could switch to the precompiled psycopg2-binary
module instead.
(psycopg2
is used by SqlAlchemy to access postgresql databases, which we support in Importer and Exporter)
Looks like psycopg2-binary
has the same build issue on Windows as psycopg2
. Not sure how to proceed.
psycopg2
and psycopg2-binary
install on my Windows 10 + Python 3.8 system without problems. Could this be a Windows 11 issue?
I think I get it now: psycopg2
still does not have built packages for Windows + Python 3.13. Also, the packages are missing for Python 3.8 which makes our unit test GitHub actions fail.
Ok, I also wondered why my attempt to use psycopg2-binary failed. Does it mean that we just need to say not to use 3.13 for now?
Does it mean that we just need to say not to use 3.13 for now?
Yes. I've now set the required Python to be between 3.9 and 3.13 for the time being. We should lift the upper bound once psycopg2
and PySide6
have working packages for 3.13.
Same thing in https://github.com/spine-tools/Spine-Toolbox/issues/2985
python -m pip install -r requirements.txt
on Windows 11, Python 3.13Fails with