adamgreenhall / minpower

power systems tools made beautiful
adamgreenhall.github.io/minpower
71 stars 33 forks source link

Installation error #8

Closed andresorge closed 11 years ago

andresorge commented 11 years ago

Hello,

I have just installed minpower under actual version of cygwin 1.7.17-1 and python version 2.6.8. All prerequisites for minpower install well but during minpower installation I got following syntax error:

Installing collected packages: minpower Running setup.py install for minpower SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/minpower/commonscripts.py', 173, 78, ' try: data=[{field_map[drop_case_spaces(name)]:convert_str2num(val) for name,val in row.items() if valid_cell(name,val)} for row in raw_data]\n'))

I'm not sure if this is a bug because I can't identify a syntax problem (but python is not my world) or if the runtime environment cygwin+python is not supported. Is there a possibility to overcome this issue?

Best regards, André

adamgreenhall commented 11 years ago

I think this is probably a Python 2.6 issue. If you can upgrade to Python 2.7 - that should solve the problem. I am also adding testing for Python 2.6 (so far it is failing - I'll see what I can do).

adamgreenhall commented 11 years ago

Minpower has been developed with Python 2.7. After doing some tests with Python 2.6, my conclusion is that it would require a bit of work to get Minpower to work under 2.6 (see test results - mainly the errors are a result of a syntax change for .format() statements). So for now 2.6 is not supported.