insidesherpa / JPMC-tech-task-2-PY3

29 stars 348 forks source link

while running python/datafeed server3.py gives error(Traceback (most recent call last): File "server3.py", line 320, in <module> run(App()) File "server3.py", line 244, in __init__ self._sim_start, _, _ = next(self._data_1) StopIteration #209

Open navreet1999 opened 4 years ago

navreet1999 commented 4 years ago

Traceback (most recent call last): File "server3.py", line 320, in run(App()) File "server3.py", line 244, in init self._simstart, , _ = next(self._data_1) StopIteration

manumohit commented 4 years ago

I am facing same problem. Did you found solution for this?

bhanuteja2001 commented 4 years ago

same issue here too! But the server is working fine for TASK-3

bhanuteja2001 commented 4 years ago

@manumohit and @navreet1999
try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

harmankaur23 commented 4 years ago

I don't know if it would work for you, but I went to JPMC task1 folder and ran server3.py there instead, and npm start from the task 2 folder. Weird but worked:)

paragsahu03 commented 4 years ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

It worked for me

haaskrishna18 commented 4 years ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

It worked for me

it worked for me too!! Thanks a lot brother!

wkolee commented 4 years ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

This work perfectly

Huey-ZhangHaiyu commented 4 years ago

@bhanuteja2001 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

but I uses python3 interpreter, why I can use 'python' instead of 'python3 datafeed/server3.py'

RadientBrain commented 4 years ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

It worked for me

This worked for me too

bhanuteja2001 commented 4 years ago

@Huey-ZhangHaiyu you can use python3 as well if it works for you. The idea is to run server3.py

withteja commented 4 years ago

Check if python has been installed multiple times. I got the same error and uninstalling python helped me solve this issue. checkout this link if you are using mac https://stackoverflow.com/questions/36001966/unable-to-run-python-3-after-homebrew-installation

Punit29 commented 4 years ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

weird but worked for me too thanks 👍 .

vihan02 commented 3 years ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

this works

prakharxyz commented 3 years ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

it is not working!!!

Yooosless commented 2 years ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

i love you

souromisen commented 2 years ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

I tried this but it's still giving me an error:

C:\Users\SOUROMI SEN\JPMC-tech-task-2-PY3>python3 datafeed/server3.py Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

adityakr38 commented 1 year ago

Hey, guys I used python datafeed/server3.py but it didn't worked it says Address already in use. Can someone help me please?

bartotti commented 1 year ago

Hey, guys I used python datafeed/server3.py but it didn't worked it says Address already in use. Can someone help me please?

go to the forage-jpmc-swe-task-2$ and type "python3 datafeed/server3.py" or python datafeed/server3.py hope this helps

AghastyGD commented 10 months ago

'python datafeed/server3.py

Thanks this worked for me

hamza12529 commented 6 months ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

works for me :)

LuxExpanded commented 6 months ago

Screenshot I get this when I enter 'python datafeed/server3.py'

*update after I closed the program and reopened it, it worked fine

hamza12529 commented 6 months ago

Screenshot I get this when I enter 'python datafeed/server3.py'

*update after I closed the program and reopened it, it worked fine

Either you dont have the compiler setup in the project or PATH in system variables.

  1. Try to add python compiler in the project.
  2. If above doesn’t work then See if python is added into the PATH.
  3. If it is not added then try reinstalling python and check the box at the end to add PATH into system/ environment variable. (i dont remember the exact wording right now 😅)
SakshamcodeX commented 5 months ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

its worked for me

vibhasrik commented 4 months ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

Hmm, I ran my code like this and it seems like it is working, but the run is not finishing. I am not able to run "npm start" because the terminal is still running with the python datafeed/server3.py command. I tried with python and python3, but there is no difference.

Screenshot 2024-06-19 at 3 15 40 PM

Edit: Nevermind, I made a silly mistake and forgot to run npm start in a different terminal.

zakard114 commented 2 months ago

@manumohit and @navreet1999 try running the server by using 'python datafeed/server3.py Don't directly go to the directory of datafeed and run!

Thanks mate, you are my lifesaver!

I did this - PS E:\IT_SPACES\AutoProject\Forage\JPMorgan\forage-jpmc-swe-task-2> python datafeed/server3.py