Open BeeBreeze opened 2 years ago
Is your device rooted ?
Is your device rooted ? yes
Same issue here, rooted as well.
same here. also tried to install with sudo. then running "sudo glances"
~ $ sudo glances
Error opening terminal: unknown.
This issue is stale because it has been open for 3 months with no activity.
This issue is available for anyone to work on. Make sure to reference this issue in your pull request. :sparkles: Thank you for your contribution ! :sparkles:
glances Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/_common.py", line 398, 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.10/site-packages/psutil/_pslinux.py", line 285, in
set_scputimes_ntuple("/proc")
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/_common.py", line 400, in wrapper
ret = cache[key] = fun(*args, **kwargs)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/_pslinux.py", line 268, in set_scputimes_ntuple
with open_binary('%s/stat' % procfs_path) as f:
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/_common.py", line 727, in open_binary
return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE)
PermissionError: [Errno 13] Permission denied: '/proc/stat'
Error while initializing the network plugin ([Errno 13] Permission denied: '/proc/net/dev')
Error while initializing the uptime plugin ([Errno 13] Permission denied: '/proc/stat')
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/_common.py", line 398, 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/bin/glances", line 8, in
sys.exit(main())
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/glances/init.py", line 179, in main
start(config=core.get_config(), args=core.get_args())
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/glances/init.py", line 108, in start
mode = GlancesMode(config=config, args=args)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/glances/standalone.py", line 72, in init
self.stats.update()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/glances/stats.py", line 216, in update
self._plugins[p].update()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/glances/plugins/glances_plugin.py", line 1160, in wrapper
ret = fct(self, *args, kw)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/glances/plugins/glances_plugin.py", line 1177, in wrapper
ret = fct(*args, *kw)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/glances/plugins/glances_cpu.py", line 166, in update
stats = self.update_local()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/glances/plugins/glances_cpu.py", line 188, in update_local
stats['total'] = cpu_percent.get()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/glances/cpu_percent.py", line 51, in get
return self.get_cpu()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/glances/cpu_percent.py", line 88, in get_cpu
self.cpu_percent = psutil.cpu_percent(interval=0.0)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/init.py", line 1751, in cpu_percent
t1 = cpu_times()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/init.py", line 1613, in cpu_times
return _psplatform.cpu_times()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/_pslinux.py", line 585, in cpu_times
set_scputimes_ntuple(procfs_path)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/_common.py", line 400, in wrapper
ret = cache[key] = fun(args, kwargs)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/_pslinux.py", line 268, in set_scputimes_ntuple
with open_binary('%s/stat' % procfs_path) as f:
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/_common.py", line 727, in open_binary
return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE)
PermissionError: [Errno 13] Permission denied: '/proc/stat'