#3584·glances

MacOS 上的 Glances 不能正常工作 27

作者: DeadNumbers创建于 2026年6月10日更新于 2026年8月8日
标签needs more info
python
Traceback (most recent call last):
File "/opt/homebrew/bin/glances", line 6, in <module>
sys.exit(main())
             ~~~~^^
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/__init__.py", line 191, in main
start(config=core.get_config(), args=core.get_args())
             ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/__init__.py", line 150, in start
mode = GlancesMode(config=config, args=args)
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/standalone.py", line 79, in __init__
self.stats.update()
             ~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/stats.py", line 287, in update
self.update_plugin(p)
             ~~~~~~~~~~~~~~~~~~^^^
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/globals.py", line 581, in inner
return _func(weakref.ref(self), *args, ttl_hash=_get_ttl_hash(ttl), **kwargs)
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/globals.py", line 577, in _func
return func(_self(), *args, **kwargs)
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/stats.py", line 274, in update_plugin
self._plugins[p].update()
             ~~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/plugins/plugin/model.py", line 1278, in wrapper
ret = fct(self, *args, **kw)
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/plugins/plugin/model.py", line 1295, in wrapper
ret = fct(*args, **kw)
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/plugins/plugin/model.py", line 1381, in wrapper
stats = fct(self, *args, **kw)
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/plugins/mem/__init__.py", line 267, in update
stats = self._update_for_local(init)
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/glances/plugins/mem/__init__.py", line 142, in _update_for_local
vm_stats = psutil.virtual_memory()
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/psutil/__init__.py", line 2048, in virtual_memory
ret = _psplatform.virtual_memory()
File "/opt/homebrew/Cellar/glances/4.5.4_3/libexec/lib/python3.14/site-packages/psutil/_psosx.py", line 93, in virtual_memory
total, active, inactive, wired, free, speculative = cext.virtual_mem()
                                                        ~~~~~~~~~~~~~~~~^^
RuntimeError: host_statistics64(HOST_VM_INFO64) syscall failed: (ipc/mig) array not large enough

内容来源: nicolargo/glances