lhotari opened a new issue, #20314:
URL: https://github.com/apache/pulsar/issues/20314
The python tests seem to break because of Python 2.7 compatibility issues
```
======================================================================
ERROR: test_python_instance (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_python_instance
Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python2.7/unittest/loader.py", line 232, 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 44, in <module>
import state_context
File
"/pulsar/pulsar-functions/instance/target/python-instance/state_context.py",
line 26, in <module>
from bookkeeper import admin, kv
File
"/usr/local/lib/python2.7/dist-packages/bookkeeper/admin/__init__.py", line 15,
in <module>
from bookkeeper.admin.client import Client
File "/usr/local/lib/python2.7/dist-packages/bookkeeper/admin/client.py",
line 20, in <module>
from bookkeeper import types
File "/usr/local/lib/python2.7/dist-packages/bookkeeper/types.py", line
27, in <module>
from bookkeeper.common.protobuf_helpers import get_messages
File
"/usr/local/lib/python2.7/dist-packages/bookkeeper/common/protobuf_helpers.py",
line 18, in <module>
from collections.abc import Mapping
ImportError: No module named abc
```
it seems to be related to https://github.com/apache/bookkeeper/pull/3875
changes.
@zymap do you have a solution for fixing the Python tests in branch-2.10?
--
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]