etcd3 package incompatible with protobuf 4.x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tooz |
Confirmed
|
Medium
|
Stephen Finucane |
Bug Description
This isn't so much an issue with tooz as with the etcd3 dependency. The etcd3-based tests are currently failing with the following error message:
Failed to import test module: tooz.tests.
Traceback (most recent call last):
File "/usr/lib/
module = self._get_
File "/usr/lib/
File "/home/
import tooz.drivers.etcd3 as etcd3_driver
File "/home/
import etcd3
File "/home/
import etcd3.etcdrpc as etcdrpc
File "/home/
from .rpc_pb2 import *
File "/home/
from etcd3.etcdrpc import kv_pb2 as kv__pb2
File "/home/
type=None),
File "/home/
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_
Clearly something needs to be fixed in etcd3 itself but etcd3 is unmaintained [1] and the driver itself has been deprecated in tooz [2][3]. We probably want to cap protobuf<4.0 until we can finally remove this driver.
[1] https:/
[2] http://
[3] https:/
Changed in python-tooz: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Stephen Finucane (stephenfinucane) |