Open FruityWelsh opened 5 years ago
Would offloading this to https://pypi.org/project/distro/ be a good idea?
Ah yes, that's a bug, thanks. You are probably missing hostnamectl
or lsb_release
. The program should have warned you about it, but it didn't because of the crash.
Would offloading this to https://pypi.org/project/distro/ be a good idea?
I would prefer not to rely on external python dependencies unless that's absolutely necessary. Ideally the program would work as a standalone, self-contained script that people can just download and run.
That said, the page you linked list a few additional methods for getting the distribution name. I'll try to implement them :slightly_smiling_face:
hostnamectl should have worked though (output was scrubed by me): Static hostname: [Personal Data] Icon name: computer-desktop Chassis: desktop Machine ID: [Personal Data] Boot ID: [Personal Data] Operating System: Ubuntu 18.04.2 LTS Kernel: Linux 5.0.15-steamvr-generic Architecture: x86-64
lsb_release gives me: No LSB modules are available.
Sorry, didn't see your message. Does it still not work with the current master ?
correct
https://pastebin.com/8t6b8z5f
Got:
ERROR : distribution detection : no distribution name found
on ubuntu 18.04