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

fs imports grp in bw_processing, which is not supported in WASM #53

Closed
michaelweinold opened this issue May 20, 2024 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@michaelweinold
Copy link
Collaborator

Calling

bw2io.add_example_database(searchable=False)

causes an error:

File /lib/python3.11/site-packages/fs/osfs.py:226, in OSFS._make_access_from_stat(cls, stat_result)
    224 access["uid"] = uid = stat_result.st_uid
    225 if not _WINDOWS_PLATFORM:
--> 226     import grp
    227     import pwd
    229     try:

ModuleNotFoundError: The module 'grp' is removed from the Python standard library in the Pyodide distribution due to browser limitations.
See https://pyodide.org/en/stable/usage/loading-packages.html for more details.

While this was patched by @cmutel in:

It would be best to switch to fsspec in bw_processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant