I have used the following on my script with Anaconda, since April but since 24/06/2020 whenever I try to run the library it returns the following:
`---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
in
1 # Save Arrivals CSV
----> 2 FlightTables.arrivals_csv("2020-07-01")
3
4 # Save Departures CSV
5 FlightTables.departures_csv("2020-07-01")
~\Anaconda3\lib\site-packages\flight_tables\flight_tables.py in arrivals_csv(self, iso_date_str)
10 @classmethod
11 def arrivals_csv(self, iso_date_str):
---> 12 self.date_to_csv(iso_date_str, "arrivals")
13
14 @classmethod
~\Anaconda3\lib\site-packages\flight_tables\flight_tables.py in date_to_csv(iso_date_str, direction)
30 heathrow_raw_dict = fetch_heathrow_data(iso_date_str, direction)
31
---> 32 batch_info = extract_batch_heathrow(heathrow_raw_dict)
33
34 parsed_flights = ParsedFlights(batch_info)
~\Anaconda3\lib\site-packages\flight_tables\heathrow_parsing.py in extract_batch_heathrow(response)
113 batch_info = [] # List with flight_info from multiple flights
114
--> 115 raw_flights = response['flightSummaryList']['flight']
116
117 for flight in raw_flights:
KeyError: 'flightSummaryList'`
I am not sure how to resolve this though.
I have used the following on my script with Anaconda, since April but since 24/06/2020 whenever I try to run the library it returns the following:
`---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
in
1 # Save Arrivals CSV
----> 2 FlightTables.arrivals_csv("2020-07-01")
3
4 # Save Departures CSV
5 FlightTables.departures_csv("2020-07-01")
~\Anaconda3\lib\site-packages\flight_tables\flight_tables.py in arrivals_csv(self, iso_date_str)
10 @classmethod
11 def arrivals_csv(self, iso_date_str):
---> 12 self.date_to_csv(iso_date_str, "arrivals")
13
14 @classmethod
~\Anaconda3\lib\site-packages\flight_tables\flight_tables.py in date_to_csv(iso_date_str, direction)
30 heathrow_raw_dict = fetch_heathrow_data(iso_date_str, direction)
31
---> 32 batch_info = extract_batch_heathrow(heathrow_raw_dict)
33
34 parsed_flights = ParsedFlights(batch_info)
~\Anaconda3\lib\site-packages\flight_tables\heathrow_parsing.py in extract_batch_heathrow(response)
113 batch_info = [] # List with
flight_infofrom multiple flights114
--> 115 raw_flights = response['flightSummaryList']['flight']
116
117 for flight in raw_flights:
KeyError: 'flightSummaryList'`
I am not sure how to resolve this though.