Advertisement
Guest User

Untitled

a guest
Dec 8th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/home/gather/Gather/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
  3. response = self.full_dispatch_request()
  4. File "/home/gather/Gather/local/lib/python2.7/site-packages/tingyun/armoury/ammunition/function_tracker.py", line 81, in literal_wrapper
  5. return wrapped(*args, **kwargs)
  6. File "/home/gather/Gather/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
  7. rv = self.handle_user_exception(e)
  8. File "/home/gather/Gather/local/lib/python2.7/site-packages/tingyun/armoury/ammunition/flask_tracker.py", line 59, in handle_exception_wrapper
  9. return wrapped(*args, **kwargs)
  10. File "/home/gather/Gather/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
  11. reraise(exc_type, exc_value, tb)
  12. File "/home/gather/Gather/local/lib/python2.7/site-packages/flask/app.py", line 1473, in full_dispatch_request
  13. rv = self.preprocess_request()
  14. File "/home/gather/Gather/local/lib/python2.7/site-packages/flask/app.py", line 1666, in preprocess_request
  15. rv = func()
  16. File "/home/gather/Gather/gather/app.py", line 67, in load_user
  17. g.user = get_current_user()
  18. File "/home/gather/Gather/gather/account/utils.py", line 44, in get_current_user
  19. user = Account.query.get(int(session["id"]))
  20. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 809, in get
  21. return loading.load_on_ident(self, key)
  22. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 230, in load_on_ident
  23. return q.one()
  24. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2348, in one
  25. ret = list(self)
  26. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2391, in __iter__
  27. return self._execute_and_instances(context)
  28. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2404, in _execute_and_instances
  29. close_with_result=True)
  30. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2395, in _connection_from_session
  31. **kw)
  32. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 843, in connection
  33. close_with_result=close_with_result)
  34. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 847, in _connection_for_bind
  35. return self.transaction._connection_for_bind(engine)
  36. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 315, in _connection_for_bind
  37. conn = bind.contextual_connect()
  38. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1698, in contextual_connect
  39. self.pool.connect(),
  40. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 324, in connect
  41. return _ConnectionFairy._checkout(self)
  42. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 608, in _checkout
  43. fairy = _ConnectionRecord.checkout(pool)
  44. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 425, in checkout
  45. rec = pool._do_get()
  46. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 928, in _do_get
  47. return self._create_connection()
  48. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 277, in _create_connection
  49. return _ConnectionRecord(self)
  50. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 401, in __init__
  51. exec_once(self.connection, self)
  52. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/event/attr.py", line 238, in exec_once
  53. self(*args, **kw)
  54. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/event/attr.py", line 247, in __call__
  55. fn(*args, **kw)
  56. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 156, in on_connect
  57. do_on_connect(conn)
  58. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 439, in on_connect
  59. fn(conn)
  60. File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 413, in on_connect
  61. extensions.register_type(extensions.UNICODE, conn)
  62. TypeError: argument 2 must be a connection, cursor or None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement