Closed TabulateJarl8 closed 3 years ago
I think i can add that after making 2.7 "stable"
i have had the same thing on my manjrao and souls laptops
if it still happens on 2.7, send the debug info
----run_rpc----
uptime in epoch: 1608900196.0
cpuid: 740614258177605642
cpuappid: 741100300219187335
termappid: 741286819676553258
hostappid: 743971270395297852
1701 (pacman), 6 (snap)
----out.py----
----DE/WM----
deid: Plasma
wmid: KWin
wmline item 0: KWin
----TERMINAL----
fontline: Noto Sans 0 10 [Plasma], Noto Sans, 10 [GTK2/3]
termid: 741286819676553258
termline item 0: yakuake
themeline: Breath2 [Plasma], Breath-Dark [GTK2/3]
----HOST INFO----
hostline: HP Pavilion Laptop 15-cs0xxx
[KeyError]: 'Battery:'
[KeyError]: 'Battery:'
batteryline: Battery: N/A
resline: 1920x1080, 1920x1080
----GPU INFO----
gpuinfo: Intel UHD Graphics 620
gpuvendor: intel
----CPU INFO----
cpuvendor: intel
cpumodel: Intel i7
cpuinfo: Intel i7-8550U (8) @ 4.000GHz
cpuline item 0: Intel i7-8550U (8) @ 4.000GHz
memline: 3496MiB / 7845MiB
----OS INFO----
sysosline: Manjaro Linux x86_64
sysosid: 740614258177605642
diskline: /): 320G / 819G (42%)
packagesline item 0: 1701 (pacman), 6 (snap)
----testing.py----
----DE/WM----
deid: Plasma
wmid: KWin
----TERMINAL/SHELL----
termid: 741286819676553258
shellid: bash
----HOST INFO----
hostid: 742887089179197462
----GPU INFO----
gpuvendor: intel
----CPU INFO----
cpumodel: Intel i7
('DEFAULT', <Section: DEFAULT>)
('cycle_0', <Section: cycle_0>)
('cycle_1', <Section: cycle_1>)
('cycle_2', <Section: cycle_2>)
('cycle_3', <Section: cycle_3>)
{}
cycle0 not in : True
try_connect(key="cycle0") on <pypresence.presence.Presence object at 0x7f44cdbed580>
cycle 0
try_update(key="cycle0") on <pypresence.presence.Presence object at 0x7f44cdbed580>
appid: 740614258177605642
{'cycle0': <pypresence.presence.Presence object at 0x7f44cdbed580>}
cycle1 not in : True
try_connect(key="cycle1") on <pypresence.presence.Presence object at 0x7f44ce859100>
cycle 1
try_update(key="cycle1") on <pypresence.presence.Presence object at 0x7f44ce859100>
appid: 741100300219187335
{'cycle0': <pypresence.presence.Presence object at 0x7f44cdbed580>, 'cycle1': <pypresence.presence.Presence object at 0x7f44ce859100>}
cycle2 not in : True
try_connect(key="cycle2") on <pypresence.presence.Presence object at 0x7f44cdc8eca0>
cycle 2
try_update(key="cycle2") on <pypresence.presence.Presence object at 0x7f44cdc8eca0>
appid: 740614258177605642
{'cycle0': <pypresence.presence.Presence object at 0x7f44cdbed580>, 'cycle1': <pypresence.presence.Presence object at 0x7f44ce859100>, 'cycle2': <pypresence.presence.Presence object at 0x7f44cdc8eca0>}
cycle3 not in : True
try_connect(key="cycle3") on <pypresence.presence.Presence object at 0x7f44cdc8ed30>
[KeyError]: 'Battery:'
cycle 3
[KeyError]: 'Battery:'
try_update(key="cycle3") on <pypresence.presence.Presence object at 0x7f44cdc8ed30>
appid: 743971270395297852
^CClosing connection.
@TabulateJarl8
Hello can you try with the new fetchcord version ?
pip3 install fetchcord --upgrade
or pip install fetchcord --upgrade
Yep, you seemed to have fixed the issue, good job. Closing the issue
Debug info
If you are unable to run FetchCord please run
neofetch --noart
(windows) orneofetch -- stdout
(macos&linux)Operating system & way of installation
FetchCord 2.7 on Manjaro installed via pip
Error/issue
There is a KeyError, causing FetchCord to display the battery as
N/A
because on my laptop NeoFetch displays the battery level underBattery0
instead of what this is trying to get it as, which is justBattery
.Other notes(optional)
Maybe try using a regular expression instead of just statically getting
Battery
. This one that I just wrote seems to match any battery following the pattern of having or not having a number before the colon,Battery[0-9]*: