Open blmvxer opened 4 years ago
@blmvxer Not sure why this is labeled a bug, I've never claimed BpyTOP have support for Android.
I can try working on a termux friendly approach here in a couple days.
I think this is a bigger headache then you assume. First you would need to adapt psutil to work under Android.
PermissionError: [Errno 13] Permission denied: '/proc/stat'
Seems you would also need a rooted Android device to get past the permission errors.
And how did you do that?
And how did you do that?
@J053Fabi0 I think it was as easy as installing it with pip3
and then running it with tsu
(which requires root access)
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!