docker环境下,http服务启动 失败
Created by: BeyondYourself
Traceback (most recent call last): File "OCRService.py", line 34, in <module> image_service.run_web_service() File "/usr/local/lib/python3.7/site-packages/paddle_serving_server/web_service.py", line 119, in run_web_service self.app_instance.run(host="0.0.0.0", AttributeError: 'OCRService' object has no attribute 'app_instance'
我的模型已经转换为paddleServing模式;
环境paddle1.8.1 python3.7 docker下启动服务报上面的异常
其中的代码第34行是:
image_service.run_web_service()
第二个问题:如果使用RPC服务启动的时候总是会出现 File "OCRService.py", line 34, in image_service.run_rpc_service() File "/usr/local/lib/python3.7/site-packages/paddle_serving_server/web_service.py", line 97, in run_rpc_service localIP = socket.gethostbyname(socket.gethostname()) socket.gaierror: [Errno -3] Temporary failure in name resolution
修改了host和各种配置文件还是没有生效,求教一下大家怎么解决