Coordinate distributed systems.
Go to file
Stephen Finucane 8ca40da4bb Cap protobuf < 4.x
tooz doesn't use upper-constraints so we get the newest version of all
dependencies. It seems one of these, etcd3, is incompatible with recent
versions of protobuf.

  Failed to import test module: tooz.tests.drivers.test_etcd3
  Traceback (most recent call last):
    File "/usr/lib/python3.7/unittest/", line 436, in _find_test_path
      module = self._get_module_from_name(name)
    File "/usr/lib/python3.7/unittest/", line 377, in _get_module_from_name
    File "/home/zuul/src/", line 22, in <module>
      import tooz.drivers.etcd3 as etcd3_driver
    File "/home/zuul/src/", line 18, in <module>
      import etcd3
    File "/home/zuul/src/", line 3, in <module>
      import etcd3.etcdrpc as etcdrpc
    File "/home/zuul/src/", line 1, in <module>
      from .rpc_pb2 import *
    File "/home/zuul/src/", line 16, in <module>
      from etcd3.etcdrpc import kv_pb2 as kv__pb2
    File "/home/zuul/src/", line 36, in <module>
    File "/home/zuul/src/", line 755, in __new__
  TypeError: Descriptors cannot not be created directly.
  If this call came from a 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).

The etcd3 dependency is only used for the etcd3 driver which was
deprecated in change Iff0cd3b51cfc45ecbddc831c55267e80e9c79cac. The
protobuf dependency is only used for etcd3. We can't outright remove the
etcd3 driver yet as it hasn't been long enough since we deprecated it.
That will happen soon enough though and until then we can simply cap
protobuf to an older version that is compatible with the most recent
etcd3 release.

While we're here, we also sync the lower boundaries in the docs
requirments and add some comments indicating where they come from/what
they're for.

Change-Id: I8d6647118be22b0ce55e01b7e5451612ebe30e73
Signed-off-by: Stephen Finucane <>
(cherry picked from commit e3de0e634a)
(cherry picked from commit 73dbe0e6fc)
2022-07-04 12:46:43 +01:00
doc Cap protobuf < 4.x 2022-07-04 12:46:43 +01:00
examples Remove six library 2020-07-01 15:56:53 +02:00
playbooks Unblock tooz gate 2019-05-10 20:02:04 +00:00
releasenotes Enable retries in redis driver 2021-11-16 17:17:29 +00:00
tools Implements Group API for the Consul driver 2020-06-15 11:24:49 -05:00
tooz Enable retries in redis driver 2021-11-16 17:17:29 +00:00
.coveragerc Fix coverage tests 2018-09-18 00:37:30 +00:00
.gitignore ignore reno generated artifacts 2020-03-25 13:17:59 +01:00
.gitreview Update .gitreview for stable/victoria 2020-09-11 21:04:17 +00:00
.stestr.conf Migrate to stestr 2018-09-18 00:37:30 +00:00
.zuul.yaml Implements Group API for the Consul driver 2020-06-15 11:24:49 -05:00
CONTRIBUTING.rst Add CONTRIBUTING.rst 2016-11-18 16:44:36 +08:00
LICENSE First commit of Tooz 2013-12-19 12:18:35 +01:00
README.rst Replace URLs with URLs 2019-05-22 14:58:13 +08:00
bindep.txt Install only needed packages 2016-09-22 10:20:50 +02:00
requirements.txt Retry on redis connection errors 2021-05-17 13:25:37 +02:00 Have examples run in the py27 environment and make them work 2014-09-19 11:57:56 -07:00 Simplify env list and test running 2017-06-09 18:09:31 +02:00 Implements Group API for the Consul driver 2020-06-15 11:24:49 -05:00 Switch tests to use latest etcd - 3.1.3 2017-03-14 15:17:42 +00:00
setup.cfg Cap protobuf < 4.x 2022-07-04 12:46:43 +01:00 Updated from global requirements 2015-09-17 12:17:45 +00:00
test-requirements.txt Use unittest.mock instead of third party mock 2020-05-15 18:30:01 +02:00
tox.ini Switch to Victoria tests 2020-05-14 13:13:57 +02:00



Latest Version


The Tooz project aims at centralizing the most common distributed primitives like group membership protocol, lock service and leader election by providing a coordination API helping developers to build distributed applications.

Join us