insidesherpa / JPMC-tech-task-1

56 stars 352 forks source link

error while excuting the code #241

Open naveenk4545 opened 4 years ago

naveenk4545 commented 4 years ago

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')?

satyam8888 commented 3 years ago

Same Error I also got. What should I do??

kaliappan01 commented 3 years ago

@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

dhruti29 commented 3 years ago

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.