Skip to content
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

mock for tornado 'gen' generator #1

Merged
merged 1 commit into from
Jul 30, 2014
Merged

mock for tornado 'gen' generator #1

merged 1 commit into from
Jul 30, 2014

Conversation

baijum
Copy link
Contributor

@baijum baijum commented Jul 24, 2014

I am getting this error when running consulate in my system, please check the patch.

$ consulate
Traceback (most recent call last):
  File "/usr/local/bin/consulate", line 9, in <module>
    load_entry_point('consulate==0.2.0', 'console_scripts', 'consulate')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/consulate/__init__.py", line 7, in <module>
    from consulate.api import Consulate
  File "/usr/local/lib/python2.7/dist-packages/consulate/api.py", line 10, in <module>
    from consulate import adapters
  File "/usr/local/lib/python2.7/dist-packages/consulate/adapters.py", line 59, in <module>
    class TornadoRequest(Request):
  File "/usr/local/lib/python2.7/dist-packages/consulate/adapters.py", line 66, in TornadoRequest
    @gen.coroutine
AttributeError: 'NoneType' object has no attribute 'coroutine'

@gmr
Copy link
Owner

gmr commented Jul 30, 2014

Thanks!

gmr added a commit that referenced this pull request Jul 30, 2014
mock for tornado 'gen' generator
@gmr gmr merged commit 23723de into gmr:master Jul 30, 2014
@jsok jsok mentioned this pull request Nov 4, 2014
gmr pushed a commit that referenced this pull request Jul 16, 2015
Adding run-once functionality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants