File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
images/pulsar-functions-python-runner Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -44,5 +44,8 @@ RUN rm -rf /pulsar/instances/python-instance/pulsar/ \
4444USER $USER
4545# a temp solution from https://github.com/apache/pulsar/pull/15846 to fix python protobuf version error
4646RUN pip3 install protobuf==3.20.2 --user
47+ # a temporary fix for https://github.com/apache/pulsar/pull/24544, it requires the protobuf version to be 6.31.1
48+ RUN grep -q 'from google.protobuf import runtime_version as _runtime_version' /pulsar/instances/python-instance/Function_pb2.py && \
49+ pip install protobuf==6.31.1 || true
4750# to make the python runner could print json logs
4851RUN pip3 install python-json-logger --user
Original file line number Diff line number Diff line change @@ -66,5 +66,8 @@ WORKDIR /pulsar
6666USER $USER
6767# a temp solution from https://github.com/apache/pulsar/pull/15846 to fix python protobuf version error
6868RUN pip3 install protobuf==3.20.2 --user
69+ # a temporary fix for https://github.com/apache/pulsar/pull/24544, it requires the protobuf version to be 6.31.1
70+ RUN grep -q 'from google.protobuf import runtime_version as _runtime_version' /pulsar/instances/python-instance/Function_pb2.py && \
71+ pip install protobuf==6.31.1 || true
6972# to make the python runner could print json logs
7073RUN pip3 install python-json-logger --user
You can’t perform that action at this time.
0 commit comments