Problems sqlalchemy

Bug #1361212 reported by Diego on 2014-08-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wiithon
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/share/wiithon/gui.py", line 1420, in on_tv_partitions_cursor_changed
    self.sel_parti.obj = self.getBuscarParticion(self.lParti, self.sel_parti.clave)
  File "/usr/share/wiithon/gui.py", line 1379, in getBuscarParticion
    encontrado = (particion.device == device)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 316, in __get__
    return self.impl.get(instance_state(instance), dict_)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 611, in get
    value = callable_(state, passive)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/state.py", line 380, in __call__
    self.manager.deferred_scalar_loader(self, toload)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 601, in load_scalar_attributes
    only_load_props=attribute_names)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 226, in load_on_ident
    return q.one()
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2310, in one
    ret = list(self)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2353, in __iter__
    return self._execute_and_instances(context)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2366, in _execute_and_instances
    close_with_result=True)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2357, in _connection_from_session
    **kw)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 799, in connection
    close_with_result=close_with_result)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 803, in _connection_for_bind
    return self.transaction._connection_for_bind(engine)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 282, in _connection_for_bind
    self._assert_active()
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 194, in _assert_active
    % self._rollback_exception
InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (OperationalError) database is locked u'INSERT INTO juego (idgame, title, size, "idParticion") VALUES (?, ?, ?, ?)' (u'SV4P8P', u'Virtua Tennis 4', 1.466797, 1)

summary: - Traceback (most recent call last): File "/usr/share/wiithon/gui.py",
- line 1420, in on_tv_partitions_cursor_changed self.sel_parti.obj =
- self.getBuscarParticion(self.lParti, self.sel_parti.clave) File
- "/usr/share/wiithon/gui.py", line 1379, in getBuscarParticion
- encontrado = (particion.device == device) File "/usr/lib/python2.7
- /dist-packages/sqlalchemy/orm/attributes.py", line 316, in __get__
- return self.impl.get(instance_state(instance), dict_) File
- "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line
- 611, in get value = callable_(state, passive) File
- "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/state.py", line 380, in
- __call__ self.manager.deferred_scalar_loader(self, toload) File
- "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 601,
- in load_scalar_attributes only_load_props=attribute_names) File
- "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 226,
- in load_on_ident return q.one() File "/usr/lib/python2.7/dist-
- packages/sqlalchemy/orm/query.py", line 2310, in one ret =
- list(self) File "/usr/lib/python2.7/dist-
- packages/sqlalchemy/orm/query.py", line 2353, in __iter__ return
- self._execute_and_instances(context) File "/usr/lib/python2.7/dist-
- packages/sqlalchemy/orm/query.py", line 2366, in _execute_and_instances
- close_with_result=True) File "/usr/lib/python2.7/dist-
- packages/sqlalchemy/orm/query.py", line 2357, in
- _connection_from_session **kw) File "/usr/lib/python2.7/dist-
- packages/sqlalchemy/orm/session.py", line 799, in connection
- close_with_result=close_with_result) File "/usr/lib/python2.7/dist-
- packages/sqlalchemy/orm/session.py", line 803, in _connection_for_bind
- return self.transaction._connection_for_bind(engine) File
- "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 282,
- in _connection_for_bind self._assert_active() File
- "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 194,
- in _assert_active % self._rollback_exception InvalidRequestError:
- This Session's transaction has been rolled back due to a previous
- exception during flush. To begin a new transaction with this Session,
- first issue Session.rollback(). Original exception was:
- (OperationalError) database is locked u'INSERT INTO juego (idgame,
- title, size, "idParticion") VALUES (?, ?, ?, ?)' (u'SV4P8P', u'Virtua
- Tennis 4', 1.466797, 1)
+ Problems sqlalchemy
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers