Js2Py icon indicating copy to clipboard operation
Js2Py copied to clipboard

KeyError: 3 while importing js2py

Open CS8867 opened this issue 11 months ago • 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

CS8867 avatar Mar 07 '24 14:03 CS8867

python 3.12 not supported yet. See #282

4144 avatar Mar 08 '24 17:03 4144

Any news on this?

josdejong avatar May 07 '24 10:05 josdejong

see #317

tonal avatar Jul 25 '24 04:07 tonal