Created
April 21, 2014 15:53
-
-
Save leonardt/11146790 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception in thread opentuner_driver: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner | |
self.run() | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ctree-0.95a-py2.7.egg/ctree/opentuner/driver.py", line 83, in run | |
TuningRunMain(interface, tuner_args).main() | |
File "/Users/leonardtruong/projects/stencil_code/opentuner/tuningrunmain.py", line 184, in main | |
self.commit(force=True) | |
File "/Users/leonardtruong/projects/stencil_code/opentuner/tuningrunmain.py", line 165, in commit | |
self.session.commit() | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 765, in commit | |
self.transaction.commit() | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 368, in commit | |
self._assert_active(prepared_ok=True) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 210, 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: Timer instance has no attribute '__float__' (original cause: AttributeError: Timer instance has no attribute '__float__') u'INSERT INTO result (configuration_id, machine_id, input_id, tuning_run_id, collection_date, collection_cost, state, time, accuracy, energy, size, confidence, was_new_best) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' [{'size': None, 'confidence': None, 'collection_date': datetime.datetime(2014, 4, 21, 8, 51, 33, 305553), 'was_new_best': None, 'energy': None, 'collection_cost': 6.070581912994385, 'configuration_id': 1, 'input_id': 1, 'time': <stencil_code.stencil_kernel.Timer instance at 0x10db94998>, 'machine_id': 1, 'tuning_run_id': 5, 'accuracy': None}] | |
Exception in thread opentuner_driver: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner | |
self.run() | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ctree-0.95a-py2.7.egg/ctree/opentuner/driver.py", line 83, in run | |
TuningRunMain(interface, tuner_args).main() | |
File "/Users/leonardtruong/projects/stencil_code/opentuner/tuningrunmain.py", line 174, in main | |
self.search_driver.main() | |
File "/Users/leonardtruong/projects/stencil_code/opentuner/search/driver.py", line 228, in main | |
if self.run_generation_techniques() > 0: | |
File "/Users/leonardtruong/projects/stencil_code/opentuner/search/driver.py", line 131, in run_generation_techniques | |
dr = self.root_technique.desired_result() | |
File "/Users/leonardtruong/projects/stencil_code/opentuner/search/metatechniques.py", line 39, in desired_result | |
dr = technique.desired_result() | |
File "/Users/leonardtruong/projects/stencil_code/opentuner/search/technique.py", line 90, in desired_result | |
tuning_run=self.driver.tuning_run) | |
File "<string>", line 4, in __init__ | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/state.py", line 196, in _initialize_instance | |
return manager.original_init(*mixed[1:], **kwargs) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/ext/declarative/base.py", line 524, in _declarative_constructor | |
setattr(self, k, kwargs[k]) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 220, in __set__ | |
instance_dict(instance), value, None) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 780, in set | |
value = self.fire_replace_event(state, dict_, value, old, initiator) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 801, in fire_replace_event | |
value = fn(state, value, previous, initiator or self._replace_token) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 87, in set_ | |
sess._save_or_update_state(newvalue_state) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1473, in _save_or_update_state | |
self._save_or_update_impl(st_) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1722, in _save_or_update_impl | |
self._update_impl(state) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1715, in _update_impl | |
self.identity_map.add(state) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlalchemy/orm/identity.py", line 119, in add | |
% (key, )) | |
AssertionError: A conflicting state is already present in the identity map for key (<class 'opentuner.resultsdb.models.Program'>, (1,)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment