Skip to content
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

Glances on Windows Subsystem for Linux throw an error #1228

Closed
hoppushoppard opened this issue Feb 9, 2018 · 2 comments
Closed

Glances on Windows Subsystem for Linux throw an error #1228

hoppushoppard opened this issue Feb 9, 2018 · 2 comments
Labels

Comments

@hoppushoppard
Copy link

Description

Using windows subsystem for linux, aka Ubuntu on Windows, when I run glances, immediately an exception is thrown and application is terminated.

Versions

  • Glances (glances -V): v2.10
  • PSutil (glances -V): v3.4.2
  • Operating System (lsb_release -a): Description: Ubuntu 16.04.3 LTS
  • System Information (uname -a): Linux 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux

Logs

~# glances                                                                                                                                                                                                                       /usr/lib/python2.7/dist-packages/psutil/_pslinux.py:266: 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.10', 'console_scripts', 'glances')()
  File "/usr/local/lib/python2.7/dist-packages/glances/__init__.py", line 134, in main
    start(config=config, args=args)
  File "/usr/local/lib/python2.7/dist-packages/glances/__init__.py", line 100, in start
    mode = GlancesMode(config=config, args=args)
  File "/usr/local/lib/python2.7/dist-packages/glances/standalone.py", line 69, in __init__
    self.stats.update()
  File "/usr/local/lib/python2.7/dist-packages/glances/stats.py", line 192, in update
    self._plugins[p].update()
  File "/usr/local/lib/python2.7/dist-packages/glances/plugins/glances_plugin.py", line 882, in wrapper
    ret = fct(self, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/glances/plugins/glances_plugin.py", line 891, in wrapper
    ret = fct(*args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/glances/plugins/glances_network.py", line 99, in update
    netstatus = psutil.net_if_stats()
  File "/usr/lib/python2.7/dist-packages/psutil/__init__.py", line 1876, in net_if_stats
    return _psplatform.net_if_stats()
  File "/usr/lib/python2.7/dist-packages/psutil/_pslinux.py", line 708, in net_if_stats
    isup, duplex, speed, mtu = cext.net_if_stats(name)
OSError: [Errno 22] Invalid argument
@nicolargo nicolargo added the bug label Feb 12, 2018
@nicolargo
Copy link
Owner

It is a know issue on PsUtil (giampaolo/psutil#860). Please upgrade your PsUtil version.

@nicolargo nicolargo added rejected and removed bug labels Feb 14, 2018
@hoppushoppard
Copy link
Author

I've reinstalled psutil with pip to version 5.4.3, but I get another bunch of errors.
I'll report them to psutil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants