#Error trying to install | AttributeError: module 'os' has no attribute 'statvfs'
6 messages · Page 1 of 1 (latest)
I actually am running into this as well on a fresh install on a new system
Also Windows 10
Traceback (most recent call last):
File "C:\Ooga\oobabooga_windows\text-generation-webui\server.py", line 12, in <module>
import gradio as gr
File "C:\Ooga\oobabooga_windows\installer_files\env\lib\site-packages\gradio_init_.py", line 3, in <module>
import gradio.components as components
File "C:\Ooga\oobabooga_windows\installer_files\env\lib\site-packages\gradio\components.py", line 56, in <module>
from gradio.blocks import Block, BlockContext
File "C:\Ooga\oobabooga_windows\installer_files\env\lib\site-packages\gradio\blocks.py", line 26, in <module>
from gradio import (
File "C:\Ooga\oobabooga_windows\installer_files\env\lib\site-packages\gradio\networking.py", line 17, in <module>
from gradio.routes import App
File "C:\Ooga\oobabooga_windows\installer_files\env\lib\site-packages\gradio\routes.py", line 44, in <module>
import gradio.ranged_response as ranged_response
File "C:\Ooga\oobabooga_windows\installer_files\env\lib\site-packages\gradio\ranged_response.py", line 12, in <module>
from aiofiles.os import stat as aio_stat
File "C:\Ooga\oobabooga_windows\installer_files\env\lib\site-packages\aiofiles\os.py", line 32, in <module>
statvfs = wrap(os.statvfs)
AttributeError: module 'os' has no attribute 'statvfs'
Press any key to continue . . .
this looks like a widespread issue not just related to textgen, it's going to take code being updated to fix on textgens 3nd because statvfs is a unix thing
I'm sure you could work around it such as commenting out that specific line for statvfs but either way code is going to have to be updated
might be related to the aiofiles stuff, looks like the same package and issue as the stable diffusion people are having on Windows https://github.com/lshqqytiger/stable-diffusion-webui-directml/issues/229