Skip to content

[BUG] error loading module: github_copilot_official_sdk_pipe #79

Description

@silenceroom

Plugin Type

Pipe

Plugin Name

Select a plugin...

Plugin Name (if not in list)

GitHub Copilot Official SDK Pipe

Description

无法正常安装/保存 function

Steps to Reproduce

安装插件时出现错误

在原始代码下(sdk==0.2.2),报错如下:

[ERROR: Command '['/usr/local/bin/python3', '-m', 'pip', 'install', 'github-copilot-sdk==0.2.2']' returned non-zero exit status 1.]

查看pypi网站,发现没有0.2.2版本, 最近的版本是0.2.3,修改function代码的requirements 为0.2.3后,新的报错如下:

[ERROR: cannot import name 'Mode' from 'copilot.generated.rpc' (/usr/local/lib/python3.11/site-packages/copilot/generated/rpc.py)]

OpenWebUI Version

0.9.4

Operating System & Container

OS: MacOS 26.3
Container: Docker 29.4.0

Error Logs (Optional)

Downloading github_copilot_sdk-0.2.0-py3-none-manylinux_2_28_aarch64.whl (63.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.9/63.9 MB 2.7 MB/s eta 0:00:00
Installing collected packages: github-copilot-sdk
  Attempting uninstall: github-copilot-sdk
    Found existing installation: github-copilot-sdk 0.2.3
    Uninstalling github-copilot-sdk-0.2.3:
      Successfully uninstalled github-copilot-sdk-0.2.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Successfully installed github-copilot-sdk-0.2.0

[notice] A new release of pip is available: 24.0 -> 26.1.1
[notice] To update, run: pip install --upgrade pip
2026-05-24 15:57:28.263 | ERROR    | open_webui.utils.plugin:load_function_module_by_id:289 - Error loading module: github_copilot_official_sdk_pipe: cannot import name 'Mode' from 'copilot.generated.rpc' (/usr/local/lib/python3.11/site-packages/copilot/generated/rpc.py)
2026-05-24 15:57:28.274 | INFO     | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.215.1:60024 - "POST /api/v1/functions/id/github_copilot_official_sdk_pipe/update HTTP/1.1" 400
2026-05-24 15:57:40.069 | INFO     | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.215.1:41526 - "GET /_app/version.json HTTP/1.1" 200

Additional Information (Optional)

No response

Checklist

  • I have searched for duplicate issues
  • I have provided clear reproduction steps
  • I have mentioned OpenWebUI version and OS/container info

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions