Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

dbc.execute('VACUUM') error #14

Closed
SanaRinomi opened this issue Feb 17, 2017 · 6 comments
Closed

dbc.execute('VACUUM') error #14

SanaRinomi opened this issue Feb 17, 2017 · 6 comments

Comments

@SanaRinomi
Copy link

I get the following error:
Traceback (most recent call last): File "C:\Users\amelia\Desktop\tf2idb.py", line 228, in <module> main() File "C:\Users\amelia\Desktop\tf2idb.py", line 224, in main dbc.execute('VACUUM') sqlite3.OperationalError: cannot VACUUM from within a transaction

@fakuivan
Copy link
Contributor

What version of python are you using? (python -V)

@Zolika1351
Copy link

Same here using Python 3.6.1, also accidentally tried to use 2.7.10 because I have both installed and got the same error.

@James76931
Copy link

Can confirm. Getting this issue on my end also.

@FlaminSarge
Copy link
Owner

FlaminSarge commented Jul 16, 2017

That is really odd; I get no trouble on 3.5.3 and 2.7.10 with the VACUUM operation, but I do get the issue on 3.6.1.

Looks like this is why ghaering/pysqlite#109

@FlaminSarge
Copy link
Owner

@FlaminSarge
Copy link
Owner

(Simple fix would be to move the db.commit() line above the VACUUM line, probably. Might need to add another commit line, I'm not sure).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants