(.env) ➜ kubeflow git:(master) ✗ python -c "import kubeflow.fairing; print(kubeflow.fairing.__version__)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/wyx/union_workspce/kubeflow/.env/lib/python3.9/site-packages/kubeflow/fairing/__init__.py", line 2, in <module>
from kubeflow.fairing.ml_tasks.tasks import TrainJob, PredictionEndpoint
File "/Users/wyx/union_workspce/kubeflow/.env/lib/python3.9/site-packages/kubeflow/fairing/ml_tasks/tasks.py", line 4, in <module>
from kubeflow.fairing.backends import KubernetesBackend
File "/Users/wyx/union_workspce/kubeflow/.env/lib/python3.9/site-packages/kubeflow/fairing/backends/__init__.py", line 1, in <module>
from kubeflow.fairing.backends.backends import *
File "/Users/wyx/union_workspce/kubeflow/.env/lib/python3.9/site-packages/kubeflow/fairing/backends/backends.py", line 8, in <module>
from kubeflow.fairing.builders.cluster import gcs_context
File "/Users/wyx/union_workspce/kubeflow/.env/lib/python3.9/site-packages/kubeflow/fairing/builders/cluster/gcs_context.py", line 6, in <module>
from kubeflow.fairing.kubernetes.manager import client, KubeManager
File "/Users/wyx/union_workspce/kubeflow/.env/lib/python3.9/site-packages/kubeflow/fairing/kubernetes/manager.py", line 6, in <module>
from kfserving import KFServingClient
File "/Users/wyx/union_workspce/kubeflow/.env/lib/python3.9/site-packages/kfserving/__init__.py", line 16, in <module>
from kfserving.kfmodel import KFModel
File "/Users/wyx/union_workspce/kubeflow/.env/lib/python3.9/site-packages/kfserving/kfmodel.py", line 24, in <module>
from ray.serve.utils import ServeRequest
ImportError: cannot import name 'ServeRequest' from 'ray.serve.utils' (/Users/wyx/union_workspce/kubeflow/.env/lib/python3.9/site-packages/ray/serve/utils.py)
/kind bug
What steps did you take and what happened: just use
pip install kubeflow-fairing
keep installing for a long time and it try to install same package with different version.
finally I try this
pip install kubeflow-fairing --use-deprecated=legacy-resolver
Then I run mnist e2e example py
What did you expect to happen:
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
python -c "import kubeflow.fairing; print(kubeflow.fairing.__version__)"
):Kubeflow version: (version number can be found at the bottom left corner of the Kubeflow dashboard):
Kubernetes version: (use
kubectl version
): k3s Kubernetes 1.19OS (e.g. from
/etc/os-release
): core run on osxk3s on centos7
NOTE: If you are using fair from master, please provide us the git commit hash.