-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NoneType' object has no attribute 'coroutine' #10
Comments
One step further: [root@cns-ui-prg001 consul-api]# /usr/local/bin/consulate kv get test but backup: [root@server consul-api]# /usr/local/bin/consulate kv backup /opt/backup.dump |
you need to have Tornado: |
The requirements.txt file in master doesn't list tornado, but the .20 version I installed on my Ubuntu 14.04 box with python 2.7 contains:
Which produces the following when I run pip install -r against it:
Whereas if I make the file simply:
it works fine. |
This was a problem with the distribution of 0.2.0. 0.3.0 will be out today. |
CentOS 65 with Python 3.3.5 (sandbox) or 2.7.6 (virtualenv)
(consulate) [root@cns-ui-prg001 consul-api]# python --version
Python 3.3.5
(consulate) [root@cns-ui-prg001 consul-api]# pip install consulate
Downloading/unpacking consulate
Downloading consulate-0.2.0.tar.gz
Running setup.py (path:/tmp/pip_build_root/consulate/setup.py) egg_info for package consulate
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/local/lib/python3.3/site-packages (from consulate)
Installing collected packages: consulate
Running setup.py install for consulate
Successfully installed consulate
Cleaning up...
(consulate) [root@cns-ui-prg001 consul-api]# consulate -v
Traceback (most recent call last):
File "/usr/local/bin/consulate", line 9, in
load_entry_point('consulate==0.2.0', 'console_scripts', 'consulate')()
File "/usr/local/lib/python3.3/site-packages/setuptools-7.0-py3.3.egg/pkg_resources.py", line 339, in load_entry_point
File "/usr/local/lib/python3.3/site-packages/setuptools-7.0-py3.3.egg/pkg_resources.py", line 2470, in load_entry_point
File "/usr/local/lib/python3.3/site-packages/setuptools-7.0-py3.3.egg/pkg_resources.py", line 2184, in load
File "/usr/local/lib/python3.3/site-packages/consulate/init.py", line 7, in
from consulate.api import Consulate
File "/usr/local/lib/python3.3/site-packages/consulate/api.py", line 10, in
from consulate import adapters
File "/usr/local/lib/python3.3/site-packages/consulate/adapters.py", line 59, in
class TornadoRequest(Request):
File "/usr/local/lib/python3.3/site-packages/consulate/adapters.py", line 66, in TornadoRequest
@gen.coroutine
AttributeError: 'NoneType' object has no attribute 'coroutine'
The text was updated successfully, but these errors were encountered: