Answer the question
In order to leave comments, you need to log in
How to solve PermissionError: [Errno 13] Permission denied: '/proc/stat' !?
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_common.py", line 403, 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 302, in
set_scputimes_ntuple("/proc")
File "/data/data/com.termux/files/usr/lib/python3.9/site- packages/psutil/_common.py", line 405, in wrapper
ret = cache[key] = fun(*args, **kwargs)
File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_pslinux.py", line 269, 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 711, in open_binary
return open(fname, "rb", ** kwargs)
PermissionError: [Errno 13] Permission denied: '/proc/stat'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question