Skip to content

Python 3.13 compatibility issue: Gradio 5.1.0 fails to run, upgrade to 5.23.0 resolves #7

Description

@bigbrother303

Environment:

  • Python 3.13
  • Windows 11

Issue Description:
When following the README installation steps with gradio==5.1.0 on Python 3.13, the webui.py fails to start with the following errors:

  • ModuleNotFoundError: No module named 'audioop' (Python 3.13 removed this standard library)
  • After installing audioop-lts, another error appears: ImportError: cannot import name 'HfFolder' from 'huggingface_hub'
  • After downgrading huggingface-hub, a TypeError: unhashable type: 'dict' occurs

Solution:
After changing gradio==5.1.0 to gradio==5.23.0 in requirements.txt, all issues were resolved and the panel runs normally.

Suggestion:
Consider updating the requirements.txt to require gradio>=5.23.0 for Python 3.13 compatibility.

Note:
For users who prefer not to upgrade Gradio, downgrading to Python 3.12 is also a viable workaround,and missing request in requestment.txt.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions