Js2Py icon indicating copy to clipboard operation
Js2Py copied to clipboard

Problems with import js2py

Open IJOL opened this issue 5 years ago • 0 comments

after a pip install git+https://github.com/PiotrDabkowski/Js2Py.git

Python 2.7.6 (default, Nov 13 2018, 12:45:42) [GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import js2py Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/js2py/init.py", line 73, in from .evaljs import * File "/usr/local/lib/python2.7/dist-packages/js2py/evaljs.py", line 155 exec (DEFAULT_HEADER, self._context) SyntaxError: unqualified exec is not allowed in function 'init' it contains a nested function with free variables

IJOL avatar Aug 15 '20 17:08 IJOL