darknessomi / musicbox

网易云音乐命令行版本
MIT License
9.83k stars 1.58k forks source link

开始运行后报错 #954

Open Error-Eric opened 2 years ago

Error-Eric commented 2 years ago

已经尝试过运行 pip3 install -u NetEase_Musicbox. 命令行运行 muscibox 可以正常打开。 打开后按空格会跳出;

######:~$ musicbox 
Traceback (most recent call last):
  File "/home/iun/.local/lib/python3.9/site-packages/NEMbox/__main__.py", line 35, in start
    nembox_menu.start_fork(version)
  File "/home/iun/.local/lib/python3.9/site-packages/NEMbox/menu.py", line 293, in start_fork
    Menu().start()
  File "/home/iun/.local/lib/python3.9/site-packages/NEMbox/menu.py", line 793, in start
    self.space_key_event()
  File "/home/iun/.local/lib/python3.9/site-packages/NEMbox/menu.py", line 395, in space_key_event
    self.build_menu_processbar()
  File "/home/iun/.local/lib/python3.9/site-packages/NEMbox/menu.py", line 545, in build_menu_processbar
    self.ui.build_process_bar(
  File "/home/iun/.local/lib/python3.9/site-packages/NEMbox/ui.py", line 320, in build_process_bar
    self.update_lyrics(now_playing, lyrics, tlyrics)
  File "/home/iun/.local/lib/python3.9/site-packages/NEMbox/ui.py", line 219, in update_lyrics
    next_lyric_time = get_lyric_time(lyrics[self.now_lyric_index + 1])
  File "/home/iun/.local/lib/python3.9/site-packages/NEMbox/ui.py", line 197, in get_lyric_time
    datetime.datetime.strptime(get_timestap(lyric_line), "%M:%S.%f")
  File "/usr/lib/python3.9/_strptime.py", line 568, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
  File "/usr/lib/python3.9/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '99:00.00' does not match format '%M:%S.%f'

timedatectl 运行结果正常

iun@iun-VivoBook-ASUSLaptop-X420UA:~$ timedatectl
               Local time: Sun 2022-05-15 16:10:33 CST
           Universal time: Sun 2022-05-15 08:10:33 UTC
                 RTC time: Sun 2022-05-15 08:10:33
                Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no