-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundError (/system/etc/mtab) on Android (termux) #1344
Comments
Can you try to disable the fs plugin:
|
Thanks for your help. I tried it and got this response.
```
$ glances --disable-plugin fs
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/glances", line 11, in <module>
load_entry_point('Glances==3.0.2', 'console_scripts', 'glances')()
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/glances/__init__.py",
line 140, in main
start(config=config, args=args)
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/glances/__init__.py",
line 106, in start
mode = GlancesMode(config=config, args=args)
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/glances/standalone.py",
line 73, in __init__
self.stats.update()
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/glances/stats.py",
line 222, in update
self._plugins[p].update()
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/glances/plugins/glances_processcount.py",
line 71, in update
glances_processes.update()
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/glances/processes.py",
line 247, in update
ad_value=None)
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/glances/processes.py",
line 246, in <listcomp>
self.processlist = [p.info for p in
psutil.process_iter(attrs=standard_attrs,
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/psutil/__init__.py",
line 1434, in process_iter
yield add(pid)
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/psutil/__init__.py",
line 1416, in add
proc.info = proc.as_dict(attrs=attrs, ad_value=ad_value)
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/psutil/__init__.py",
line 525, in as_dict
ret = meth()
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/psutil/__init__.py",
line 749, in io_counters
return self._proc.io_counters()
File
"/data/data/com.termux/files/usr/lib/python3.7/site-packages/psutil/_pslinux.py",
line 1677, in io_counters
"too old?)" % self.pid)
NotImplementedError: couldn't find /proc/1546/io (kernel too old?)
```
…On Fri, 2 Nov 2018, 08:31 Nicolas Hennion, ***@***.***> wrote:
Can you try to disable the fs plugin:
glances --disable-plugin fs
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1344 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcBD3gWPCyfz0XB1fknO6WuYLS0VrRdOks5urALEgaJpZM4YGB5A>
.
|
Strange... @giampaolo Any idea ? Did you test PsUtil with the latest Android version ? |
Does
As for this one, psutil should probably avoid to expose |
```/etc/mtab``` does not exist.
…On Sat, 3 Nov 2018, 17:45 giampaolo, ***@***.***> wrote:
Does /etc/mtab exist? It's weird it looks for /system/etc/mtab.
NotImplementedError: couldn't find /proc/1546/io (kernel too old?)
As for this one, psutil should probably avoid to expose
Process.io_counters() methods in case this is not available. I'll file a
ticket.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1344 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcBD3sWVrbQ0t-fvyjRsZFNZg69ruHMPks5urdYjgaJpZM4YGB5A>
.
|
I close this issue. Please track the PsUtil issue here: giampaolo/psutil#1357 |
I still get the same issue (mtab not found), even though that PsUtil issue is already closed. |
I installed glances according to the README on Android (7) under termux. When I run glances, it returns:
Is there any other information I can provide?
The text was updated successfully, but these errors were encountered: