zymap commented on PR #15827:
URL: https://github.com/apache/pulsar/pull/15827#issuecomment-1140635457

   Something wrong with bookkeeper client:
   ======================================================================
   ERROR: test_python_instance (unittest.loader._FailedTest)
   ----------------------------------------------------------------------
   ImportError: Failed to import test module: test_python_instance
   Traceback (most recent call last):
     File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
       module = self._get_module_from_name(name)
     File "/usr/lib/python3.8/unittest/loader.py", line 377, in 
_get_module_from_name
       __import__(name)
     File 
"/pulsar/pulsar-functions/instance/target/python-instance/tests/test_python_instance.py",
 line 28, in <module>
       from python_instance import InstanceConfig
     File 
"/pulsar/pulsar-functions/instance/target/python-instance/python_instance.py", 
line 43, in <module>
       import state_context
     File 
"/pulsar/pulsar-functions/instance/target/python-instance/state_context.py", 
line 25, in <module>
       from bookkeeper import admin, kv
     File 
"/usr/local/lib/python3.8/dist-packages/bookkeeper/admin/__init__.py", line 15, 
in <module>
       from bookkeeper.admin.client import Client
     File "/usr/local/lib/python3.8/dist-packages/bookkeeper/admin/client.py", 
line 20, in <module>
       from bookkeeper import types
     File "/usr/local/lib/python3.8/dist-packages/bookkeeper/types.py", line 
22, in <module>
       from bookkeeper.proto import common_pb2
     File 
"/usr/local/lib/python3.8/dist-packages/bookkeeper/proto/common_pb2.py", line 
35, in <module>
       _descriptor.FieldDescriptor(
     File 
"/usr/local/lib/python3.8/dist-packages/google/protobuf/descriptor.py", line 
560, in __new__
       _message.Message._CheckCalledFromGeneratedFile()
   TypeError: Descriptors cannot not be created directly.
   If this call came from a _pb2.py file, your generated code is out of date 
and must be regenerated with protoc >= 3.19.0.
   If you cannot immediately regenerate your protos, some other possible 
workarounds are:
    1. Downgrade the protobuf package to 3.20.x or lower.
    2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use 
pure-Python parsing and will be much slower).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to