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

Invalid Syntax #41

Closed
cslatt05 opened this issue May 4, 2016 · 1 comment
Closed

Invalid Syntax #41

cslatt05 opened this issue May 4, 2016 · 1 comment

Comments

@cslatt05
Copy link

cslatt05 commented May 4, 2016

import js2py
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.6/site-packages/Js2Py-0.35-py2.6.egg/js2py/init.py", line 67, in
from .evaljs import *
File "/usr/lib/python2.6/site-packages/Js2Py-0.35-py2.6.egg/js2py/evaljs.py", line 4, in
from .translators import translate_js, DEFAULT_HEADER
File "/usr/lib/python2.6/site-packages/Js2Py-0.35-py2.6.egg/js2py/translators/init.py", line 25, in
from .pyjsparser import PyJsParser, Node, WrappingNode, node_to_dict
File "/usr/lib/python2.6/site-packages/Js2Py-0.35-py2.6.egg/js2py/translators/pyjsparser.py", line 25
REGEXP_SPECIAL_SINGLE = {'^', '$', '*', '+', '?', '.', '[', ']', '(', ')', '{', '{', '|', '-'}
^
SyntaxError: invalid syntax

@PiotrDabkowski
Copy link
Owner

Hey, I think thats because of your python version. Only 2.7 or 3.X are supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants