fetchcord / FetchCord

FetchCord grabs your OS info and displays it as Discord Rich Presence
MIT License
325 stars 19 forks source link

Unknown Host (Gentoo) #100

Open AuroransSolis opened 3 years ago

AuroransSolis commented 3 years ago

Debug info

fetchcord --debug output:

laptop: False
----out.py----

----DE/WM----
deid: N/A
wmid: i3
wmline item 0: WM: i3 

----TERMINAL----

fontline: Terminal Font: Monospace 12 
termid: xfce4-terminal
termline item 0: Terminal: xfce4-terminal 
themeline: Theme: Adwaita [GTK2/3] 

----HOST INFO----

hostline: ['Host: Z170XP-SLI ']

----GPU INFO----

gpuinfo: GPU: NVIDIA GeForce GTX 760 bash: nvidia-smi: command not found
GPU: AMD Radeon  RX 480 Graphics 
gpuvendor: NVIDIAAMD

----CPU INFO----

cpuvendor: Intel
cpumodel: Intel i5
cpuinfo: CPU: Intel i5-6600K (4) @ 4.400GHz
cpuline item 0: CPU: Intel i5-6600K (4) @ 4.400GHz 
memline: Memory: 6455MiB / 15963MiB 

----OS INFO----

sysosline: ['OS: Gentoo Base System release 2.7 x86_64 ']
sysosid: Gentoo
packagesline item 0: Packages: 1502 (emerge) 
Unknown Host, contact us on github to resolve this.(Keyerror)
Unsupported Distro, contact us on the GitHub page to resolve this.(keyerror)

----testing.py----
----DE/WM----

deid: N/A
wmid: i3

----TERMINAL/SHELL----

termid: xfce4-terminal
shellid: bash

----HOST INFO----

hostid: ZXP-SLI

----GPU INFO----

gpuvendor: NVIDIAAMD

----CPU INFO----

cpumodel: Intel i5

Connecting
----run_rpc----

uptime in epoch: 1601459070.0
cpuid: 742993278143692821
cpuappid: 741099939198926920
termappid: 744332423072055296
hostappid: 742887089179197462
Packages: 1502 (emerge) 
RPC Connection Successful.
cycle 0

Identical outputs are shown both when installed from pip and cloned from master, built, and run.

Operating system & way of installation

Here's the output of neofetch --stdout:

auro@auro-desktop 
----------------- 
OS: Gentoo Base System release 2.7 x86_64 
Host: Z170XP-SLI 
Kernel: 5.4.66-gentoo 
Uptime: 5 days, 8 hours, 57 mins 
Packages: 1502 (emerge) 
Shell: bash 5.0.18 
Resolution: 1920x1080, 1920x1080 
WM: i3 
Theme: Adwaita [GTK2/3] 
Icons: Adwaita [GTK2/3] 
Terminal: xfce4-terminal 
Terminal Font: Monospace 12 
CPU: Intel i5-6600K (4) @ 4.400GHz 
GPU: AMD ATI Radeon RX 470/480/570/570X/580/580X/590 
GPU: NVIDIA GeForce GTX 760 
Memory: 5986MiB / 15963MiB

I've installed it both through pip and by cloning the repo.

Error/issue

Gentoo is not recognized as a host:

Unknown Host, contact us on github to resolve this.(Keyerror)
Unsupported Distro, contact us on the GitHub page to resolve this.(keyerror)

Other notes(optional)

As mentioned previously, this behaviour is present both in the pip and live versions.

BlivionIaG commented 3 years ago

Hi, I'll suppose the errors are still the same with the latest release, but with it does it detect gentoo ?

MrPotatoBobx commented 3 years ago

I'll look into this

AuroransSolis commented 3 years ago

Hi, I'm really sorry I took so long to respond. I marked it as read in my inbox since I had intended to handle it right away, but was fairly quickly distracted and forgot to follow through. I've done just that minutes ago, though, and the result is: no, it doesn't detect Gentoo. I even went and deleted and re-cloned the repo, did python setup.py build and sudo python setup.py install --prefix /usr/local, and what I see is something like this: image In my terminal, I see

auro@auro-desktop ~/manually-compiled/FetchCord $ fetchcord 
Unknown Host, contact us on github to resolve this.(Keyerror)
Unsupported Distro, contact us on the GitHub page to resolve this.(keyerror)
Connecting
RPC Connection Successful.
MrPotatoBobx commented 3 years ago

sorry for the long respond also, but can you send the debug output?

AuroransSolis commented 3 years ago

I would save for one problem - I apparently no longer have Python 3.6 on my system, which is what the fetchcord executable installed in ~/.local/ requires (as I found out from bash: /home/auro/.local/bin/fetchcord: /usr/bin/python3.6: bad interpreter: No such file or directory appearing when I tried running fetchcord). I wasn't aware this was a hard dependency until just now, since it's not mentioned in the readme, and it doesn't bring up any errors during the setup or install commands.

monosans commented 3 years ago

I have same problem. I'm using Python 3.9.2. Also Fetchcord can't recognize i3 window manager:

