-
Notifications
You must be signed in to change notification settings - Fork 158
This was such a great course btw! few issues #2
Description
I am running on an issue with the 'import requests' line
and also something is going on with the 'lambda'
Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/init.py", line 1705, in call
return self.func(*args)
File "/Users/singlefawn/PycharmProjects/test/exportToHTML/1997-02.py", line 55, in
button = tk.Button(frame, text="Get Weather", font=40, command=lambda: get_weather(entry.get()))
File "/Users/singlefawn/PycharmProjects/test/exportToHTML/1997-02.py", line 31, in get_weather
response = requests.get(url, params=params)
NameError: name 'requests' is not defined
What's really cool about your videos are you actually are a great teacher, the beat was great I was able to learn through two sitting sessions of your video for about 4 hours all together. I started learning python two months ago now and moving into actually building a desktop app that runs was a big leap. This one video has exposed me to API understanding all the relwidth stuff plenty of really cool stuff. Please keep up the good work!