Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

bake fails on newer pysqlite #96

Open
mikaelj opened this issue Feb 10, 2016 · 1 comment
Open

bake fails on newer pysqlite #96

mikaelj opened this issue Feb 10, 2016 · 1 comment
Labels

Comments

@mikaelj
Copy link

mikaelj commented Feb 10, 2016

pysqlite-2.8.1 / sqlite-3.10.2

ERROR: exception in bake.run()

Traceback (most recent call last):
 File "/usr/lib/python2.7/site-packages/oe_lite-4.2.0.post0-py2.7.egg/oebakery/cmd/cmds.py", line 137, in call
   ret = function(*args)
 File "/home/rijo/repos/tlabos/meta/core/lib/oelite/cmd/bake.py", line 35, in run
   return baker.bake()
 File "/home/rijo/repos/tlabos/meta/core/lib/oelite/baker.py", line 289, in bake
   self.options.rebuild, self.options.relax)
 File "/home/rijo/repos/tlabos/meta/core/lib/oelite/runq.py", line 26, in __init__
   self.cookbook.db.execute("ATTACH ':memory:' AS runq")
OperationalError: cannot ATTACH database within transaction

CRITICAL: bake failed: Exception: cannot ATTACH database within transaction

Solved by adding self.cookbook.db.execute("END TRANSACTION") at core/lib/oelite/runq.py:26

@kimrhh
Copy link

kimrhh commented Feb 10, 2016

auch, thanks for reporting

@esben esben added the bug label Feb 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants