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

json-metadata-tutorial.ipynb error #15

Closed
ayasyrev opened this issue Aug 28, 2024 · 4 comments
Closed

json-metadata-tutorial.ipynb error #15

ayasyrev opened this issue Aug 28, 2024 · 4 comments

Comments

@ayasyrev
Copy link
Contributor

Last cell in notebook rise error:

Cleanup: 2 tables [00:00, 1002.94 tables/s]

---------------------------------------------------------------------------


OperationalError                          Traceback (most recent call last)

[<ipython-input-28-8bd3e1d495e8>](https://localhost:8080/#) in <cell line: 1>()
----> 1 mysterious_dogs = list(no_dogs_detected.collect("file"))
      2 mysterious_dogs[11].read()

10 frames

[/usr/local/lib/python3.10/dist-packages/datachain/data_storage/sqlite.py](https://localhost:8080/#) in execute(self, query, cursor, conn)
    193             result = conn.execute(*self.compile_to_args(query))
    194         else:
--> 195             result = self.db.execute(*self.compile_to_args(query))
    196         if isinstance(query, CreateTable) and query.element.indexes:
    197             for index in query.element.indexes:

OperationalError: database is locked

Check it on colab and locally (ubuntu 22.04, 24.04, python 3.11, 3.12)

@iterative iterative deleted a comment Aug 28, 2024
@shcheklein
Copy link
Member

I've update the notebook a bit. But I'm also hitting the same error at the end. I'm trying to localize and make a small reproducible script.

@shcheklein
Copy link
Member

Should be fixed in 37fd9f3

@ayasyrev please, give it a try

@shcheklein
Copy link
Member

Created also this iterative/datachain#377 to do some followups on the iterators management returned by collect()

@ayasyrev
Copy link
Contributor Author

ayasyrev commented Sep 2, 2024

Should be fixed in 37fd9f3

@ayasyrev please, give it a try

No errors now!

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