$ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lsb_release
>>> lsb_release.get_distro_information()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/lsb_release.py", line 383, in get_distro_information
distinfo = guess_debian_release()
File "/usr/lib/python3/dist-packages/lsb_release.py", line 281, in guess_debian_release
get_distro_info(distinfo['ID'])
File "/usr/lib/python3/dist-packages/lsb_release.py", line 41, in get_distro_info
RELEASES_ORDER.sort(key=lambda n: float(n[0]))
File "/usr/lib/python3/dist-packages/lsb_release.py", line 41, in <lambda>
RELEASES_ORDER.sort(key=lambda n: float(n[0]))
ValueError: could not convert string to float: '8.04 LTS'
Although that's just due to the fact that it's missing the DISTRIB_CODENAME. Add that back and I think I'll be happy.
Yeah, hit this today:
$ python3 get_distro_ information( ) python3/ dist-packages/ lsb_release. py", line 383, in get_distro_ information release( ) python3/ dist-packages/ lsb_release. py", line 281, in guess_debian_ release distro_ info(distinfo[ 'ID']) python3/ dist-packages/ lsb_release. py", line 41, in get_distro_info ORDER.sort( key=lambda n: float(n[0])) python3/ dist-packages/ lsb_release. py", line 41, in <lambda> ORDER.sort( key=lambda n: float(n[0]))
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lsb_release
>>> lsb_release.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
distinfo = guess_debian_
File "/usr/lib/
get_
File "/usr/lib/
RELEASES_
File "/usr/lib/
RELEASES_
ValueError: could not convert string to float: '8.04 LTS'
Although that's just due to the fact that it's missing the DISTRIB_CODENAME. Add that back and I think I'll be happy.