Where did you encounter this bug?
Local machine (running in a container environment)
Describe the problem
The latest version of mlserver-mlflow (v1.7.0) requires mlflow >=2.19.0, but specifies it can be any version: see https://github.com/SeldonIO/MLServer/blob/master/runtimes/mlflow/pyproject.toml#L13
The reason it needs to be >=2.19.0 is because if not the error below will occur (in our case when running mlserver start in a model server) as the AnyType was added in 2.19.0 (see here and check out the blame which was added in this PR which will have been included only in the 2.19.0 release(see releases)
File "/app/.venv/lib/python3.10/site-packages/mlserver_mlflow/__init__.py", line 1, in <module>
from .runtime import MLflowRuntime
File "/app/.venv/lib/python3.10/site-packages/mlserver_mlflow/runtime.py", line 27, in <module>
from .metadata import (
File "/app/.venv/lib/python3.10/site-packages/mlserver_mlflow/metadata.py", line 3, in <module>
from mlflow.types.schema import (
ImportError: cannot import name 'AnyType' from 'mlflow.types.schema' (/app/.venv/lib/python3.10/site-packages/mlflow/types/schema.py)
I think all that is required is to change this line to be `mlflow = ">=2.19.0" as well as recreating the poetry.lock file and this should solve the issue
Where did you encounter this bug?
Local machine (running in a container environment)
Describe the problem
The latest version of mlserver-mlflow (v1.7.0) requires mlflow >=2.19.0, but specifies it can be any version: see https://github.com/SeldonIO/MLServer/blob/master/runtimes/mlflow/pyproject.toml#L13
The reason it needs to be >=2.19.0 is because if not the error below will occur (in our case when running
mlserver startin a model server) as the AnyType was added in 2.19.0 (see here and check out the blame which was added in this PR which will have been included only in the 2.19.0 release(see releases)I think all that is required is to change this line to be `mlflow = ">=2.19.0" as well as recreating the poetry.lock file and this should solve the issue