Python Forum
Error loading location on openweathermap via API with Kivy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error loading location on openweathermap via API with Kivy
#3
I can't print data: it does not come out in the python file but I think is defined via json after querying the openweather site. In theory the line cities = ["{} ({})".format(d['name'], d['sys']['country']) for d in data['list']] should print a list of cities similar to the query typed in the search box, so there are two hits for Vancouver, on in the US and one in Canada. The IDE is also flagging the variable request in search_location because it is never used.
Reply


Messages In This Thread
RE: Error loading location on openweathermap via API with Kivy - by Gigux - Apr-15-2019, 08:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error when running kivy on python janeik 8 2,296 Jun-16-2023, 10:58 PM
Last Post: janeik
  Error loading Trelby.py blackclover 3 2,604 Jan-05-2021, 10:08 PM
Last Post: blackclover
  import error (unknown location) pseudo 1 10,879 Nov-14-2019, 11:47 PM
Last Post: pseudo
  kivy - packaging touchtracer syntax error cram 2 2,623 Oct-14-2019, 08:30 PM
Last Post: cram
  Getting error while loading excel(.xlsx) file using openpyxl module shubhamjainj 1 9,114 Mar-01-2019, 01:05 PM
Last Post: buran
  error creating new object after loading pickled objects from file arogers 2 3,550 Feb-02-2019, 10:43 AM
Last Post: Larz60+
  PyQt5 No Error But GUI Window Not Loading digitalmatic7 1 4,372 Nov-21-2017, 05:23 PM
Last Post: digitalmatic7
  Error while loading the csv file Analyst 3 10,342 Oct-18-2017, 07:07 AM
Last Post: Analyst
  'NoneType' object has no attribute error, when using Kivy Screens chelovek 3 11,254 Feb-05-2017, 05:37 AM
Last Post: chelovek

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020