aristocratos/bpytop

[REQUEST] Support for Termux/Android

Open

#144 建立於 2020年10月15日

在 GitHub 查看
 (5 留言) (0 反應) (1 負責人)Python (393 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (9,714 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

So I see the issue is with permissions

PermissionError: [Errno 13] Permission denied: '/proc/stat'

I can try working on a termux friendly approach here in a couple days.

Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_common.py", line 405, in wrapper return cache[key] KeyError: (('/proc',), frozenset()) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_pslinux.py", line 309, in set_scputimes_ntuple("/proc") File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_common.py", line 407, in wrapper ret = cache[key] = fun(*args, **kwargs) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_pslinux.py", line 276, in set_scputimes_ntuple with open_binary('%s/stat' % procfs_path) as f: File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_common.py", line 713, in open_binary return open(fname, "rb", **kwargs) PermissionError: [Errno 13] Permission denied: '/proc/stat' Bpytop exited with errorcode (1). See /data/data/com.termux/files/home/.config/bpytop/error.log for more information!

貢獻者指南