You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
Ensure that your CSV file (test.csv) exists and contains valid data.
Verify that the data in the CSV file is correctly formatted and matches the expectations of your code.
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.
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
The text was updated successfully, but these errors were encountered: