Termux Hacks Guide[2019 and beyond]

Ok bro thanks a lot going to try u r so helpfull

2 Likes

Wht os this error please help thanks

Mon Dec 16 11:03:56 IST 2019
Traceback (most recent call last):
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/psutil/_common.py”, line 296, 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.8/site-packages/psutil/_pslinux.py”, line 312, in
set_scputimes_ntuple("/proc")
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/psutil/_common.py”, line 298, in wrapper
ret = cache[key] = fun(*args, **kwargs)
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/psutil/_pslinux.py”, line 279, in set_scputimes_ntuple
with open_binary(’%s/stat’ % procfs_path) as f:
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/psutil/_common.py”, line 604, in open_binary
return open(fname, “rb”, **kwargs)
PermissionError: [Errno 13] Permission denied: ‘/proc/stat’
Traceback (most recent call last):
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/psutil/_pslinux.py”, line 1517, in wrapper
return fun(self, *args, **kwargs)
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/psutil/_pslinux.py”, line 1735, in create_time
bt = BOOT_TIME or boot_time()
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/psutil/_pslinux.py”, line 1436, in boot_time
with open_binary(path) as f:
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/psutil/_common.py”, line 604, in open_binary
return open(fname, “rb”, **kwargs)
PermissionError: [Errno 13] Permission denied: ‘/proc/stat’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/data/data/com.termux/files/usr/bin/thefuck”, line 6, in
from thefuck.entrypoints.main import main
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/thefuck/entrypoints/main.py”, line 11, in
from thefuck.entrypoints.main import main
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/thefuck/entrypoints/main.py”, line 11, in
from …shells import shell # noqa: E402
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/thefuck/shells/init.py”, line 52, in
shell = _get_shell_from_env() or _get_shell_from_proc()
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/thefuck/shells/init.py”, line 45, in _get_shell_from_proc
proc = proc.parent()
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/psutil/init.py”, line 662, in parent
ctime = self.create_time()
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/psutil/init.py”, line 824, in create_time
self._create_time = self._proc.create_time()
File “/data/data/com.termux/files/usr/lib/python3.8/site-packages/psutil/_pslinux.py”, line 1519, in wrapper
raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: psutil.AccessDenied (pid=6883, name=‘thefuck’)

2 Likes