aristocratos/bpytop

[REQUEST] Support for Termux/Android

Open

#144 aperta il 15 ott 2020

Vedi su GitHub
 (5 commenti) (0 reazioni) (1 assegnatario)Python (393 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (9714 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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!

Guida contributor