aristocratos/bpytop

[REQUEST] Support for Termux/Android

Open

#144 aberto em 15 de out. de 2020

Ver no GitHub
 (5 comments) (0 reactions) (1 assignee)Python (393 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (9.714 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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!

Guia do colaborador