Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. sqlalchemy.exc.ProgrammingError
  2. ProgrammingError: (psycopg2.ProgrammingError) permission denied for relation usuarios_cota
  3. [SQL: 'SELECT usuarios_cota.id AS usuarios_cota_id, usuarios_cota.nome AS usuarios_cota_nome, usuarios_cota.celular AS usuarios_cota_celular, usuarios_cota.email AS usuarios_cota_email, usuarios_cota.senha AS usuarios_cota_senha, usuarios_cota."isRegistered" AS "usuarios_cota_isRegistered" \nFROM usuarios_cota \nWHERE usuarios_cota.email = %(email_1)s \n LIMIT %(param_1)s'] [parameters: {'email_1': u'vinicius@bigsp.com.br', 'param_1': 1}]
  4.  
  5. Traceback (most recent call last)
  6. File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2000, in __call__
  7. return self.wsgi_app(environ, start_response)
  8. File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1991, in wsgi_app
  9. response = self.make_response(self.handle_exception(e))
  10. File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1567, in handle_exception
  11. reraise(exc_type, exc_value, tb)
  12. File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1988, in wsgi_app
  13. response = self.full_dispatch_request()
  14. File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1641, in full_dispatch_request
  15. rv = self.handle_user_exception(e)
  16. File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1544, in handle_user_exception
  17. reraise(exc_type, exc_value, tb)
  18. File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1639, in full_dispatch_request
  19. rv = self.dispatch_request()
  20. File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1625, in dispatch_request
  21. return self.view_functions[rule.endpoint](**req.view_args)
  22. File "/home/vmesel/GitHub/cotatransporte/app/views.py", line 275, in cadastro
  23. user = UsuariosCota.query.filter_by(email=form.email.data).first()
  24. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2659, in first
  25. ret = list(self[0:1])
  26. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2457, in __getitem__
  27. return list(res)
  28. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2761, in __iter__
  29. return self._execute_and_instances(context)
  30. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2776, in _execute_and_instances
  31. result = conn.execute(querycontext.statement, self._params)
  32. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 914, in execute
  33. return meth(self, multiparams, params)
  34. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
  35. return connection._execute_clauseelement(self, multiparams, params)
  36. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
  37. compiled_sql, distilled_params
  38. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
  39. context)
  40. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
  41. exc_info
  42. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 202, in raise_from_cause
  43. reraise(type(exception), exception, tb=exc_tb, cause=cause)
  44. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
  45. context)
  46. File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 450, in do_execute
  47. cursor.execute(statement, parameters)
  48. ProgrammingError: (psycopg2.ProgrammingError) permission denied for relation usuarios_cota [SQL: 'SELECT usuarios_cota.id AS usuarios_cota_id, usuarios_cota.nome AS usuarios_cota_nome, usuarios_cota.celular AS usuarios_cota_celular, usuarios_cota.email AS usuarios_cota_email, usuarios_cota.senha AS usuarios_cota_senha, usuarios_cota."isRegistered" AS "usuarios_cota_isRegistered" \nFROM usuarios_cota \nWHERE usuarios_cota.email = %(email_1)s \n LIMIT %(param_1)s'] [parameters: {'email_1': u'vinicius@bigsp.com.br', 'param_1': 1}]
  49. The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
  50. To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
  51.  
  52. You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
  53.  
  54. dump() shows all variables in the frame
  55. dump(obj) dumps all that's known about the object
  56. Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement