Some of these images use Python 3.9 (e.g. ml) and in the Python SDK, the | operator is used in type hints, but this wasn't implemented until Python 3.10: https://peps.python.org/pep-0604/
This results in the following error when trying to use these master images:
Traceback (most recent call last):
File "/opt/code/test_star_model.py", line 1, in <module>
from flame.star import StarModel, StarAnalyzer, StarAggregator
File "/usr/local/lib/python3.9/site-packages/flame/star/__init__.py", line 1, in <module>
from flame.star.star_model import StarModel
File "/usr/local/lib/python3.9/site-packages/flame/star/star_model.py", line 4, in <module>
from flamesdk import FlameCoreSDK
File "/usr/local/lib/python3.9/site-packages/flamesdk/__init__.py", line 1, in <module>
from flamesdk.flame_core import FlameCoreSDK
File "/usr/local/lib/python3.9/site-packages/flamesdk/flame_core.py", line 14, in <module>
from flamesdk.resources.rest_api import FlameAPI
File "/usr/local/lib/python3.9/site-packages/flamesdk/resources/rest_api.py", line 17, in <module>
class FlameAPI:
File "/usr/local/lib/python3.9/site-packages/flamesdk/resources/rest_api.py", line 20, in FlameAPI
data_client: DataApiClient | str,
TypeError: unsupported operand type(s) for |: 'type' and 'type'
Some of these images use Python 3.9 (e.g. ml) and in the Python SDK, the
|operator is used in type hints, but this wasn't implemented until Python 3.10: https://peps.python.org/pep-0604/This results in the following error when trying to use these master images: