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
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