From 8cf1359516fe42d88c979710eb90226d7f8da0b2 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 acece304..39e06ef1 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