Created
December 14, 2011 23:05
-
-
Save dckc/1479001 to your computer and use it in GitHub Desktop.
wierd sqlalchemy error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
********************************************************************** | |
File "heron_policy.py", line 77, in heron_policy | |
Failed example: | |
facreq.user.repository_authz() | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/lib/python2.6/doctest.py", line 1253, in __run | |
compileflags, 1) in test.globs | |
File "<doctest heron_policy[20]>", line 1, in <module> | |
facreq.user.repository_authz() | |
File "heron_policy.py", line 587, in repository_authz | |
self.training()) | |
File "heron_policy.py", line 304, in repository_authz | |
authz, _ = hr._pm.authz(badge.cn, badge.full_name()) | |
File "i2b2pm.py", line 90, in authz | |
me = ds.query(User).filter(User.user_id == uid).one() | |
File "/home/dconnolly/haenv/lib/python2.6/site-packages/SQLAlchemy-0.7.2-py2.6-linux-x86_64.egg/sqlalchemy/orm/session.py", line 917, in query | |
return self._query_cls(entities, self, **kwargs) | |
File "/home/dconnolly/haenv/lib/python2.6/site-packages/SQLAlchemy-0.7.2-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 106, in __init__ | |
self._set_entities(entities) | |
File "/home/dconnolly/haenv/lib/python2.6/site-packages/SQLAlchemy-0.7.2-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 113, in _set_entities | |
entity_wrapper(self, ent) | |
File "/home/dconnolly/haenv/lib/python2.6/site-packages/SQLAlchemy-0.7.2-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 2853, in __init__ | |
"expected - got '%r'" % column | |
InvalidRequestError: SQL expression, column, or mapped entity expected - got '<class 'i2b2pm.User'>' | |
********************************************************************** | |
File "heron_policy.py", line 86, in heron_policy | |
Failed example: | |
exreq.user.repository_authz() | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/lib/python2.6/doctest.py", line 1253, in __run | |
compileflags, 1) in test.globs | |
File "<doctest heron_policy[24]>", line 1, in <module> | |
exreq.user.repository_authz() | |
File "heron_policy.py", line 587, in repository_authz | |
self.training()) | |
File "heron_policy.py", line 304, in repository_authz | |
authz, _ = hr._pm.authz(badge.cn, badge.full_name()) | |
File "i2b2pm.py", line 90, in authz | |
me = ds.query(User).filter(User.user_id == uid).one() | |
File "/home/dconnolly/haenv/lib/python2.6/site-packages/SQLAlchemy-0.7.2-py2.6-linux-x86_64.egg/sqlalchemy/orm/session.py", line 917, in query | |
return self._query_cls(entities, self, **kwargs) | |
File "/home/dconnolly/haenv/lib/python2.6/site-packages/SQLAlchemy-0.7.2-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 106, in __init__ | |
self._set_entities(entities) | |
File "/home/dconnolly/haenv/lib/python2.6/site-packages/SQLAlchemy-0.7.2-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 113, in _set_entities | |
entity_wrapper(self, ent) | |
File "/home/dconnolly/haenv/lib/python2.6/site-packages/SQLAlchemy-0.7.2-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 2853, in __init__ | |
"expected - got '%r'" % column | |
InvalidRequestError: SQL expression, column, or mapped entity expected - got '<class 'i2b2pm.User'>' | |
********************************************************************** | |
1 items had failures: | |
2 of 31 in heron_policy | |
***Test Failed*** 2 failures. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you ever resolve this issue?