DD_Monitor icon indicating copy to clipboard operation
DD_Monitor copied to clipboard

requirements.txt中缺少依赖bilibili-api

Open USN484259 opened this issue 2 years ago • 0 comments

测试使用的commit 0e7fe77a370c69a4dec5aefe29ea99f21760c2b1

环境:

  • Ubuntu 20.04.4 LTS x86_64
  • Python 3.8.10

复现步骤:

$ pwd
/home/username/code/DD_Monitor
$ pip install -r requirements.txt
$ python3 DD监控室.py 
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
  File "DD监控室.py", line 25, in <module>
    from VideoWidget_vlc import PushButton, Slider, VideoWidget
  File "/home/username/code/DD_Monitor/VideoWidget_vlc.py", line 16, in <module>
    from remote import remoteThread
  File "/home/username/code/DD_Monitor/remote.py", line 12, in <module>
    from bilibili_api import live
ModuleNotFoundError: No module named 'bilibili_api'

手动安装bilibili-api后正常运行

$ pip install bilibili-api
$ python3 DD监控室.py

建议在requirements.txt添加一行依赖项bilibili-api

USN484259 avatar Jul 04 '22 16:07 USN484259