from prescient_sdk.client import PrescientClient
Traceback (most recent call last):
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "/Applications/QGIS.app/Contents/MacOS/lib/python3.9/qgis/utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/prescient_sdk/client.py", line 14, in <module>
class PrescientClient:
File "/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/prescient_sdk/client.py", line 46, in PrescientClient
env_file: str | Path | None = None,
TypeError: unsupported operand type(s) for |: 'type' and 'type'
I believe the required Python version is actually 3.10+ (not 3.9+ as stated), because
|operator in type hints was added at 3.10. Attempting to implement the sdk in QGIS with Python 3.9 results in: