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

运行不了 KeyError #2

Closed
viocha opened this issue Mar 20, 2024 · 5 comments
Closed

运行不了 KeyError #2

viocha opened this issue Mar 20, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@viocha
Copy link

viocha commented Mar 20, 2024

Traceback (most recent call last):
  File "D:\IT\git\cloned\BIT_yanhe_download\main.py", line 2, in <module>
    import m3u8dl
  File "D:\IT\git\cloned\BIT_yanhe_download\m3u8dl.py", line 21, in <module>
    from signature_from_js import signature_from_js
  File "D:\IT\git\cloned\BIT_yanhe_download\signature_from_js.py", line 5, in <module>
    from js2py.pyjs import *
  File "D:\Program Files\Python\Python312\Lib\site-packages\js2py\__init__.py", line 72, in <module>
    from .base import PyJsException
  File "D:\Program Files\Python\Python312\Lib\site-packages\js2py\base.py", line 2965, in <module>
    @Js
     ^^
  File "D:\Program Files\Python\Python312\Lib\site-packages\js2py\base.py", line 165, in Js
    return PyJsFunction(val, FunctionPrototype)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Program Files\Python\Python312\Lib\site-packages\js2py\base.py", line 1377, in __init__
    cand = fix_js_args(func)
           ^^^^^^^^^^^^^^^^^
  File "D:\Program Files\Python\Python312\Lib\site-packages\js2py\utils\injector.py", line 27, in fix_js_args
    code = append_arguments(six.get_function_code(func), ('this', 'arguments'))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Program Files\Python\Python312\Lib\site-packages\js2py\utils\injector.py", line 121, in append_arguments
    arg = name_translations[inst.arg]
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 3
@AuYang261
Copy link
Owner

我这里试的是可以的,你是用的release里的可执行文件下的嘛

@viocha
Copy link
Author

viocha commented Apr 2, 2024

https://www.yanhekt.cn/course/45497
编号:45497

我这里试的是可以的,你是用的release里的可执行文件下的嘛

@viocha
Copy link
Author

viocha commented Apr 2, 2024

参考这个issue
GDDG08/YanHeKT_Downloader#5 (comment)

@AuYang261
Copy link
Owner

参考这个issue GDDG08/YanHeKT_Downloader#5 (comment)

感谢!

@AuYang261
Copy link
Owner

@viocha 问题已修复

@AuYang261 AuYang261 added the bug Something isn't working label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants