Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

特定视频弹幕下载时报错 #102

Closed
strobenights opened this issue Mar 9, 2023 · 2 comments
Closed

特定视频弹幕下载时报错 #102

strobenights opened this issue Mar 9, 2023 · 2 comments

Comments

@strobenights
Copy link

版本:0.14.0
操作系统: Win10 x64
Python:3.83

执行命令:

bilix v https://www.bilibili.com/video/BV1jx411r7wx --dm

报错信息:

concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "e:\python\lib\concurrent\futures\process.py", line 239, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "e:\python\lib\site-packages\danmakuC\bilibili.py", line 35, in proto2ass
    ass.add_comment(
TypeError: add_comment(): incompatible function arguments. The following argument types are supported:
    1. (self: danmakuC._c.ass.Ass, arg0: float, arg1: int, arg2: str, arg3: float, arg4: int, arg5: int) -> bool

Invoked with: <danmakuC._c.ass.Ass object at 0x000001FEA28ABEB0>, 2556.035, 1515851962, '芭比娃娃', 25, 0, 4294967295
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "e:\python\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "e:\python\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "E:\Python\Scripts\bilix.exe\__main__.py", line 7, in <module>
  File "e:\python\lib\site-packages\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "e:\python\lib\site-packages\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "e:\python\lib\site-packages\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "e:\python\lib\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "e:\python\lib\site-packages\bilix\__main__.py", line 333, in main
    loop.run_until_complete(cor)
  File "e:\python\lib\asyncio\base_events.py", line 616, in run_until_complete
    return future.result()
  File "e:\python\lib\site-packages\bilix\download\downloader_bilibili.py", line 338, in get_video
    await asyncio.gather(*cors)
  File "e:\python\lib\site-packages\bilix\download\downloader_bilibili.py", line 395, in get_dm
    content = await content
  File "e:\python\lib\site-packages\bilix\download\downloader_bilibili.py", line 360, in dm2ass
    content = await loop.run_in_executor(SingletonPPE(), f)
TypeError: add_comment(): incompatible function arguments. The following argument types are supported:
    1. (self: danmakuC._c.ass.Ass, arg0: float, arg1: int, arg2: str, arg3: float, arg4: int, arg5: int) -> bool

Invoked with: <danmakuC._c.ass.Ass object at 0x000001FEA28ABEB0>, 2556.035, 1515851962, '芭比娃娃', 25, 0, 4294967295
@HFrost0
Copy link
Owner

HFrost0 commented Mar 10, 2023

这是danmakuC转换弹幕时报的错,这个依赖是从0.14.0开始,所以你可以先回退到0.13.2来避免这个问题,等待那边解决这个bug

@HFrost0
Copy link
Owner

HFrost0 commented Mar 11, 2023

通过升级danmakuC,0.14.1应该解决了这个问题

@HFrost0 HFrost0 closed this as completed Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants