mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 11:19:50 +03:00
Fix tests using updated protos generated with libprotoc 3.21.9. Resolves error with py3-protobuf 5.29.4. Example error: ``` ====================================================================== ERROR: axolotl.tests.groups.test_groupcipher (unittest.loader._FailedTest.axolotl.tests.groups.test_groupcipher) ---------------------------------------------------------------------- ImportError: Failed to import test module: axolotl.tests.groups.test_groupcipher Traceback (most recent call last): File "/usr/lib/python3.12/unittest/loader.py", line 396, in _find_test_path module = self._get_module_from_name(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [...] File "/usr/lib/python3.12/site-packages/google/protobuf/descriptor.py", line 621, in __new__ _message.Message._CheckCalledFromGeneratedFile() TypeError: Descriptors cannot 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). More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates ``` |
||
---|---|---|
.. | ||
APKBUILD | ||
regenerate-protos.patch |