~ fetchcord --noshell --nohardware --nohost
[KeyError]: 'Host:'
('DEFAULT', <Section: DEFAULT>)
('cycle_0', <Section: cycle_0>)
('cycle_1', <Section: cycle_1>)
('cycle_2', <Section: cycle_2>)
('cycle_3', <Section: cycle_3>)
Unknown distro, contact us on github to resolve this.
[KeyError]: 'DE:'
Unknown DE/WM, contact us on github to resolve this.
[KeyError]: 'DE:'

fetchcord --debug:

[KeyError]: 'Host:'
----run_rpc----

uptime in epoch: 1615111249.0
Unknown distro, contact us on github to resolve this.
cpuid: 742993278143692821
cpuappid: 741099939198926920
termappid: 741291339945345045
[KeyError]: 'Host:'
608 (emerge) 
----out.py----

----DE/WM----
[KeyError]: 'DE:'
deid: DE:
wmid: i3
wmline item 0: i3 

----TERMINAL----

fontline: JetBrains Mono NL 
termid: 741291339945345045
termline item 0: alacritty 
[KeyError]: 'Theme:'
themeline: Theme: N/A
[KeyError]: 'Host:'

----GPU INFO----

gpuinfo: NVIDIA GeForce GTX 1050 Ti
gpuvendor: nvidia

----CPU INFO----

cpuvendor: intel
cpumodel: Intel i5
cpuinfo: Intel i5-7500 (4) @ 3.800GHz
cpuline item 0: Intel i5-7500 (4) @ 3.800GHz
memline: 1594MiB / 7904MiB 

----OS INFO----

sysosline: Gentoo Base System release 2.7 x86_64 
Unknown distro, contact us on github to resolve this.
sysosid: 742993278143692821
[KeyError]: 'Disk'
diskline: Disk N/A
packagesline item 0: 608 (emerge) 

----testing.py----
----DE/WM----

[KeyError]: 'DE:'
deid: DE:
wmid: i3

----TERMINAL/SHELL----

termid: 741291339945345045
shellid: bash

----HOST INFO----

[KeyError]: 'Host:'
[KeyError]: 'Host:'
hostid: 742887089179197462

----GPU INFO----

gpuvendor: nvidia

----CPU INFO----

cpumodel: Intel i5

('DEFAULT', <Section: DEFAULT>)
('cycle_0', <Section: cycle_0>)
('cycle_1', <Section: cycle_1>)
('cycle_2', <Section: cycle_2>)
('cycle_3', <Section: cycle_3>)
Unknown distro, contact us on github to resolve this.
[KeyError]: 'Host:'
Unknown motherboard, contact us on github to resolve this.
{}
cycle0 not in : True
try_connect(key="cycle0") on <pypresence.presence.Presence object at 0x7fc7d05c4610>
[KeyError]: 'DE:'
Unknown DE/WM, contact us on github to resolve this.
cycle 0
[KeyError]: 'DE:'
try_update(key="cycle0") on <pypresence.presence.Presence object at 0x7fc7d05c4610>
Unknown distro, contact us on github to resolve this.
appid: 742993278143692821
{'cycle0': <pypresence.presence.Presence object at 0x7fc7d05c4610>}
cycle1 not in : True
try_connect(key="cycle1") on <pypresence.presence.Presence object at 0x7fc7d1710280>
cycle 1
try_update(key="cycle1") on <pypresence.presence.Presence object at 0x7fc7d1710280>
appid: 741099939198926920
{'cycle0': <pypresence.presence.Presence object at 0x7fc7d05c4610>, 'cycle1': <pypresence.presence.Presence object at 0x7fc7d1710280>}
cycle2 not in : True
try_connect(key="cycle2") on <pypresence.presence.Presence object at 0x7fc7d0707c40>
cycle 2
try_update(key="cycle2") on <pypresence.presence.Presence object at 0x7fc7d0707c40>
Unknown distro, contact us on github to resolve this.
appid: 742993278143692821
Closing connection.

neofetch --stdout:

user@pc 
------- 
OS: Gentoo Base System release 2.7 x86_64 
Kernel: 5.11.3 
Uptime: 3 hours, 3 mins 
Packages: 608 (emerge) 
Shell: bash 5.1.4 
Resolution: 1920x1080 
WM: i3 
Terminal: alacritty 
Terminal Font: JetBrains Mono NL 
CPU: Intel i5-7500 (4) @ 3.800GHz 
GPU: NVIDIA GeForce GTX 1050 Ti 
Memory: 1663MiB / 7904MiB 
BlivionIaG commented 3 years ago

@monosans I've been working on a new version, when only the window manager is detected, its displaying it now. For now its in the testing branch but if you want to try it : FetchCord-2.7.1-py3-none-any.zip pip install FetchCord-2.7.1-py3-none-any.zip --force-reinstall

monosans commented 3 years ago

@BlivionIaG thank you! FetchCord now recognizes i3. But Gentoo is still not recognized for me.

kayshinonome commented 3 years ago

Does not detect gentoo for me either