Js2Py
Js2Py copied to clipboard
js2py.internals.simplex.JsException: ReferenceError: CryptoJS is not defined
print(context.ub98484234(9999, '65e21a1816000543115747621e', 1600054186))
File "/data/leisu/leisu_env/lib/python3.7/site-packages/js2py/base.py", line 1203, in call
return to_python(parent.obj.callprop(meth, *args))
File "/data/leisu/leisu_env/lib/python3.7/site-packages/js2py/base.py", line 996, in callprop
return cand.call(self, args)
File "/data/leisu/leisu_env/lib/python3.7/site-packages/js2py/base.py", line 1464, in call
return Js(self.code(*args))
File "<EvalJS snippet>", line 443, in PyJsHoisted_ub98484234
File "/data/leisu/leisu_env/lib/python3.7/site-packages/js2py/base.py", line 949, in call
return self.call(self.GlobalObject, args)
File "/data/leisu/leisu_env/lib/python3.7/site-packages/js2py/base.py", line 1464, in call
return Js(self.code(*args))
File "
why????
The error says your code trying to use CryptoJS, but it's not defined. You'll need to import it into your context before running your code.