oobabooga / one-click-installers

Simplified installers for oobabooga/text-generation-webui.
GNU Affero General Public License v3.0
550 stars 186 forks source link

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

Closed tpuppe92 closed 1 year ago

tpuppe92 commented 1 year ago

Hello everyone,

I've just downloaded text-generation-webui, installed all the required dependencies. However, when I try to start the web UI, I encounter the following error: AttributeError: module 'os' has no attribute 'statvfs'

I wanted to install "stats" but I can't seem to install it via pip

Thank you!

Reproduction I'm encountering the same error whether I install it normally or by using the Windows installer.

Traceback (most recent call last): File "C:\text-generation-webui\text-generation-webui\server.py", line 12, in import gradio as gr File "C:\text-generation-webui\installer_files\env\lib\site-packages\gradio__init__.py", line 3, in import gradio.components as components File "C:\text-generation-webui\installer_files\env\lib\site-packages\gradio\components.py", line 56, in from gradio.blocks import Block, BlockContext File "C:\text-generation-webui\installer_files\env\lib\site-packages\gradio\blocks.py", line 26, in from gradio import ( File "C:\text-generation-webui\installer_files\env\lib\site-packages\gradio\networking.py", line 17, in from gradio.routes import App File "C:\text-generation-webui\installer_files\env\lib\site-packages\gradio\routes.py", line 44, in import gradio.ranged_response as ranged_response File "C:\text-generation-webui\installer_files\env\lib\site-packages\gradio\ranged_response.py", line 12, in from aiofiles.os import stat as aio_stat File "C:\text-generation-webui\installer_files\env\lib\site-packages\aiofiles\os.py", line 32, in statvfs = wrap(os.statvfs) AttributeError: module 'os' has no attribute 'statvfs'