Skip to content

[BUG] <title> 在mac arm64上无法打开 "Manage Models" #1092

@Awak3n1ngOne

Description

@Awak3n1ngOne

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

  • 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

  • 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

在mac arm64上无法打开 "Manage Models"

核心问题已确认:NSPopUpButton 在 _refresh_model_manager_content

方法中作为局部变量使用时未定义。这是一个典型的 Python 变量作用域 bug。

onManageModels_ 2026-04-29 09:24:40,072 [ERROR] comni: onManageModels_ failed Traceback (most recent call last): File "/Applications/Comni.app/Contents/Resources/apps/desktop/menubar_app.py", line 2150, in onManageModels_ self._build_model_manager() File "/Applications/Comni.app/Contents/Resources/apps/desktop/menubar_app.py", line 1119, in _build_model_manager self._refresh_model_manager_content() File "/Applications/Comni.app/Contents/Resources/apps/desktop/menubar_app.py", line 1151, in _refresh_model_manager_content self._download_source_popup = NSPopUpButton.alloc().initWithFrame_pullsDown_( ^^^^^^^^^^^^^ UnboundLocalError: cannot access local variable 'NSPopUpButton' where it is not associated with a value 2026-04-29 09:24:45,251 [INFO] comni: onManageModels_ 2026-04-29 09:24:45,255 [ERROR] comni: onManageModels_ failed Traceback (most recent call last): File "/Applications/Comni.app/Contents/Resources/apps/desktop/menubar_app.py", line 2150, in onManageModels_ self._build_model_manager() File "/Applications/Comni.app/Contents/Resources/apps/desktop/menubar_app.py", line 1099, in _build_model_manager self._refresh_model_manager_content() File "/Applications/Comni.app/Contents/Resources/apps/desktop/menubar_app.py", line 1151, in _refresh_model_manager_content self._download_source_popup = NSPopUpButton.alloc().initWithFrame_pullsDown_( ^^^^^^^^^^^^^ UnboundLocalError: cannot access local variable 'NSPopUpButton' where it is not associated with a value

期望行为 | Expected Behavior

No response

复现方法 | Steps To Reproduce

No response

运行环境 | Environment

- OS:
- Python:
- Transformers:
- PyTorch:
- CUDA (`python -c 'import torch; print(torch.version.cuda)'`):

备注 | Anything else?

No response

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