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

OSError: Unable to synchronously open file (truncated file: eof = 7084411, sblock->base_addr = 0, stored_eof = 196566066) #800

Open
wrab12 opened this issue Feb 14, 2025 · 0 comments

Comments

@wrab12
Copy link

wrab12 commented Feb 14, 2025

Error Description

When running the following code from the Spatiotemporal trajectory of mouse organogenesis tutorial:

adata = datasets.mosta()
adata.obs["time"] = adata.obs["time"].astype("category")
adata

Solution:

  1. Navigate to the cache directory:

    • Path: C:\Users\{username}\.cache\moscot\mosta.h5ad
  2. Delete the mosta.h5ad file

  3. Rerun the code, which will trigger a fresh download

Why This Works

  • The existing file is likely corrupted or incompletely downloaded
  • Deleting the file forces moscot to download a fresh, complete dataset

Note: Replace {username} with your actual Windows username.

Alternative Approach

If deletion doesn't resolve the issue, you can also:

  • Check your internet connection
  • Manually download the file from the original source
  • Verify you have the latest versions of moscot, h5py, and anndata
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

1 participant