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

File System Issues (sql) #10

Open
1 of 2 tasks
michaelweinold opened this issue May 28, 2023 · 4 comments
Open
1 of 2 tasks

File System Issues (sql) #10

michaelweinold opened this issue May 28, 2023 · 4 comments
Assignees

Comments

@michaelweinold
Copy link
Collaborator

michaelweinold commented May 28, 2023

Currently, an error is raised when trying to query a SQLite database. This affects the use of peewee:

The present workaround is to not use /drive:

(...) I think it because the the current directory (/drive) is not a MEMFS (unlike the rest of the file system), but rather a DriveFS used, from what I understand, for notebook persistance. Probably it's even less POSIX compliant than MEMFS, which becomes an issue for sqlite. If you write in any other folder say /tmp/ the above example would work.

Ultimately, the issue seems to be with drivefs:

I think the code that needs to be checked is the drivefs, which I guess is ultimately backed by localForage:

@michaelweinold
Copy link
Collaborator Author

michaelweinold commented Aug 1, 2024

There is a new "WASM-native" SQLite version. Unfortunately, this will not solve the SQL issue either:

This won't help us because we need to link it into an Emscripten shared libraray (or the main binary). They have their own loader code.

@michaelweinold
Copy link
Collaborator Author

michaelweinold commented Aug 1, 2024

There might be potential for a collaboration, following the discussions here:

Both @psychemedia and @bollwyvl are interested in using SQL in a Pyodide/JupyterLite environment.

@michaelweinold
Copy link
Collaborator Author

michaelweinold commented Aug 2, 2024

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

No branches or pull requests

1 participant