kragniz / python-etcd3

Python client for the etcd API v3
Apache License 2.0
430 stars 184 forks source link

import etcd3 error #1149

Closed songlin51 closed 4 years ago

songlin51 commented 4 years ago

python 2.7.12 run import etcd3 An error:

File "xx.py", line 10, in import etcd3 File "/Library/Python/2.7/site-packages/etcd3/init.py", line 4, in from etcd3.client import Etcd3Client File "/Library/Python/2.7/site-packages/etcd3/client.py", line 13, in import etcd3.locks as locks File "/Library/Python/2.7/site-packages/etcd3/locks.py", line 3, in import tenacity File "/Library/Python/2.7/site-packages/tenacity/init.py", line 504, in from tenacity.tornadoweb import TornadoRetrying File "/Library/Python/2.7/site-packages/tenacity/tornadoweb.py", line 23, in from tornado import gen File "/Library/Python/2.7/site-packages/tornado-6.0.3-py2.7-macosx-10.14-intel.egg/tornado/gen.py", line 126 def _value_from_stopiteration(e: Union[StopIteration, "Return"]) -> Any: ^ SyntaxError: invalid syntax

I don't know what the question is, hope to answer it thanks

songlin51 commented 4 years ago

I performed PIP uninstall tornado and now it is normal. It should be version compatibility problem. Thanks