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

error #20

Open
yakexi007 opened this issue Jun 15, 2015 · 2 comments
Open

error #20

yakexi007 opened this issue Jun 15, 2015 · 2 comments

Comments

@yakexi007
Copy link

python test.py

Traceback (most recent call last):
File "test.py", line 4, in
from PyHighcharts import Highchart
File "/mnt/test/PyHighcharts/init.py", line 1, in
from highcharts.chart import Highchart, set_temp_dir
File "/mnt/test/PyHighcharts/highcharts/chart.py", line 271
for k, opClass in bind}
^
SyntaxError: invalid syntax

@fidyeates
Copy link
Owner

Hi @yakexi007

What version of python are you using, if it is throwing an error on a dictionary comprehension then it might be because of Python 2.6 or earlier.

If this is the case, you could try checkout out the dev branch (https://github.com/fidyeates/PyHighcharts/tree/dev), as far as I'm aware that doesn't use any dict or list comprehensions so it has a greater chance of being compatible.

However, that said I haven't gotten around to testing on 2.6 yet, so that is just a guess.

@yakexi007
Copy link
Author

Thanks fidyeates. The problem solved.

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