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

statvfs is not available on windows #171

Closed
silentiumsi opened this issue Aug 9, 2023 · 3 comments
Closed

statvfs is not available on windows #171

silentiumsi opened this issue Aug 9, 2023 · 3 comments
Labels

Comments

@silentiumsi
Copy link

statvfs was introduced in the following commit:
ec8cc1e

statvfs is not available on Windows as far as I can gather.

AttributeError: module 'os' has no attribute 'statvfs'

A simple fix may be something like:

if hasattr(os, 'statvfs'):
    statvfs = wrap(os.statvfs)
@Tinche
Copy link
Owner

Tinche commented Aug 9, 2023

Bleh, you're right. I will hotfix this, guess I need to figure out how to test on Windows too.

@Tinche
Copy link
Owner

Tinche commented Aug 9, 2023

I've just published 23.2.1, let me know!

@Tinche Tinche closed this as completed Aug 9, 2023
@Tinche Tinche added the bug label Aug 9, 2023
@silentiumsi
Copy link
Author

I've just published 23.2.1, let me know!

This looks to be fixed on Windows 11. At least in the context of https://github.com/AUTOMATIC1111/stable-diffusion-webui

Thanks for handling it so quickly :)

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

No branches or pull requests

2 participants