You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing /proc/vmstat breaks software included with default installation. #1071
Same issue after upgrading to WSL 16.04 Xenial support
This happens just after installing dropbox, daemon can not start. This is the generated log tail messages.
File "dropbox/event.py", line 244, in start
File "psutil/init.py", line 1626, in swap_memory
File "psutil/_pslinux.py", line 195, in swap_memory
IOError: [Errno 2] No such file or directory: '/proc/vmstat'
Just to add to the list, Glances also fails to load due to lack of vmstat (log below).
/usr/local/lib/python2.7/dist-packages/psutil/_pslinux.py:344: RuntimeWarning: 'sin' and 'sout' swap memory stats couldn't be determined and were set to 0 ([Errno 2] No such file or directory: '/proc/vmstat')
warnings.warn(msg, RuntimeWarning)
Traceback (most recent call last):
File "/usr/local/bin/glances", line 9, in <module>
load_entry_point('Glances==2.6.2', 'console_scripts', 'glances')()
File "/usr/local/lib/python2.7/dist-packages/glances/__init__.py", line 130, in main
args=core.get_args())
File "/usr/local/lib/python2.7/dist-packages/glances/standalone.py", line 67, in __init__
self.stats.update()
File "/usr/local/lib/python2.7/dist-packages/glances/stats.py", line 154, in update
self._plugins[p].update()
File "/usr/local/lib/python2.7/dist-packages/glances/plugins/glances_plugin.py", line 658, in wrapper
ret = fct(*args, **kw)
File "/usr/local/lib/python2.7/dist-packages/glances/plugins/glances_fs.py", line 103, in update
fs_stat = psutil.disk_partitions(all=False)
File "/usr/local/lib/python2.7/dist-packages/psutil/__init__.py", line 1801, in disk_partitions
return _psplatform.disk_partitions(all)
File "/usr/local/lib/python2.7/dist-packages/psutil/_pslinux.py", line 899, in disk_partitions
fstype = line.split("\t")[1]
IndexError: list index out of range
Reacted by Joonhyeok Im, Mahmoud Al-Qudsi, Woz, Mykola Shestopal, Christian Quispe H and Guyver1wales
I utilise the EasyEngine.io suite for WordPress development and if I could run this in WSL, WOW that would make a massive difference to my production work and quite possibly a lot of Web Developers who work on windows machines.
The install process makes it all the way to the end and returns error. Here are the last few lines
Installed /usr/local/lib/python3.4/dist-packages/cement-2.4.0-py3.4.egg Searching for python-apt==0.9.3.5ubuntu2 Best match: python-apt 0.9.3.5ubuntu2 Adding python-apt 0.9.3.5ubuntu2 to easy-install.pth file Using /usr/lib/python3/dist-packages Finished processing dependencies for ee==3.7.4 [Errno 2] No such file or directory: '/proc/vmstat'
really hoping to find a way around this or getting some info as to what is causing this issue.
Reacted by Mike, Ryan Purpura, Christian Scholz, Kemory Grubb, xporterfield, Deepak Gupta, sleepycommerce, Michael P., Gaurav Dhamija, dave-gohyperion and 2 more
re: sudo pip3 install psutil fixes this issue
Why is pip3 being used to install psutil ? Is psutil installed on Windows or in Ubuntu ?
As a Mac user, can't we use an equivalent to brew ? or use yum ?
root@host:~# pip3 install psutils
ERROR: Could not find a version that satisfies the requirement psutils (from versions: none)
ERROR: No matching distribution found for psutils
root@host:~# uname -a
Linux host 4.4.0-18362-Microsoft #1-Microsoft Mon Mar 18 12:02:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
Thanks Matt Gajownik (@WizardCM) I had forgotten about that. It helps with my own machine, but unfortunately my work machine is held back on 1809 on a supposed "evergreen" program.
Activity
russalex commentedon Sep 12, 2016
Thank you for filing this. I have filed this one as a bug.
To help prioritize, is this blocking a specific scenario?
sprink commentedon Sep 13, 2016
This is not blocking anything for me. Discovered while troubleshooting an unrelated issue.
phdyang007 commentedon Sep 20, 2016
I also encountered this problem, and my dropbox could not work prompting missing /proc/vmstat
bratsos commentedon Sep 23, 2016
Same error (
[Errno 2] No such file or directory: '/proc/vmstat') occurs after EasyEngine (@EasyEngine) 's installation.fantore commentedon Sep 28, 2016
dropbox original install as in
http://www.dropboxwiki.com/tips-and-tricks/install-dropbox-in-an-entirely-text-based-linux-environment
is impacted by this bug.
I got this: IOError: [Errno 2] No such file or directory: '/proc/vmstat'
JoseLauro182 commentedon Nov 3, 2016
Will umask help fix the [Errno 2] No such file or directory: '/proc/vmstat' error? I don't understand the reference.
fantore commentedon Nov 3, 2016
Same issue after upgrading to WSL 16.04 Xenial support
This happens just after installing dropbox, daemon can not start. This is the generated log tail messages.
File "dropbox/event.py", line 244, in start
File "psutil/init.py", line 1626, in swap_memory
File "psutil/_pslinux.py", line 195, in swap_memory
IOError: [Errno 2] No such file or directory: '/proc/vmstat'
WizardCM commentedon Jan 10, 2017
Just to add to the list, Glances also fails to load due to lack of vmstat (log below).
robwilde commentedon Feb 17, 2017
is there any progress on this issue?
I utilise the EasyEngine.io suite for WordPress development and if I could run this in WSL, WOW that would make a massive difference to my production work and quite possibly a lot of Web Developers who work on windows machines.
The install process makes it all the way to the end and returns error. Here are the last few lines
Installed /usr/local/lib/python3.4/dist-packages/cement-2.4.0-py3.4.eggSearching for python-apt==0.9.3.5ubuntu2Best match: python-apt 0.9.3.5ubuntu2Adding python-apt 0.9.3.5ubuntu2 to easy-install.pth fileUsing /usr/lib/python3/dist-packagesFinished processing dependencies for ee==3.7.4[Errno 2] No such file or directory: '/proc/vmstat'really hoping to find a way around this or getting some info as to what is causing this issue.
pedosb commentedon Dec 4, 2018
This is also causing problems for me we trying to run: https://github.com/ray-project/ray
ThibzR commentedon May 28, 2019
Pedro Batista (@pedosb)
sudo pip3 install psutilfixes this issueshaunlahert commentedon Sep 14, 2019
This did not solve the issue for me, still same error...
edit* I realise now my issue is that the dropbox app comes with its own psutil library and upgrading mine obviously isn't fixing the issue...
mwilcox12015 commentedon Oct 11, 2019
re: sudo pip3 install psutil fixes this issue
Why is pip3 being used to install psutil ? Is psutil installed on Windows or in Ubuntu ?
As a Mac user, can't we use an equivalent to brew ? or use yum ?
ColOfAbRiX commentedon Oct 29, 2019
Things are not working. No psutils for python 3
dickymoore commentedon Jan 14, 2020
Unfortunately this doesn't work for tools like dropbox, which uses its own version of psutil.
Does anyone know another workaround? Can we fake a '/proc/vmstat'?
therealkenc commentedon Apr 23, 2020
wolf99 commentedon Aug 28, 2020
Another "fixed-in-wsl2" 😞 This is not a solution for those of us held back or for which the 2004 update of Windows still hasn't rolled out to.
WizardCM commentedon Aug 28, 2020
WSL2 should have rolled out to 1909 and 1903 if you're on x64. https://devblogs.microsoft.com/commandline/wsl-2-support-is-coming-to-windows-10-versions-1903-and-1909/
wolf99 commentedon Aug 31, 2020
Thanks Matt Gajownik (@WizardCM) I had forgotten about that. It helps with my own machine, but unfortunately my work machine is held back on 1809 on a supposed "evergreen" program.