Open naveenk4545 opened 4 years ago
Same Error I also got. What should I do??
@naveenk4545 I guess you have installed python3 in your machine but the program is in python2 You can try installing python2 or make correct the print statements by adding brackets ( eg : print("HTTP server ...") and correct other lines by reading the error statements I hope this resolves your problem
I think you clone python2 files that's why you get an error. so once you have git installed, you need clone ### git clone https://github.com/insidesherpa/JPMC-tech-task-1-py3.git ### this line in cmd if you are using python3 and if you are using python2 then you need to clone ### git clone https://github.com/insidesherpa/JPMC-tech-task-1-py3.git ### I hope this resolves your problem.
C:\Users\navee\JPMC-tech-task-1> C:\Users\navee\JPMC-tech-task-1>python server.py File "server.py", line 217 print 'HTTP server started on port 8080' ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('HTTP server started on port 8080')?