distro-info from pypi doesn't work because /usr/share/distro-info/ubuntu.csv is not included
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
distro-info (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
If you install distro-info from pypi and don't have /usr/share/
Python 3.10.7 (main, Sep 8 2022, 14:34:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from distro_info import UbuntuDistroInfo
>>> UbuntuDistroInfo()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/
super(
File "/home/
csvfile = open(filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/
I'm not sure if this is the correct place to report this bug but https:/
ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: distro-info 1.1build1
ProcVersionSign
Uname: Linux 5.19.0-15-generic x86_64
NonfreeKernelMo
ApportVersion: 2.23.0-0ubuntu2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Sep 23 15:44:44 2022
InstallationDate: Installed on 2022-03-21 (185 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
SourcePackage: distro-info
UpgradeStatus: Upgraded to kinetic on 2022-09-18 (4 days ago)
Please either fix the version on pypi (include the file and search for it in the python code) or drop the version from pypi to not confuse people.