Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
ValueError: could not convert string to float: '15.4.1'
Experiences and Insight
873
views ·
0
replies ·
To
floor
Go
deepin_suger
deepin
2019-04-24 18:30
Author
在用一些Python类的应用时,会出现下面的报错。
➜ lsb_release -a
Traceback (most recent call last):
File "/usr/bin/lsb_release", line 95, in
main()
File "/usr/bin/lsb_release", line 59, in main
distinfo = lsb_release.get_distro_information()
File "/usr/lib/python3/dist-packages/lsb_release.py", line 356, in get_distro_information
distinfo = guess_debian_release()
File "/usr/lib/python3/dist-packages/lsb_release.py", line 246, in guess_debian_release
get_distro_info(distinfo['ID'])
File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info
RELEASES_ORDER.sort(key=lambda n: float(n[0]))
File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in
RELEASES_ORDER.sort(key=lambda n: float(n[0]))
ValueError: could not convert string to float: '15.4.1'
Copy the Code
之前的解决办法是,修改distro-info,但是好像一重启或者一更新就会还原了。有啥更好的解决办法吗?
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More
之前的解决办法是,修改distro-info,但是好像一重启或者一更新就会还原了。有啥更好的解决办法吗?