Search the Community
Showing results for tags 'syntax error'.
The search index is currently processing. Current results may not be complete.
Hi, I try to use a python script what give stable solutions for the roommate problem. I have found this script: path to github. I get it to run from php with $output1 = exec(. /stableroomate.py ./solution_prefs.csv 2>&1", $output2) var_dump ($output1); But I get an error: string(27) "SyntaxError: invalid syntax" Array (  => File ".stableroomate.py", line 170  => holds = dict( (name, None) for name in prefs.keys() )  => ^  => SyntaxError: invalid syntax ) This refers to python (see attached stableroomate.py) # holds holds