avernusheros / avernus

0 stars 0 forks source link

Chart Selected Position #280

Closed wsteitz closed 11 years ago

wsteitz commented 11 years ago

Traceback (most recent call last): File "/home/bastian/workspace/avernus/avernus/gui/threads.py", line 36, in run for ret in self.generator(self.args): File "/home/bastian/workspace/avernus/avernus/controller/datasource_controller.py", line 115, in get_historical_prices low=qt[5], close=qt[6], volume=qt[7]) File "", line 4, in init File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/state.py", line 98, in initialize_instance return manager.original_init(_mixed[1:], *_kwargs) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative.py", line 1567, in _declarative_constructor setattr(self, k, kwargs[k]) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 155, in set instance_dict(instance), value, None) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 697, in set value = self.fire_replaceevent(state, dict, value, old, initiator) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 717, in fire_replaceevent value = fn(state, value, previous, initiator or self) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 67, in set sess._save_or_update_state(newvalue_state) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1369, in _save_or_update_state self._save_or_update_impl(state) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1628, in _save_or_update_impl self._update_impl(state) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1620, in _update_impl self._attach(state) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1656, in _attach state.session_id, self.hash_key)) InvalidRequestError: Object '<Fund at 0x2d253c0>' is already attached to session '1' (this is '2')

Tested with only one position so far as I try to find bugs and that is best with not too many positions


Imported from Launchpad using lp2gh.