You are not logged in.

#1 2015-12-15 20:52:20

Schlunze
Member
Registered: 2013-10-03
Posts: 28

[solved] Glances and pySensors

Hello,

a wile ago i´ve read something about system monitoring and searched for a suitable application. Glances is the way to go for me.
My problem is, that i coudn´t get sensors in glances running.

Steps i tried so far:

Installed glances, lm_sensors, hddtemp, python-matplotlib.

Installed various pySensors - packages: python2-sensors, one from aur, and via pip/pip2.

If python2 is forced in /usr/bin/glances there are various error messages:

Traceback (most recent call last):
  File "/usr/bin/glances", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3138, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3124, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3151, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 661, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 962, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 849, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'Glances==2.5.1' distribution was not found and is required by the application

Maybe someone with more python package/venv knowledge can help me out.

Thanks in advance

Last edited by Schlunze (2015-12-15 22:18:40)

Offline

#2 2015-12-15 21:00:34

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,246

Re: [solved] Glances and pySensors

You say you've installed lm_sensors, but have you configured it yet?

sensors-detect

Last edited by Slithery (2015-12-15 21:15:22)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2015-12-15 21:06:29

Schlunze
Member
Registered: 2013-10-03
Posts: 28

Re: [solved] Glances and pySensors

Hi,

sensors is configured, sensors output is fine.

Offline

#4 2015-12-15 21:16:13

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,246

Re: [solved] Glances and pySensors

Looks like you need py3sensors installed, I can't find an appropriate package in the AUR so either use pip or create a PKGBUILD for it (I'll have a go later tonight if I get the time).

Last edited by Slithery (2015-12-15 21:16:57)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2015-12-15 22:16:57

Schlunze
Member
Registered: 2013-10-03
Posts: 28

Re: [solved] Glances and pySensors

You are right, thank you slithery. I´ve just searched for ready arch-packages...

pip install https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz

solved the problem, ty again.

Offline

#6 2015-12-19 23:23:51

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,246

Re: [solved] Glances and pySensors

Well its later than promised but for anyone else wanting to see lm_sensors output in glances I've just uploaded the required package to the AUR...

python-py3sensors-hg

Last edited by Slithery (2015-12-19 23:24:36)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB