(Jan-20-2020, 07:34 PM)birdwatcher Wrote: What do you mean by full trace backthat is the whole message that you get when there is error, not just the last line
(Jan-20-2020, 07:34 PM)birdwatcher Wrote: what do I need to do with the URLsee line#8 in my example
also, it's better to use requests package. you need to install it from PyPi
same example with requests
import requests params = {'lat':52.183, 'lon':0.216712239} url = 'http://api.open-notify.org/iss-pass.json' response = requests.get(url, params=params) result = response.json() over = result['response'][1]['risetime'] print(over)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs