joshuaboshi

http://stackoverflow.com/questions/12134341/sqlalchemy-core-

Aug 27th, 2012
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1597, in _execute_context
  3. conn = self.__connection
  4. AttributeError: 'Connection' object has no attribute '_Connection__connection'
  5.  
  6. During handling of the above exception, another exception occurred:
  7.  
  8. Traceback (most recent call last):
  9. File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1599, in _execute_context
  10. conn = self._revalidate_connection()
  11. File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1023, in _revalidate_connection
  12. raise exc.ResourceClosedError("This Connection is closed")
  13. sqlalchemy.exc.ResourceClosedError: This Connection is closed
  14.  
  15. The above exception was the direct cause of the following exception:
  16.  
  17. Traceback (most recent call last):
  18. File "/usr/local/lib/python3.2/dist-packages/cherrypy/_cprequest.py", line 656, in respond
  19. response.body = self.handler()
  20. File "/usr/local/lib/python3.2/dist-packages/cherrypy/lib/encoding.py", line 188, in __call__
  21. self.body = self.oldhandler(*args, **kwargs)
  22. File "/usr/local/lib/python3.2/dist-packages/cherrypy/_cpdispatch.py", line 34, in __call__
  23. return self.callable(*self.args, **self.kwargs)
  24. File "/project/trunk/lib/server.py", line 138, in __call__
  25. return json.dumps(result, cls = JsonEncoder).encode('utf-8')
  26. File "/usr/lib/python3.2/json/__init__.py", line 233, in dumps
  27. **kw).encode(obj)
  28. File "/usr/lib/python3.2/json/encoder.py", line 188, in encode
  29. chunks = self.iterencode(o, _one_shot=True)
  30. File "/usr/lib/python3.2/json/encoder.py", line 246, in iterencode
  31. return _iterencode(o, 0)
  32. File "/project/trunk/lib/server.py", line 44, in default
  33. return obj.jsonencode()
  34. File "/project/trunk/model/__init__.py", line 324, in jsonencode
  35. result[attrname] = getattr(self, attrname, None)
  36. File "/project/trunk/model/__init__.py", line 215, in __getattr__
  37. result = lazygetter()
  38. File "/project/trunk/model/sale.py", line 48, in get_description
  39. return self.load_item('sale.getTags', tagTypeName = 'manufacturer')
  40. File "/project/trunk/lib/db/__init__.py", line 438, in load_item
  41. return self.db.invoke(*args, **kwargs).fetchone()[0]
  42. File "/project/trunk/lib/db/__init__.py", line 216, in invoke
  43. result = self.conn.execute(query, **kwargs)
  44. File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1405, in execute
  45. params)
  46. File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1582, in _execute_text
  47. statement, parameters
  48. File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1605, in _execute_context
  49. None, None)
  50. File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1783, in _handle_dbapi_exception
  51. from e
  52. sqlalchemy.exc.StatementError: This Connection is closed (original cause: sqlalchemy.exc.ResourceClosedError: This Connection is closed) 'select "sale"."getTags"("pTagTypeName" := %(tagTypeName)s);' [{'tagTypeName': 'manufacturer'}]
Add Comment
Please, Sign In to add comment