Py3status: arch_updates and volume_status : not work properly.

Created on 3 Jun 2018  Â·  4Comments  Â·  Source: ultrabug/py3status

arch_updates and volume_status just shown "arch_updates" and "volume_status" on the bar.
there is the log.
need your help please.

2018-06-03 14:28:43 WARNING Instance `arch_updates`, user method `check_updates` failed (FileNotFoundError) arch_updates.py line 102.
2018-06-03 14:28:43 INFO Traceback
FileNotFoundError: [Errno 2] No such file or directory: 'checkupdates': 'checkupdates'
  File "/usr/lib/python3.6/site-packages/py3status/module.py", line 732, in run
    response = method()
  File "/usr/lib/python3.6/site-packages/py3status/modules/arch_updates.py", line 71, in check_updates
    pacman_updates = self._check_pacman_updates()
  File "/usr/lib/python3.6/site-packages/py3status/modules/arch_updates.py", line 102, in _check_pacman_updates
    pending_updates = str(subprocess.check_output(["checkupdates"]))
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)

2018-06-03 14:28:43 WARNING Instance `volume_status`, user method `current_volume` failed (AttributeError) volume_status.py line 226.
2018-06-03 14:28:43 INFO Traceback
AttributeError: 'NoneType' object has no attribute 'groups'
  File "/usr/lib/python3.6/site-packages/py3status/module.py", line 732, in run
    response = method()
  File "/usr/lib/python3.6/site-packages/py3status/modules/volume_status.py", line 339, in current_volume
    perc, muted = self.backend.get_volume()
  File "/usr/lib/python3.6/site-packages/py3status/modules/volume_status.py", line 226, in get_volume
    muted, perc = self.re_volume.search(output).groups()

2018-06-03 14:28:44 WARNING Instance `volume_status`, user method `current_volume` failed (AttributeError) volume_status.py line 226.
2018-06-03 14:28:44 INFO Traceback
AttributeError: 'NoneType' object has no attribute 'groups'
  File "/usr/lib/python3.6/site-packages/py3status/module.py", line 732, in run
    response = method()
  File "/usr/lib/python3.6/site-packages/py3status/modules/volume_status.py", line 339, in current_volume
    perc, muted = self.backend.get_volume()
  File "/usr/lib/python3.6/site-packages/py3status/modules/volume_status.py", line 226, in get_volume
    muted, perc = self.re_volume.search(output).groups()

All 4 comments

1) arch_updates...
FileNotFoundError: [Errno 2] No such file or directory: 'checkupdates': 'checkupdates'
It can't find checkupdates. Install pacman-contrib and try again. They moved checkupdates and other binaries out of pacman few days ago.

2) volume_status... No idea. We need more information.
* What's in your volume_status config?
* It looks like you're trying to use pulseaudio. What does pactl list print?
* Py3status and Python version... just in case.

I really appreciate and thank you for your kind help,
i solved the arch_updates by install pacman-contrib;
but i still don't kown how to fix volume_status,
the information you need is as follows:

i use the default volume_status.py offerred by py3statusï¼›
i don't use pulseaudio, i use alsa-utils;
i use py3status version 3.10 (python 3.6.5);

Thank you so much for further help.
@lasers

You can try command = 'amixer' in the volume_status config.

The code looks like it can't get anything from pactl list so I do want to know what's in pactl list (and maybe pactl list short too) to see if it's a bug or that it printed nothing. The exception seems to be pactl-related.

Unrelated... pactl can adjust volume numbers more accurately than amixer so that might be something you want to know about / experiment.

Thank you, i changed the command = 'amixer' in my config file,then it works normally
you are of great help @lasers

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mxmilkiib picture mxmilkiib  Â·  8Comments

maximbaz picture maximbaz  Â·  8Comments

root360-AndreasUlm picture root360-AndreasUlm  Â·  5Comments

ultrabug picture ultrabug  Â·  9Comments

claiire picture claiire  Â·  4Comments