Stephen Lyons

@lyonsstephen (0) • California State University, Long Beach
Weather API in Python
posted to Tutorials by LeonDoesCode

I'm having a problem with the beginning API, whenever I try to run the code to output the API key, the code crashes with this error,

Traceback (most recent call last):
File "main.py", line 7, in <module>
APIKEY = os.environ["APIKEY"]
File "/usr/local/lib/python3.7/os.py", line 678, in getitem
raise KeyError(key) from None
KeyError: 'APIKEY'

Any Suggestions?

Persisting Snapshot/Snapshot done message
posted to Ask by lyonsstephen

@Geocube101 @Vandesm14 just disabled explorer. Thank you guys so much for the help. That’s gonna save me from punching a hole through my screen 😂

Persisting Snapshot/Snapshot done message
posted to Ask by lyonsstephen

@Geocube101 it happens on all of my repls, hence my frustration but here's a picture example