-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
psutil compatibility with linux subsystem for windows #1218
Comments
Sorry for the delay.
What kind of platform is that? |
From late 2017 you are able to install linux directly on Windows 10 machine The distro could be one apparently one of these:
I've got Ubuntu.
I'm sorry I don't understand your question regarding platform 😅 . |
I've never played with that configuration so it's likely psutil won't work. I would welcome adding support for it though (PRs are welcome =)). |
I opened a ticket for this: #1251 |
Thanks ! |
You can symlink /proc/mounts to /etc/mtab (sudo ln -s /proc/mounts /etc/mtab) and then in the /usr/lib/python3/dist-packages/psutil/_pslinux.py file, you can comment out the line (put a # before it) that spits out the warning from not finding vmstat - this ends up setting the values to 0, and not spew out the RuntimeWarning that messes up the display. In my version it was line 470, but YMMV based on the version of psutil. Hint: it's the line mentioned in the RuntimeWarning - in your case, line 515. |
Running glances on ubuntu in linux subsystem for windows I get several errors.
Apparently there is no
/proc/vmstat
, no/etc/mtab
.glances is using psutil
Installed psutil version
Installed glances version
The text was updated successfully, but these errors were encountered: