Add missing lib instrunction for pulsar-ml-admin tool
import argparse
import traceback
+import sys
+try:
from google.protobuf.text_format import Merge
from google.protobuf.text_format import MessageToString
-import sys
+except Exception as missingLib:
+ sys.exit("You need python protobuf library. Get it from: pip install protobuf")
+try:
from proto import MLDataFormats_pb2
+except Exception as missingLib:
+ sys.exit("Incompatible proto/MLDataFormats_pb2.py. Regenerate using: "+
+ "protoc -I=${PULSAR_PATH}/managed-ledger/src/main/proto --python_out=${PULSAR_PATH}/bin/proto/ "+
+ "${PULSAR_PATH}/managed-ledger/src/main/proto/MLDataFormats.proto")
try:
from kazoo.client import KazooClient
