From e8981abef28cfd4d185bd48652322e52b83dce99 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Sat, 4 Apr 2020 13:13:05 +0000 Subject: [PATCH] fix bus error for py3 client --- python/paddle_serving_client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle_serving_client/__init__.py b/python/paddle_serving_client/__init__.py index f3d6a9a6..ef1c2bfb 100644 --- a/python/paddle_serving_client/__init__.py +++ b/python/paddle_serving_client/__init__.py @@ -93,7 +93,7 @@ class Client(object): lib_path = os.path.dirname(paddle_serving_client.__file__) client_path = os.path.join(lib_path, 'serving_client.so') lib_path = os.path.join(lib_path, 'lib') - os.popen('patchelf --set-rpath {} {}'.format(lib_path, client_path)) + os.system('patchelf --set-rpath {} {}'.format(lib_path, client_path)) def load_client_config(self, path): from .serving_client import PredictorClient -- GitLab