LyzenX / DouyinLiveRecorder

一个自动监测和录制抖音直播的工具,支持录制弹幕,以GUI或命令行形式运行,支持linux,无需设置cookie,不使用selenium,开箱即用。
675 stars 105 forks source link

报错无法运行,已经重新安装过依赖了 #50

Open xiaocainiao2020 opened 4 months ago

xiaocainiao2020 commented 4 months ago

用了修复弹幕这个最新版的,python版本3.12.2,提示

PS D:\ruanjian_zhibo\DouyinLiveRecorder-main> python.exe main.pyw
Error in sys.excepthook:
Traceback (most recent call last):
  File "D:\ruanjian_zhibo\DouyinLiveRecorder-main\dylr\util\logger.py", line 32, in log_uncaught_exceptions
    fatal_and_print(''.join(traceback.format_tb(tb)))
  File "D:\ruanjian_zhibo\DouyinLiveRecorder-main\dylr\util\logger.py", line 65, in fatal_and_print
    if not app.win_mode:
           ^^^^^^^^^^^^
AttributeError: module 'dylr.core.app' has no attribute 'win_mode'

Original exception was:
Traceback (most recent call last):
  File "D:\ruanjian_zhibo\DouyinLiveRecorder-main\main.pyw", line 4, in <module>
    import dylr.core.app as app
  File "D:\ruanjian_zhibo\DouyinLiveRecorder-main\dylr\core\app.py", line 15, in <module>
    from dylr.core import version, config, record_manager, monitor
  File "D:\ruanjian_zhibo\DouyinLiveRecorder-main\dylr\core\config.py", line 11, in <module>
    from dylr.core import record_manager, app
  File "D:\ruanjian_zhibo\DouyinLiveRecorder-main\dylr\core\record_manager.py", line 7, in <module>
    from dylr.core.recording import Recording
  File "D:\ruanjian_zhibo\DouyinLiveRecorder-main\dylr\core\recording.py", line 9, in <module>
    from dylr.core.danmu_recorder import DanmuRecorder
  File "D:\ruanjian_zhibo\DouyinLiveRecorder-main\dylr\core\danmu_recorder.py", line 9, in <module>
    from google.protobuf import json_format
  File "D:\ruanjian_bangong\Python\Lib\site-packages\google\protobuf\json_format.py", line 64, in <module>
    from google.protobuf import symbol_database
  File "D:\ruanjian_bangong\Python\Lib\site-packages\google\protobuf\symbol_database.py", line 62, in <module>
    from google.protobuf import message_factory
  File "D:\ruanjian_bangong\Python\Lib\site-packages\google\protobuf\message_factory.py", line 44, in <module>
    from google.protobuf import reflection
  File "D:\ruanjian_bangong\Python\Lib\site-packages\google\protobuf\reflection.py", line 58, in <module>
    from google.protobuf.internal import python_message as message_impl
  File "D:\ruanjian_bangong\Python\Lib\site-packages\google\protobuf\internal\python_message.py", line 62, in <module>
    from google.protobuf.internal import containers
  File "D:\ruanjian_bangong\Python\Lib\site-packages\google\protobuf\internal\containers.py", line 182, in <module>
    MutableMapping = collections.MutableMapping
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'MutableMapping'

该怎么办呢?

LyzenX commented 4 months ago

方法1:使用python3.8或3.9版本 方法2:参考这个:https://github.com/LyzenX/DouyinLiveRecorder/issues/16

xiaocainiao2020 commented 4 months ago

方法1:使用python3.8或3.9版本 方法2:参考这个:#16

现在好了,本来也还是启动不了,看到最新的提交,改了文件名之后可以正常启动了。dylr/core/dy_pb2.py