Skip to content

Issue on page /installation.html #32

Description

@darrenwiens

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:

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions