insidesherpa / JPMC-tech-task-1

56 stars 350 forks source link

How to resolve this #256

Open thepredator07 opened 3 years ago

thepredator07 commented 3 years ago

:\Users\xxx\JPMC-tech-task-1>python server.py File "C:\Users\xxx\JPMC-tech-task-1\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')?

Debosmita-web commented 3 years ago

Check for the name of the server.py file which was downloaded in the folder JPMC-tech-task-1 in your system

JackwinJoseph3121 commented 3 years ago

Just check if your using the python version-3 or python 2 file. Parentheses are needed for print function in python 3

jerripothula commented 3 years ago

For python 3 you need paranthese to print like print( ), where as in pyhton 2 you don't require

jerripothula commented 3 years ago

if you go down below the pdf of the setup, you can find the answer where you can install dateutil. If it doesn't work let me know

jerripothula commented 3 years ago

try to do it in repl in python3 otherwise

aanos-m commented 2 years ago

or you can use the python3 version. i had the same issue but once I used C:\Users\xxx\JPMC-tech-task-1-py3 and then did the python servr3.py and python client3.py it worked