Had an awesome day building 3 of your in depth build alongs. Thank you for explaining along the way as a newcomer with no experience, I feel I learned quite a bit. I look forward to many more build along videos. Thank you for Canada!
Hey I got an error Traceback(most recent call last): line 2, in Import requests ModuleNotFoundError: No module named requests Can you please rectify this error
please may you help me I’m getting a message that’s says “error : pips dependency resolver does not currently take into account all the packages …. And it’s still saying “no module named requests
Its showing Problem-Import "requests" could not be resolved from source, So I added "pip install requests2" But again showing the same problem Please fix this
Can you help me I am getting a error in the import requests I have done pip install request in command prompt In that I am getting module named error request
@@CodingWithEvanplease may you help me I’m getting a message that’s says “error : pips dependency resolver does not currently take into account all the packages …. And it’s still saying “no module named requests
Followed pretty easy but no matter what I do, my code runs into an error on line 10, format correct. My API is correct and runs on a similar APP I did (with no tkinter) so I know my API is valid and working but does not like my JSON format but my API keeps saying invalid. Please help
Exception in Tkinter callback Traceback (most recent call last): File return self.func(*args) File "c:\Python Project\weather_app.py", line 14, in getWeather condition= json_data['weather'][0]['main'] KeyError: 'weather' I am getting this error, Can anyone please help
in __call__ return self.func(*args) File "c:\PythonPrograms\Clima\clima.py", line 12, in getWeather condition = json_data['weather'][0]['main'] TypeError: 'method' object is not subscriptable
thank you evan but if you enter invalid request app crashes the page gives """cod: '200' """ result to me if entry is valid. and you get cod: "404" if you enter asdasdqasdad you could write a basic if statement to give error message
Exception in Tkinter callback Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\Lib\tkinter\__init__.py", line 1948, in __call__ return self.func(*args) ^^^^^^^^^^^^^^^^ File "c:\Users\Christian.Craigen.CORDISH\OneDrive - Live! Casino and Hotel\Documents\Test Folder Python VS Code\Weather API Proj", line 9, in getWeather condition = json_data['weather'][0]['main'] ~~~~~~~~~^^^^^^^^^^^ TypeError: 'method' object is not subscriptable Getting this Error when typing in a city for example
To get your API Key: Login to openweathermap then goto "My API Keys" under your profile name. There you will find your API key.
What next step
Which complainer u use and how to do it
Facing tclerror anyone help me out
Had an awesome day building 3 of your in depth build alongs.
Thank you for explaining along the way as a newcomer with no experience, I feel I learned quite a bit.
I look forward to many more build along videos.
Thank you for Canada!
to save people time, the api allows you to return imperial or metric measurements by adding "&units=imperial" before the appid
aight ni ga
This is fantastic, thank you! Did it from start to finish :)
ভালোই হইল। এপিআই ও শিখে নিলাম এখান থেকে টুকটাক।
জোস!
Very good project I was able to follow along and actually finish it!
hi
thanks your vids help me a lot, i am able to do stuff i did not know how to.
Thank you Mr Evan
Happy to help!
Hey I got an error
Traceback(most recent call last): line 2, in
Import requests
ModuleNotFoundError: No module named requests
Can you please rectify this error
Hey even I got the same error
Did you get the solutions
@@sagarkotian7178 yes, I got it you to install requests module. For that you go to terminal and type pip install requests.
Heyy!!
When I am running my program it is showing "no module named requests"
Can you pls tell what to do ??
you can change the import to this - import pip._vendor.requests as requests
Bhaiya apner video gula very higher level , i like your video tutorial. bhaiya bangla te korle aro besi halpfull hoyto amader jonno.
please may you help me I’m getting a message that’s says “error : pips dependency resolver does not currently take into account all the packages …. And it’s still saying “no module named requests
I am getting an error that says, " No module named requests." on PyCharm.What do I do?
If you have pip installed in your computer, go to cmd prompt or terminal and type, pip install requests
Please make a video for the same thing as an apk(android application). Thank you.
Great, thank you Mr Evan
i have error in textfield and and showing city not difine
Amazing!
Do you know make a map with quiser with vectors?
In my one Its showin wrong API key erorr can you tell me what Ineed to do
not showing Accurate Temp. even not showing max and min temperature but other things like humidity pressure are working well. please help
I hope more videos are coming soon👍👌
hey great video , how do u add the celsius symbol ?
its Alt + 0176 btw for anyone interested
i dont get what u get on the 5:53
I am your No.1 fan
Thank you so much.
Its showing Problem-Import "requests" could not be resolved from source,
So I added "pip install requests2"
But again showing the same problem
Please fix this
Same
This app is created in pycharm or anywhere else. I have not much experience of application.
Can you help me I am getting a error in the import requests
I have done pip install request in command prompt
In that I am getting module named error request
Try pip install requests2
@@CodingWithEvan thank you got it
@@CodingWithEvanplease may you help me I’m getting a message that’s says “error : pips dependency resolver does not currently take into account all the packages …. And it’s still saying “no module named requests
Can u please help me there is project in my clg and i have to create blackbook on the same weather in python topic!!!
Pycharm is okay to built this project? And which libraries are pre requisite for this project please let me know, thanks.
I would recommend using the software he is using
Facing tclerror anyone help me
I am getting error
In get weather condition
'weather' what is the solution
How much should i subtract from the gm time if I am in US EST?
I am using visual studio code, and I am facing this issue: ModulenotFound: No module named Tkinter
there is no capital t in tkinter. You should write import tkinter as tk.
What is that postman thing
at 10:39 what is the meaning of this (main) ??? Can someone tell please?
Working , thanks bro❤️
Hello pls can I get your exact code?
thanks buddy :)
Followed pretty easy but no matter what I do, my code runs into an error on line 10, format correct. My API is correct and runs on a similar APP I did (with no tkinter) so I know my API is valid and working but does not like my JSON format but my API keeps saying invalid. Please help
Hey even am facing the same problem please someone help
From where you learnt this all informations? Please reply me
Sir, I am having a problem about import request error please sir give solution
I'm having the same issue
Bro, Which code editor you using ?
- pycharm
- Vs code
Vs code.
I'm getting error in the line canvas.geometry ("600*500") it shows that it is a bad geometry specifier.. Plz help me
replace "*" with "x"
@@CodingWithEvan Yeah got it... Thank you for you reply
Hi, for me it showing exception in tkinter callback
Hy,i am getting an error in final_info=condition+"
"+str(temp)+"°C" line. I don't know what is rong there i followed everythng as u showed
I need to see your code. You can send it here or dm me on facebook.
@@CodingWithEvan can u tell me ur fb id?
How do I apply CSS here? I am getting errors if I try to change the f and t variables.
Hey, im getting an error called module not found error: no module named requests, can you help me pls
go to terminal and write "pip install requests" then hit enter.
@@emranevan it keeps giving me the same error
@@duarteandre_ same
@@vervainsleeping4140 i tried it with pycharm and now its working
@@duarteandre_in VS code after pip install requests, you need to close that terminal and then reopen it. It will then import your module.
how do i make it in Fahrenheit?
You can easily configure units through typing "&units=Imperial" or Metric right before the city
How i can edit look of this
Evan mi amor besos y gracias por el tutorial, me has ayudado con un proyecto muy importante
Mi placer
It worked thanks alot
My Commands Are Telling That Requests Command Is Not Working Pls Tell How To Fix That!
type in pip install requests within the console window if you are using vs code
hey Evan actually I am a beginner,so dont get pissed off on my question. Can I use this project in my resume in the future?
Sure. You can.
@@CodingWithEvan thank you for replying!!
bro, what is postman ?
nice one bro
Is there anything in this related to machine learning????
Nope
Where to write this code?
Best Vedio!
can i use * instead of the multiplication symble
Yes
no it will give an error but this was two years ago
bro how to go Postman site
In mine, always show "SyntaxError: invalid sintax
I tryed same but not make clock
may I ask for the code to be part of my college assignment?
I encountered this error: unresolved import 'requests'. What can I do?
You need to install the requests package in your development suite. Which one are you using?
try simply typing: pip install requests within the console itself
Can we create in pycharm?
yes.
How can i add a background picture ?
I have an error... Attributeerror: module tkinter has no attribute TK
What can i do??
Bro It's Tk, Capital T and small k.
@@CodingWithEvan yeah it's work..thank you so much❤️
how to add css in the code?
Exception in Tkinter callback
Traceback (most recent call last):
File
return self.func(*args)
File "c:\Python Project\weather_app.py", line 14, in getWeather
condition= json_data['weather'][0]['main']
KeyError: 'weather'
I am getting this error, Can anyone please help
I'm getting the same problem
Please tell me the solution of this
@sonali Goyal did you get the solution?
There was mistake in my API url so need to fix that
there is (canvas=tk.tk()
AttributeError: module 'tkinter' has no attribute 'tk') error in my file . How to fix this thank you
It's "canvas=tk.Tk()"
You missed the capital letter.
@@CodingWithEvan Thank you so much
in __call__
return self.func(*args)
File "c:\PythonPrograms\Clima\clima.py", line 12, in getWeather
condition = json_data['weather'][0]['main']
TypeError: 'method' object is not subscriptable
I am getting the same error did you find the solution?
@@kuldeepxd519 I’ve solved it but I don’t remember how
Did you remember
can you make a video how to download python and set up?
Sure. I am working on that.
@@CodingWithEvan Thank you so much!!
Yeah plzz mention the vdo link in this comment
NameError: name 'textfield' is not defined
What to do wtih this?? anyone??
Which software is it
VS Code
Are you from Bangladesh?
Sir can i use the same api key 🙏🙏🙏
You can. But not sure if it will work or not.
You can get your own api key from their website. It's free.
It is so confusing how to get the API, please make it clearer
Still having trouble?
@@pythonprospect532 yeah ig
i m from lahore
TCL error bad geometry specifier 600x500
thank you evan but if you enter invalid request app crashes
the page gives """cod: '200' """ result to me if entry is valid. and you get cod: "404" if you enter asdasdqasdad
you could write a basic if statement to give error message
Thanks /\
here is my code
I couldn't subscribe because its paid now... not free. :_(
import tkinter as tk
import requests
import time
def getWeather(canvas):
city = textfield.get()
api = "api.openweathermap.org/data/2.5/weather?q=" + city +"India&appid=5b5d290f66bedfd0d48aacf96faa0091"
json_data = requests.get(api).json()
condition = json_data['weather'][0]['main']
temp = int(json_data['main']['temp'] - 273.15)
min_temp = int(json_data['main']['temp_min'] - 273.15)
max_temp = int(json_data['main']['temp_max'] - 273.15)
pressure = json_data['main']['pressure']
humidity = json_data['main']['humidity']
wind = json_data['wind']['speed']
sunrise = time.strftime("%H:%M:%S", time.gettime(json_data['sys']['sunrise']-21600))
sunset = time.strftime("%H:%M:%S", time.gettime(json_data['sys']['sunset']-21600))
final_info = condition + "
" + str(temp) + "°C"
final_data = "
" + "Max Temp: " + str(max_temp) + "
" + "Min Temp: " + str(min_temp) + "
" + "Pressure: " + str(pressure) + "
" + "Humidity: " + str(humidity) + "
" + "Wind Speed: " + str(wind) + "
" + "Sunrise: " + sunrise + "
" + "Sunset: " + sunset
label1.config(text = final_info)
label2.config(text = final_data)
canvas = tk.Tk()
canvas.geometry("600x500")
canvas.title("Weather App")
f = ("poppins", 15, "bold")
t = ("poppins", 35, "bold")
textfield = tk.Entry(canvas, font = t)
textfield.pack(pady = 20)
textfield.focus()
textfield.bind('', getWeather)
label1 = tk.Label(canvas, font = t)
label1.pack()
label2 = tk.Label(canvas, font = t)
label2.pack()
canvas.mainloop()
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\Lib\tkinter\__init__.py", line 1948, in __call__
return self.func(*args)
^^^^^^^^^^^^^^^^
File "c:\Users\Christian.Craigen.CORDISH\OneDrive - Live! Casino and Hotel\Documents\Test Folder Python VS Code\Weather API Proj", line 9, in getWeather
condition = json_data['weather'][0]['main']
~~~~~~~~~^^^^^^^^^^^
TypeError: 'method' object is not subscriptable Getting this Error when typing in a city for example
Facing tclerror anyone help me out