Skip to content

module 'gradio.components' has no attribute 'IOComponent' #50

Description

@SWUSpeedy

When I try to initialize the webui server with oobabot enabled, I receive the following errors:

05:22:21-056823 INFO     Loading the extension "oobabot"
05:22:21-269256 ERROR    Failed to load the extension "oobabot".
Traceback (most recent call last):
  File "D:\Documents\text-generation-webui\modules\extensions.py", line 37, in load_extensions
    extension = importlib.import_module(f"extensions.{name}.script")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Documents\text-generation-webui\installer_files\env\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\Documents\text-generation-webui\extensions\oobabot\script.py", line 7, in <module>
    from oobabot_plugin import bootstrap
  File "D:\Documents\text-generation-webui\installer_files\env\Lib\site-packages\oobabot_plugin\bootstrap.py", line 18, in <module>
    from oobabot_plugin import controller
  File "D:\Documents\text-generation-webui\installer_files\env\Lib\site-packages\oobabot_plugin\controller.py", line 7, in <module>
    from oobabot_plugin import button_enablers
  File "D:\Documents\text-generation-webui\installer_files\env\Lib\site-packages\oobabot_plugin\button_enablers.py", line 9, in <module>
    from oobabot_plugin import worker as oobabot_worker
  File "D:\Documents\text-generation-webui\installer_files\env\Lib\site-packages\oobabot_plugin\worker.py", line 15, in <module>
    from oobabot_plugin import input_handlers
  File "D:\Documents\text-generation-webui\installer_files\env\Lib\site-packages\oobabot_plugin\input_handlers.py", line 16, in <module>
    class ComponentToSetting(abc.ABC):
  File "D:\Documents\text-generation-webui\installer_files\env\Lib\site-packages\oobabot_plugin\input_handlers.py", line 22, in ComponentToSetting
    def __init__(self, component: gr.components.IOComponent):
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'gradio.components' has no attribute 'IOComponent'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions