是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?
该问题是否在FAQ中有解答? | Is there an existing answer for this in 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
是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?
该问题是否在FAQ中有解答? | Is there an existing answer for this in 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
备注 | Anything else?
No response