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

BadYieldError using @relax decorator #1

Open
cjwebb opened this issue Jul 16, 2012 · 1 comment
Open

BadYieldError using @relax decorator #1

cjwebb opened this issue Jul 16, 2012 · 1 comment

Comments

@cjwebb
Copy link

cjwebb commented Jul 16, 2012

(Hopefully) quick question, that I have also put here http://stackoverflow.com/questions/11502802/badyielderror-in-tornado-gen-when-using-corduroy-couchdb-async-library

I receive a BadYieldError when running the code written in the Corduroy guide, and using the relaxed requesthandler.

Traceback (most recent call last):
File "c:\env\pymeals_tornado\lib\site-packages\tornado\web.py", line 1074, in wrapper
return method(self, args, *kwargs)
File "c:\env\pymeals_tornado\lib\site-packages\corduroy__init
.py", line 43, in r_e_l_a_x
return gen.engine(func)(_args, *_kwargs)
File "c:\env\pymeals_tornado\lib\site-packages\tornado\gen.py", line 107, in wrapper
runner.run()
File "c:\env\pymeals_tornado\lib\site-packages\tornado\gen.py", line 319, in run
yielded = self.gen.throw(*exc_info)
File "test.py", line 10, in get
doc = yield people_db.get(user_id)
BadYieldError: yielded unknown object <Document 65d936ee54417e46479a908f7a0038ef[2] {name:Colin}>

Is there some additional setup required, or am I missing something basic?
Pip freeze yields the following dependencies on a virtualevn python 2.7.2
CouchDB==0.8
certifi==0.0.8
chardet==1.0.1
corduroy==0.9.1
lettuce==0.1.35
lxml==2.3
nose==1.1.2
oauthlib==0.1.3
pyasn1==0.1.3
rsa==3.0.1
selenium==2.17.0
splinter==0.4.4
tornado==2.2.1

@paavopere
Copy link

See #5

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

No branches or pull requests

2 participants