-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
When attempting to import (from label_studio_sdk import Client) the SDK in Python 3.9.6 (macOS 15.7.2) I get the following error:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
File "/Users/x/Code/y/venv/lib/python3.9/site-packages/label_studio_sdk/__init__.py", line 259, in <module>
from .client import AsyncLabelStudio, LabelStudio
File "/Users/x/Code/y/venv/lib/python3.9/site-packages/label_studio_sdk/client.py", line 3, in <module>
from .projects.client_ext import ProjectsClientExt, AsyncProjectsClientExt
File "/Users/x/Code/y/venv/lib/python3.9/site-packages/label_studio_sdk/projects/client_ext.py", line 7, in <module>
from label_studio_sdk.label_interface import LabelInterface
File "/Users/x/Code/y/venv/lib/python3.9/site-packages/label_studio_sdk/label_interface/__init__.py", line 1, in <module>
from .interface import LabelInterface
File "/Users/x/Code/y/venv/lib/python3.9/site-packages/label_studio_sdk/label_interface/interface.py", line 29, in <module>
from .control_tags import (
File "/Users/x/Code/y/venv/lib/python3.9/site-packages/label_studio_sdk/label_interface/control_tags.py", line 1107, in <module>
class CustomInterfaceTag(ControlTag):
File "/Users/x/Code/y/venv/lib/python3.9/site-packages/label_studio_sdk/label_interface/control_tags.py", line 1164, in CustomInterfaceTag
def _try_parse_json(self, outputs_str: str) -> dict | None:
Package info:
Name: label-studio-sdk
Version: 2.0.16
Summary:
Home-page:
Author:
Author-email:
License:
Location: /Users/x/Code/y/venv/lib/python3.9/site-packages
Requires: typing_extensions, appdirs, pydantic, ijson, requests, opencv-python-headless, urllib3, jsonschema, numpy, httpx, lxml, pydantic-core, requests-mock, xmljson, nltk, datamodel-code-generator, pandas, pyjwt, Pillow, jsf, ujson
Required-by:
Unfortunately union syntax (dict | None) requires Python 3.10+.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels