Skip to content

Commit

Permalink
Add missing lib instrunction for pulsar-ml-admin tool (apache#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhabalia authored Aug 22, 2017
1 parent 54ad999 commit 29c705f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions bin/pulsar-managed-ledger-admin
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@

import argparse
import traceback
from google.protobuf.text_format import Merge
from google.protobuf.text_format import MessageToString
import sys

from proto import MLDataFormats_pb2
try:
from google.protobuf.text_format import Merge
from google.protobuf.text_format import MessageToString
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
Expand Down

0 comments on commit 29c705f

Please sign in to comment.