For newer Python features, is it recommended to build QGIS from source?
On Ubuntu, I was trying to run a script written for py3.14, but that failed with:
ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)
Question: if one is comfortable compiling a python interpreter from source, is it generally safe to build QGIS from source as well? Asking to avoid a rabbit hole.
Otherwise, thanks for the product and your time.
Tried to point to a newer installation...
===
USE_PY=/home/smitty1/.local/share/uv/python/cpython-3.14.0-linux-x86_64-gnu/bin/python3.14
export PATH=$USE_PY:$PATH
qgis &
...but that was also rejected:
===
Couldn't load SIP module.
Python support will be disabled.
[stuff]
QGIS died on signal 11
REALLY BAD FIX:
===
This appears to be working well enough for my little script, but is clearly not what you want to do in the Real World:
from enum import Enum as StrEnum #appease QGIS