-
Notifications
You must be signed in to change notification settings - Fork 122
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
Writing local files fails on Windows 11 #160
Comments
I cannot reproduce this. I installed python3.11 and copied your test into this file: Then I ran it like this:
|
It also passes with tensorstore 0.1.60:
|
Note: This spec will try to write at the root of wherever you are running. So in my case, running in
|
I have the same problem writing from inside WSL 2 to a windows drive (/mnt/c/...).
File is created on the drive. Opening it afterwards works. Writing to it again fails:
|
That appears to be a different problem, as wsl is actually running Linux against a particular network filesystem. It appears to be a failure when |
The ::fstat() issue may work if you build from source after 52c2dda I can test on my WSL instance later. edit: That appears insufficient to solve the problem. |
* When writing, stat before rename. Stat after rename was done to reduce spurious failures on some windows paths; we may need to watch this case more closely. * Remove fallback stat-by-filenames; these should not be necessary when doing operations in the new order. * Merge RAII FileLock class with WriteLockHelper class. * Add verbose logging for Lock, Unlock, and Delete. I ran this on a WSL instance, and it appears to resolve the wsl network filesystem issues in: #160 (comment) PiperOrigin-RevId: 665436157 Change-Id: Ia8048936a636f181e53edd247c3847280a0d66ca
Related to #123.
Writing to filesystem fails on Windows 11.
It is interesting that this spec does not throw the exception, but unfortunately it does not work since no files are created on the filesystem:
I also tried with different configurations, but this is a minimal code block that showcases the issue. Please let me know if you need more info.
I am attaching the script with further details:
Output:
The text was updated successfully, but these errors were encountered: