KeyError: 3 while importing js2py
CS8867 opened this issue · 3 comments
The error occurs below as follows -
Traceback (most recent call last):
File "C:\Users\chsubhed\Documents\Work\Tests\Python\test.py", line 1, in
import time, js2py
File "C:\Users\chsubhed\AppData\Local\Programs\Python\Python312\Lib\site-packages\js2py_init_.py", line 72, in
from .base import PyJsException
File "C:\Users\chsubhed\AppData\Local\Programs\Python\Python312\Lib\site-packages\js2py\base.py", line 2965, in
@js
^^
File "C:\Users\chsubhed\AppData\Local\Programs\Python\Python312\Lib\site-packages\js2py\base.py", line 165, in Js
return PyJsFunction(val, FunctionPrototype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\chsubhed\AppData\Local\Programs\Python\Python312\Lib\site-packages\js2py\base.py", line 1377, in init
cand = fix_js_args(func)
^^^^^^^^^^^^^^^^^
File "C:\Users\chsubhed\AppData\Local\Programs\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 "C:\Users\chsubhed\AppData\Local\Programs\Python\Python312\Lib\site-packages\js2py\utils\injector.py", line 121, in append_arguments
arg = name_translations[inst.arg]
~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 3
python version = 3.12.0
pip version = 24.0
Any news on this?