---------------------------------------------------------------------------
OperationalError Traceback (most recent call last)
<ipython-input-4-da1439b0e71c> in <module>()
----> 1 hp.sync_tmpos()
/mnt/data/work/opengrid/code/og/opengrid/library/houseprint/houseprint.pyc in sync_tmpos(self)
443 Add all Flukso sensors to the TMPO session and sync
444 """
--> 445 tmpos = self.get_tmpos()
446 tmpos.sync()
447
/mnt/data/work/opengrid/code/og/opengrid/library/houseprint/houseprint.pyc in get_tmpos(self)
436 return self._tmpos
437 else:
--> 438 self.init_tmpo()
439 return self._tmpos
440
/mnt/data/work/opengrid/code/og/opengrid/library/houseprint/houseprint.pyc in init_tmpo(self, tmpos, path_to_tmpo_data)
414
415 self._tmpos = tmpo.Session(path_to_tmpo_data)
--> 416 self._add_sensors_to_tmpos()
417
418 print("Using tmpo database from {}".format(self._tmpos.db))
/mnt/data/work/opengrid/code/og/opengrid/library/houseprint/houseprint.pyc in _add_sensors_to_tmpos(self)
425
426 for sensor in fluksosensors:
--> 427 self._tmpos.add(sensor.key, sensor.token)
428
429 def get_tmpos(self):
/mnt/data/work/opengrid/code/tmpo-py/tmpo/__init__.pyc in wrapper(*args, **kwargs)
133 self.dbcur.execute(SQL_TMPO_TABLE)
134 # execute function
--> 135 result = func(*args, **kwargs)
136 # commit everything and close connection
137 self.dbcon.commit()
/mnt/data/work/opengrid/code/tmpo-py/tmpo/__init__.pyc in add(self, sid, token)
174 def add(self, sid, token):
175 try:
--> 176 self.dbcur.execute(SQL_SENSOR_INS, (sid, token))
177 except sqlite3.IntegrityError: # sensor entry exists
178 pass
OperationalError: database is locked