insidesherpa / JPMC-tech-task-1-PY3

50 stars 448 forks source link

Missing parentheses in call to 'print'. Did you mean print('HTTP server started on port 8080')? #223

Open qiandeng8 opened 2 years ago

qiandeng8 commented 2 years ago

(base) qian@qiandeMBP JPMC-tech-task-1 % python client.py File "/Users/qian/JPMC-tech-task-1/client.py", line 57 print "Quoted %s at (bid:%s, ask:%s, price:%s)" % (stock, bid_price, ask_price, price) ^ SyntaxError: invalid syntax (base) qian@qiandeMBP JPMC-tech-task-1 % ps aux | grep 5434 qian 25511 0.0 0.0 408628368 1648 s000 S+ 9:42PM 0:00.00 grep 5434 (base) qian@qiandeMBP JPMC-tech-task-1 % kill -9 zsh: parse error near `\n' (base) qian@qiandeMBP JPMC-tech-task-1 % python3 server3.py python3: can't open file '/Users/qian/JPMC-tech-task-1/server3.py': [Errno 2] No such file or directory (base) qian@qiandeMBP JPMC-tech-task-1 % python server.py File "/Users/qian/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')? (base) qian@qiandeMBP JPMC-tech-task-1 % (python server.py) File "/Users/qian/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')? (base) qian@qiandeMBP JPMC-tech-task-1 % ('python server.py') zsh: command not found: python server.py (base) qian@qiandeMBP JPMC-tech-task-1 % (python server.py) File "/Users/qian/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')? (base) qian@qiandeMBP JPMC-tech-task-1 % print('HTTP server started on port 8080') zsh: unknown file attribute: H

Umasrivally commented 2 years ago

I'm getting the same error, did u resolved it?

Ganesh4545454 commented 2 years ago

Same error

surya-547 commented 1 year ago

Same error Can anyone help me? Screenshot (10)