You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should this be considered to be a more strict version pin to prevent any similar issues occurring in the future?
Have you searched existing issues? 🔎
I have searched and found no existing issues
Reproduction
Create a fresh Python venv and install Gradio, and run any demo from https://www.gradio.app/demos. Instead a traceback will be returned with AttributeError: module 'os' has no attribute 'statvfs'.
Screenshot
No response
Logs
Traceback (most recent call last):
File "H:\Projects\Programming\_new\gradiotest\main.py", line 1, in<module>
import gradio as gr
File "H:\Projects\Programming\_new\gradiotest\venv\lib\site-packages\gradio\__init__.py", line 3, in<module>
import gradio.components as components
File "H:\Projects\Programming\_new\gradiotest\venv\lib\site-packages\gradio\components\__init__.py", line 1, in<module>
from gradio.components.annotated_image import AnnotatedImage
File "H:\Projects\Programming\_new\gradiotest\venv\lib\site-packages\gradio\components\annotated_image.py", line 13, in<module>
from gradio.components.base import IOComponent, _Keywords
File "H:\Projects\Programming\_new\gradiotest\venv\lib\site-packages\gradio\components\base.py", line 29, in<module>
from gradio.blocks import Block, BlockContext
File "H:\Projects\Programming\_new\gradiotest\venv\lib\site-packages\gradio\blocks.py", line 27, in<module>
from gradio import (
File "H:\Projects\Programming\_new\gradiotest\venv\lib\site-packages\gradio\networking.py", line 18, in<module>
from gradio.routes import App
File "H:\Projects\Programming\_new\gradiotest\venv\lib\site-packages\gradio\routes.py", line 44, in<module>
import gradio.ranged_response as ranged_response
File "H:\Projects\Programming\_new\gradiotest\venv\lib\site-packages\gradio\ranged_response.py", line 12, in<module>
from aiofiles.os import stat as aio_stat
File "H:\Projects\Programming\_new\gradiotest\venv\lib\site-packages\aiofiles\os.py", line 32, in<module>
statvfs = wrap(os.statvfs)
AttributeError: module 'os' has no attribute 'statvfs'
System Info
# (can't even run this as the same crash occurs; running on Windows 11)
Severity
I can work around it
The text was updated successfully, but these errors were encountered:
Not needed, as the broken version of aiofiles was yanked:
We generally avoid pinning dependencies to anything more specific than a major as that can cause issues if gradio is installed alongside other packages.
Describe the bug
Edit: This was fixed upstream pretty fast but I still am going to propose the question here.
This is moreso a question. A recent
aiofiles
update broke compatibility with Windows systems.Tinche/aiofiles#162
Tinche/aiofiles#171
Tinche/aiofiles#172
Currently the version Gradio specifies for this is pretty lenient which allowed this to seep thru.
gradio/requirements.txt
Line 1 in 667875b
Should this be considered to be a more strict version pin to prevent any similar issues occurring in the future?
Have you searched existing issues? 🔎
Reproduction
Create a fresh Python venv and install Gradio, and run any demo from https://www.gradio.app/demos. Instead a traceback will be returned with
AttributeError: module 'os' has no attribute 'statvfs'
.Screenshot
No response
Logs
System Info
# (can't even run this as the same crash occurs; running on Windows 11)
Severity
I can work around it
The text was updated successfully, but these errors were encountered: