-
Notifications
You must be signed in to change notification settings - Fork 652
Description
我的版本:paddle-serving-app 0.9.0
paddle-serving-client 0.9.0
paddle-serving-server-gpu 0.9.0.post1028
paddlepaddle-gpu 2.4.2.post117
我想要采用PaddleRec与Milvus深度结合,进行电影推荐。看到官方教程,走的步骤。
首先执行python -m paddle_serving_client.convert --dirname ./movie_model/4/ --model_filename ./movie_model/4/rec_inference.pdmodel --params_filename ./movie_model/4/rec_inference.pdiparams得到的模型,然后执行python get_movie_vectors.py就会报错了:
python get_movie_vectors.py
/home/jmt/anaconda3/envs/milvus/lib/python3.9/site-packages/setuptools/command/easy_install.py:41: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
/home/jmt/anaconda3/envs/milvus/lib/python3.9/site-packages/pkg_resources/init.py:3147: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google')
.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace
. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/home/jmt/anaconda3/envs/milvus/lib/python3.9/site-packages/paddle_serving_client/httpclient.py:22: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
from collections import Iterable
failed to create predictor: Log_id: 0 Raise_msg: (NotFound) Cannot open file serving_server/model, please confirm whether the file is normal.
[Hint: Expected static_cast(fin.is_open()) == true, but received static_cast(fin.is_open()):0 != true:1.] (at /paddle/paddle/fluid/inference/api/analysis_predictor.cc:1901)
ClassName: LocalPredictor.load_model_config..create_predictor_check FunctionName: create_predictor_check
Killed