Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OperationalError: locking protocol on trying to access a database which is being written #2071

Closed
davguy opened this issue Jul 3, 2020 · 2 comments

Comments

@davguy
Copy link

davguy commented Jul 3, 2020

If you encounter a bug use the following template.
If you have a feature request feel free to freestyle.

Steps to reproduce

  1. Create a sqlite3 database for a qcodes experiment in jupyter lab
  2. run 'load_or_create_experiment'
  3. start a new measurement
  4. run 'load_by_run_spec' on this, or an older measurement in another jupyter lab

Expected behaviour

One should be able to read a database which is being written. For example, for live plotting

Actual behaviour

I get a "OperationalError: locking protocol" error. The sqlite database is not letting me in.

System

operating system
Windows subsystem for linux: Ubuntu

qcodes branch
master

qcodes commit
Merge pull request #2066 from WilliamHPNielsen/remove_slave_master_refs

@jenshnielsen
Copy link
Collaborator

I cannot reproduce this issue. For example #2062 containst 2 notebooks that I have just run simultaiously. One writes to the database and the other one reads.

It seems likely that your issue is related to WSL see for example microsoft/WSL#2395
Is there any particular reason you are using WSL?

@jenshnielsen
Copy link
Collaborator

It seems like this is specific to wsl and there is not a lot we can do to fix that

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

No branches or pull requests

2 participants