specifically i'm getting this error ```requests.ex...
# ask-community
p
specifically i'm getting this error
Copy code
requests.exceptions.SSLError: HTTPSConnectionPool(host='<http://opensky-network.org|opensky-network.org>', port=443): Max retries exceeded with url: /api/states/all?lamin=37.15294209056667&lamax=40.75094679823332&lomin=-79.76136868215879&lomax=-75.13474242904122 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))
k
Hey @peter zhao, I assume you’re trying to register a lot with a server backend?
p
i'm just running the tutorial example - 01_etl.py I'm still finding my way around prefect. Here's what I have run so far.
Copy code
prefect backend server
prefect server start
prefect agent local start
k
Is it this code snippet you’re trying?
Copy code
import aircraftlib as aclib

dulles_airport_position = aclib.Position(lat=38.9519444444, long=-77.4480555556)
area_surrounding_dulles = aclib.bounding_box(dulles_airport_position, radius_km=200)

# Extract: fetch data from multiple data sources
ref_data = aclib.fetch_reference_data()
raw_aircraft_data = aclib.fetch_live_aircraft_data(area=area_surrounding_dulles)

# Transform: clean the fetched data and add derivative data to aid in the analysis
live_aircraft_data = []
for raw_vector in raw_aircraft_data:
    vector = aclib.clean_vector(raw_vector)
    if vector:
        aclib.add_airline_info(vector, ref_data.airlines)
        live_aircraft_data.append(vector)

# Load: save the data for future analysis
db = aclib.Database()
db.add_live_aircraft_data(live_aircraft_data)
db.update_reference_data(ref_data)
p
yep
k
Ohhh it looks like the aircraftlib API may just have been down for a bit. I just tried it and it ran. Could you try again?
p
Saddly, it still doesnt work. This was run on mac machine On a separate mac machine, it works fine
k
Is that on the same network?
p
different network
k
It seems you computer just can’t make the request Can you try doing this maybe? https://stackoverflow.com/a/59411597
p
python was installed via conda I tried looking for 'install certificates.command' but none to be found
k
What python version are you on and how about the computer where it worked?
p
3.9 on both machines
actually this is not true the working one is on 3.7
k
Prefect doesnt officially support 3.9 anyway, so maybe it’s worth trying to downgrade
p
yes it did work!
wow, thanks!
k
Perfect!