Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions CLI/actioner/sonic_cli_mclag.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ def mclag_show_mclag_interface(args):

else:
#error response
print api_response
print api_response.error_message()
print(api_response)
print(api_response.error_message())

return

Expand Down Expand Up @@ -406,8 +406,8 @@ def mclag_show_mclag_brief(args):

else:
#error response
print api_response
print api_response.error_message()
print(api_response)
print(api_response.error_message())

return

Expand All @@ -425,7 +425,7 @@ def run(func, args):
return

except Exception as e:
print sys.exc_value
print(sys.exc_value)
return


Expand Down
6 changes: 6 additions & 0 deletions CLI/klish/patches/klish-2.1.4/plugins/clish/call_pyobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@
#include <Python.h>
#include <stdarg.h>
#include <malloc.h>
#include <dlfcn.h>

void pyobj_init() {
void *python_lib = dlopen("libpython3.11.so.1.0", RTLD_NOW | RTLD_GLOBAL);
if (!python_lib) {
fprintf(stderr, "Failed to load Python library: %s\n", dlerror());
}

Py_Initialize();
}

Expand Down
Loading