Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error setting up platform google_maps / TypeError: 'NoneType' object is not iterable

See original GitHub issue

I am trying to make google_maps tracking to work on (Raspberry pi). I get the “TypeError: ‘NoneType’ object is not iterable” error.

I am aware that there are a lot of mentions of this and simular issues. But all is in the closed issues and no solutions are presented. So I open this as a new issue.

Google account

Created new google account and shared tracked user’s position to the new user. Logging into with the new user shows the position of the tracked user. 2-factor logon have been disabled.



  • platform: google_maps username: xxx@yyy.zz password: xyz

The log

When boots I get this in the log:

Error setting up platform google_maps
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/", line 184, in async_setup_platform
  File "/usr/local/lib/python3.7/concurrent/futures/", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/", line 46, in setup_scanner
    scanner = GoogleMapsScanner(hass, config, see)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/", line 66, in __init__
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/", line 78, in _update_info
    for person in self.service.get_all_people():
  File "/usr/local/lib/python3.7/site-packages/locationsharinglib/", line 439, in get_all_people
    people = self.get_shared_people() + [self.get_authenticated_person()]
  File "/usr/local/lib/python3.7/site-packages/locationsharinglib/", line 400, in get_shared_people
    for info in output[0]:
TypeError: 'NoneType' object is not iterable

Possible issues…

When logging into as the new user (on a pc), Google asks me to validate the device by sending me a text message. When I do that I get access… AND - this is despite the fact that 2-factor is disabled…

I am wondering if this could be related to the problem?

In the google account / security / your devices there is no mention of the Raspberry pi…

I hope someone can help…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

costastfcommented, Mar 25, 2019

Hi all, I have created an alpha of a cookiegetter project that drives a browser through selenium and saves the cookies. Please look at for usage (it is quite simple 😃 ) and report issues at the tracker.

costastfcommented, Mar 5, 2019

I have removed the authentication part from locationsharinglib and uploaded version 4 with those changes. I have made a proof of concept project that drives a browser via selenium and saves the cookies in a compatible with locationsharinglib format. If anyone wants to try out the POC and very crud version because they are feeling adventurous you can follow the documentation at the end of the page . This is heavily a work in progress and only works for chrome currently, tested only on Mac (but i guess linux should also work) so please do not start creating issues just yet, unless you also want to contribute. I am planing to clean it up and and make it nicer during the upcoming weekends. I am hoping to have a somewhat properly working version out after the coming weekend supporting chrome for all latest version of Mac, Linux and Windows. Of course if anyone is interested in helping out, all help is welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix TypeError in Python: NoneType Object Is Not Iterable
The Python TypeError: NoneType Object Is Not Iterable error can be avoided by checking if a value is None or not before iterating...
Read more >
TypeError: argument of type 'NoneType' is not iterable after an ...
It's failing at js = json.loads(str(data)) and you're setting js = None , then trying to iterate over it. – tgikal.
Read more >
Platform Legacy Error - Google Maps - Configuration
Platform Legacy Error - Google Maps · Configuration ... Error setting up platform legacy ... TypeError: 'NoneType' object is not iterable
Read more >
Python TypeError: 'NoneType' object is not iterable Solution | CK
The TypeError: 'NoneType' object is not iterable error is raised when you try to iterate over an object whose value is equal to...
Read more >
add_layer 'NoneType' object is not iterable - Esri Community
The error suggests you might have a typo in the layer's name. The layer would not be found and a None would be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found