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

Error in the status bar #7

Open
ludovicschwartz opened this issue Nov 15, 2021 · 1 comment
Open

Error in the status bar #7

ludovicschwartz opened this issue Nov 15, 2021 · 1 comment

Comments

@ludovicschwartz
Copy link

Instead of having the status bar, I have the following error :
Error. status command not found or is missing a library dependency (exit 127)

My i3 config file looks like this :


bar {
        status_command i3status | ~/git_folder/i3spotifystatus/pystatus.py
}

When I remove the second part of the status bar, it works fine.

Executing i3status | ~/git_folder/i3spotifystatus/pystatus.py in a terminal yields :

{"version":1}
[
[{"color": "#9ec600", "full_text": "\uf1bc David Guetta - Titanium (feat. Sia)", "name": "spotify"}, {"name": "volume", "instance": "default.Master.0", "markup": "none", "full_text": "VOL 100%"}, {"name": "cpu_usage", "markup": "none", "full_text": "CPU 06% <06% 05%>"}, {"name": "disk_info", "instance": "/", "markup": "none", "full_text": "HDD 2,8%"}, {"name": "wireless", "instance": "wlp0s20f3", "color": "#00FF00", "markup": "none", "full_text": "W ( 56% at event@upf, 243 Mb/s) 10.80.138.1"}, {"name": "ethernet", "instance": "_first_", "color": "#FF0000", "markup": "none", "full_text": ""}, {"name": "battery", "instance": "/sys/class/power_supply/BAT0/uevent", "markup": "none", "full_text": "\u26a1 CHR 92,71% 00:09 16:42"}, {"name": "memory", "markup": "none", "full_text": "1,8 GiB 10,2 GiB 12,8 GiB"}, {"name": "load", "markup": "none", "full_text": "0,35"}, {"name": "tztime", "instance": "local", "markup": "none", "full_text": "15-11-2021 16:32"}]
,[{"color": "#9ec600", "full_text": "\uf1bc David Guetta - Titanium (feat. Sia)", "name": "spotify"}, {"name": "volume", "instance": "default.Master.0", "markup": "none", "full_text": "VOL 100%"}, {"name": "cpu_usage", "markup": "none", "full_text": "CPU 04% <02% 03%>"}, {"name": "disk_info", "instance": "/", "markup": "none", "full_text": "HDD 2,8%"}, {"name": "wireless", "instance": "wlp0s20f3", "color": "#00FF00", "markup": "none", "full_text": "W ( 56% at event@upf, 270 Mb/s) 10.80.138.1"}, {"name": "ethernet", "instance": "_first_", "color": "#FF0000", "markup": "none", "full_text": ""}, {"name": "battery", "instance": "/sys/class/power_supply/BAT0/uevent", "markup": "none", "full_text": "\u26a1 CHR 92,77% 00:09 16:42"}, {"name": "memory", "markup": "none", "full_text": "1,8 GiB 10,3 GiB 12,8 GiB"}, {"name": "load", "markup": "none", "full_text": "0,34"}, {"name": "tztime", "instance": "local", "markup": "none", "full_text": "15-11-2021 16:32"}]
,[{"color": "#9ec600", "full_text": "\uf1bc David Guetta - Titanium (feat. Sia)", "name": "spotify"}, {"name": "volume", "instance": "default.Master.0", "markup": "none", "full_text": "VOL 100%"}, {"name": "cpu_usage", "markup": "none", "full_text": "CPU 04% <03% 03%>"}, {"name": "disk_info", "instance": "/", "markup": "none", "full_text": "HDD 2,8%"}, {"name": "wireless", "instance": "wlp0s20f3", "color": "#00FF00", "markup": "none", "full_text": "W ( 56% at event@upf, 243 Mb/s) 10.80.138.1"}, {"name": "ethernet", "instance": "_first_", "color": "#FF0000", "markup": "none", "full_text": ""}, {"name": "battery", "instance": "/sys/class/power_supply/BAT0/uevent", "markup": "none", "full_text": "\u26a1 CHR 92,81% 00:09 16:42"}, {"name": "memory", "markup": "none", "full_text": "1,8 GiB 10,3 GiB 12,8 GiB"}, {"name": "load", "markup": "none", "full_text": "0,33"}, {"name": "tztime", "instance": "local", "markup": "none", "full_text": "15-11-2021 16:32"}]

@lunerien
Copy link

At top of the pystatus.py file there is #! - instruction for shell which interpreter use for this file. Probably you don't have python (in modern distros is not set, because it is referring to deprecated python2). Solution is to set alias python=python3 or modify file changing python to python3. It solved my problem for this error.

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

No branches or pull requests

2 participants