Sylwia0506 / Projekt_IoT

1 stars 0 forks source link

The simulator throws exceptions after a minute of running #56

Closed TheYoungBeast closed 9 months ago

TheYoungBeast commented 9 months ago

Error dump:

ERROR:apscheduler.executors.default:Job "Scheduler.run_task (trigger: interval[0:00:01], next run at: 2023-11-15 00:08:41 CET)" raised an exception
2023-11-15 00:08:40 Traceback (most recent call last):
2023-11-15 00:08:40   File "/usr/local/lib/python3.11/site-packages/apscheduler/executors/base.py", line 125, in run_job
2023-11-15 00:08:40     retval = job.func(*job.args, **job.kwargs)
2023-11-15 00:08:40              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:40   File "/scheduler.py", line 15, in run_task
2023-11-15 00:08:40     self.logger.debug(self.task_method(client))
2023-11-15 00:08:40                       ^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:40   File "//main.py", line 80, in publish
2023-11-15 00:08:40     (long, lat) = road_generator.get_next_point_coordinates()
2023-11-15 00:08:40                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:40   File "/road_generator.py", line 43, in get_next_point_coordinates
2023-11-15 00:08:40     route = generate_route(current_point=get_long_lat(route[index]))
2023-11-15 00:08:40             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:40   File "/road_generator.py", line 15, in generate_route
2023-11-15 00:08:40     starting_point = ox.nearest_nodes(Gp, current_point[0], current_point[1])
2023-11-15 00:08:40                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:40   File "/usr/local/lib/python3.11/site-packages/osmnx/distance.py", line 296, in nearest_nodes
2023-11-15 00:08:40     raise ImportError(msg)
2023-11-15 00:08:40 ImportError: scikit-learn must be installed to search an unprojected graph
2023-11-15 00:08:41 ERROR:apscheduler.executors.default:Job "Scheduler.run_task (trigger: interval[0:00:01], next run at: 2023-11-15 00:08:42 CET)" raised an exception
2023-11-15 00:08:41 Traceback (most recent call last):
2023-11-15 00:08:41   File "/usr/local/lib/python3.11/site-packages/apscheduler/executors/base.py", line 125, in run_job
2023-11-15 00:08:41     retval = job.func(*job.args, **job.kwargs)
2023-11-15 00:08:41              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:41   File "/scheduler.py", line 15, in run_task
2023-11-15 00:08:41     self.logger.debug(self.task_method(client))
2023-11-15 00:08:41                       ^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:41   File "//main.py", line 80, in publish
2023-11-15 00:08:41     (long, lat) = road_generator.get_next_point_coordinates()
2023-11-15 00:08:41                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:41   File "/road_generator.py", line 45, in get_next_point_coordinates
2023-11-15 00:08:41     return get_long_lat(route[index])
2023-11-15 00:08:41                         ~~~~~^^^^^^^
2023-11-15 00:08:41 IndexError: list index out of range
2023-11-15 00:08:42 ERROR:apscheduler.executors.default:Job "Scheduler.run_task (trigger: interval[0:00:01], next run at: 2023-11-15 00:08:43 CET)" raised an exception
2023-11-15 00:08:42 Traceback (most recent call last):
2023-11-15 00:08:42   File "/usr/local/lib/python3.11/site-packages/apscheduler/executors/base.py", line 125, in run_job
2023-11-15 00:08:42     retval = job.func(*job.args, **job.kwargs)
2023-11-15 00:08:42              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:42   File "/scheduler.py", line 15, in run_task
2023-11-15 00:08:42     self.logger.debug(self.task_method(client))
2023-11-15 00:08:42                       ^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:42   File "//main.py", line 80, in publish
2023-11-15 00:08:42     (long, lat) = road_generator.get_next_point_coordinates()
2023-11-15 00:08:42                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:42   File "/road_generator.py", line 45, in get_next_point_coordinates
2023-11-15 00:08:42     return get_long_lat(route[index])
2023-11-15 00:08:42                         ~~~~~^^^^^^^
2023-11-15 00:08:42 IndexError: list index out of range
2023-11-15 00:08:43 ERROR:apscheduler.executors.default:Job "Scheduler.run_task (trigger: interval[0:00:01], next run at: 2023-11-15 00:08:44 CET)" raised an exception
2023-11-15 00:08:43 Traceback (most recent call last):
2023-11-15 00:08:43   File "/usr/local/lib/python3.11/site-packages/apscheduler/executors/base.py", line 125, in run_job
2023-11-15 00:08:43     retval = job.func(*job.args, **job.kwargs)
2023-11-15 00:08:43              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:43   File "/scheduler.py", line 15, in run_task
2023-11-15 00:08:43     self.logger.debug(self.task_method(client))
2023-11-15 00:08:43                       ^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:43   File "//main.py", line 80, in publish
2023-11-15 00:08:43     (long, lat) = road_generator.get_next_point_coordinates()
2023-11-15 00:08:43                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-15 00:08:43   File "/road_generator.py", line 45, in get_next_point_coordinates
2023-11-15 00:08:43     return get_long_lat(route[index])
2023-11-15 00:08:43                         ~~~~~^^^^^^^