Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server3.py failed to start #124

Open
tony-dev0 opened this issue Jan 22, 2024 · 1 comment
Open

Server3.py failed to start #124

tony-dev0 opened this issue Jan 22, 2024 · 1 comment

Comments

@tony-dev0
Copy link

who can help me with this error message:
File "\forage-jpmc-swe-task-2\datafeed\server3.py", line 342, in
run(App())
File "forage-jpmc-swe-task-2\datafeed\server3.py", line 265, in init
self._sim_start, _, _ = next(self._data_1)
StopIteration

@RajKandane
Copy link

Hi there,

The error you're encountering, StopIteration, typically occurs when an iterator is exhausted, meaning it has no more items to return. In your case, it seems to happen when you're trying to retrieve the next item from self._data_1 in the __init__ method of your App class.

The likely reason is that the iterator self._data_1 is empty, and when you try to get the next item using next(self._data_1), there's nothing left to return. This situation could arise if your CSV file (test.csv) doesn't contain enough data, or if there's an issue with the data format.

To troubleshoot, you can check:

  1. Ensure that your CSV file (test.csv) exists and contains valid data.
  2. Verify that the data in the CSV file is correctly formatted and matches the expectations of your code.
  3. If it's empty, you can simply copy and paste the provided data into this path: \forage-jpmc-swe-task-2\datafeed\test.csv.

You can find the data here test csv , and after that, just copy-paste it into this path: \forage-jpmc-swe-task-2\datafeed\test.csv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants