home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.99k stars 29.07k forks source link

Google Maps Issue #16142

Closed dennisbrouwer91 closed 4 years ago

dennisbrouwer91 commented 5 years ago

Home Assistant release with the issue: 0:76.2

Last working Home Assistant release (if known): The previous one

Operating environment (Hass.io/Docker/Windows/etc.): Hass.io

Component/platform: Google Maps Travel Time

Description of problem:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/google_travel_time.py", line 112, in run_setup
    hass, name, api_key, origin, destination, options)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/google_travel_time.py", line 147, in __init__
    self.update()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 325, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/google_travel_time.py", line 228, in update
    self._origin, self._destination, **options_copy)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 356, in wrapper
    result = func(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/distance_matrix.py", line 130, in distance_matrix
    return client._request("/maps/api/distancematrix/json", params)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  [Previous line repeated 8 more times]
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 203, in _request
    raise googlemaps.exceptions.Timeout()
googlemaps.exceptions.Timeout

Home-Assistant isn't fetching travel time anymore.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

- platform: google_travel_time
  name: home_to_hlb
  api_key: <Key>
  origin: <Address>
  destination: <Address>

Traceback (if applicable):

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/google_travel_time.py", line 112, in run_setup
    hass, name, api_key, origin, destination, options)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/google_travel_time.py", line 147, in __init__
    self.update()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 325, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/google_travel_time.py", line 228, in update
    self._origin, self._destination, **options_copy)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 356, in wrapper
    result = func(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/distance_matrix.py", line 130, in distance_matrix
    return client._request("/maps/api/distancematrix/json", params)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  [Previous line repeated 8 more times]
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 203, in _request
    raise googlemaps.exceptions.Timeout()
googlemaps.exceptions.Timeout

Additional information:

Danielhiversen commented 5 years ago

Hmm, it works here

mababio commented 5 years ago

What hardware are you running this on?

dennisbrouwer91 commented 5 years ago

@mababio Running it on an Intel NUC with Proxmox, which runs a Ubuntu VM with Hassio!

slackr31337 commented 5 years ago

Hi, I have the same issue.

Release 0.76.2

Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/sensor/google_travel_time.py", line 112, in run_setup
    hass, name, api_key, origin, destination, options)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/sensor/google_travel_time.py", line 147, in __init__
    self.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/util/__init__.py", line 325, in wrapper
    result = method(*args, **kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/sensor/google_travel_time.py", line 228, in update
    self._origin, self._destination, **options_copy)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 356, in wrapper
    result = func(*args, **kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/distance_matrix.py", line 130, in distance_matrix
    return client._request("/maps/api/distancematrix/json", params)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/googlemaps/client.py", line 203, in _request
    raise googlemaps.exceptions.Timeout()
googlemaps.exceptions.Timeout
mababio commented 5 years ago

@dennisbrouwer91 I asked about the hardware b/c I had a similar issue on a raspberry pi doing something else.

It's working for @Danielhiversen, but not for others. Maybe we should start comparing python environment.

@dennisbrouwer91 & @Danielhiversen share your your python environment. try pip3 list or something and paste it here

dennisbrouwer91 commented 5 years ago

Just did a pip3 list in the container :

/config # cat pip.txt

Package Version


abodepy 0.13.1

Adafruit-GPIO 1.0.3

Adafruit-PCA9685 1.0.1

Adafruit-PureIO 0.2.3

Adafruit-SHT31 1.0.2

aenum 2.1.2

afsapi 0.0.3

aioautomatic 0.6.5

aiocoap 0.4a1

aiodns 1.1.1

aiofreepybox 0.0.4

aioftp 0.10.1

aiohttp 3.3.2

aiohttp-cors 0.7.0

aiohue 1.5.0

aioimaplib 0.7.13

aiolifx 0.6.3

aiolifx-effects 0.1.2

aiopvapi 1.5.4

alabaster 0.7.11

aladdin-connect 0.1

alarmdecoder 1.13.2

alpha-vantage 2.0.0

amcrest 1.2.3

android-backup 0.2.0

anel-pwrctrl-homeassistant 0.0.1.dev2

anthemav 1.1.8

apcaccess 0.0.13

apns2 0.3.0

appdirs 1.4.3

argcomplete 1.9.4

argh 0.26.2

asn1crypto 0.24.0

asterisk-mbox 0.4.0

astral 1.6.1

async-timeout 3.0.0

async-upnp-client 0.12.3

asyncio 3.4.3

atomicwrites 1.1.5

attrs 18.1.0

Automat 0.7.0

axis 14

Babel 2.6.0

baidu-aip 1.6.6.0

basicmodem 0.7

batinfo 0.4.2

beacontools 1.2.3

beautifulsoup4 4.6.1

bellows 0.6.0

bimmer-connected 0.5.1

bitstring 3.1.5

blinkpy 0.6.0

BlinkStick 1.1.8

blinkt 0.1.0

blockchain 1.4.4

bluepy 1.1.4

boto3 1.4.7

botocore 1.7.34

braviarc-homeassistant 0.3.7.dev0

broadlink 0.9

brotlipy 0.7.0

brunt 0.1.2

bs4 0.0.1

bt-proximity 0.1.2

bthomehub5-devicelist 0.1.1

btlewrap 0.0.2

buienradar 0.91

cached-property 1.4.3

cachetools 2.0.1

caldav 0.5.0

cchardet 2.1.1

certifi 2018.8.13

cffi 1.11.5

cffi-utils 0.79

chardet 3.0.4

ciscosparkapi 0.4.2

class-registry 2.1.2

click 6.7

click-datetime 0.2

click-log 0.2.0

click-plugins 1.0.3

coinbase 2.1.0

coinmarketcap 5.0.3

colorama 0.3.9

colorlog 3.1.4

concord232 0.15

constantly 15.1.0

construct 2.9.41

cookies 2.2.1

coverage 4.5.1

crccheck 0.6

crcmod 1.7

crimereports 1.0.0

cryptography 2.3.1

curve25519-donna 1.3

Cython 0.28.5

datadog 0.15.0

datapoint 0.4.3

decora 0.6

decora-wifi 1.3

decorator 4.3.0

defusedxml 0.5.0

deluge-client 1.4.0

demjson 2.2.4

denonavr 0.7.5

dicttoxml 1.7.4

directpy 0.5

discogs-client 2.2.1

discord.py 0.16.12

distro 1.3.0

dlib 19.14.0

dlipower 0.7.165

dnspython 1.15.0

dnspython3 1.15.0

docopt 0.6.2

docutils 0.14

DoorBirdPy 0.1.3

dovado 0.4.1

dsmr-parser 0.11

DTLSSocket 0.1.7

dweepy 0.3.0

ecdsa 0.13

ed25519 1.4

einder 0.3.1

eliqonline 1.0.14

enocean 0.40

entrypoints 0.2.3

enum-compat 0.0.2

envoy-reader 0.1

envs 1.2.6

ephem 3.7.6.0

epson-projector 0.1.3

eternalegypt 0.0.3

evdev 0.6.1

evohomeclient 0.2.5

fastdotcom 0.0.3

fedexdeliverymanager 1.0.6

feedparser 5.2.1

filters 1.3.2

fints 0.2.1

fitbit 0.3.0

fixerio 1.0.0a0

Flask 1.0.2

flux-led 0.21

foobot-async 0.3.1

freesms 0.1.2

fritzconnection 0.6.5

fritzhome 1.0.4

future 0.16.0

fuzzywuzzy 0.17.0

gearbest-parser 1.0.7

geographiclib 1.49

geojson 2.3.0

geopy 1.16.0

get-mac 0.2.3

gitdb 0.6.4

GitPython 0.3.6

gitterpy 0.1.7

gmpy2 2.0.8

gntp 1.0.3

google-api-python-client 1.6.4

googlemaps 2.5.1

gps3 0.33.3

gql 0.1.0

graphql-core 2.1

greenwavereality 0.5.1

gstreamer-player 1.1.0

gTTS-token 1.1.1

h2 2.6.2

ha-ffmpeg 1.9

ha-philipsjs 0.0.5

HAP-python 2.2.2

haversine 0.4.5

hbmqtt 0.9.2

heatmiserV3 0.9.1

hikvision 0.4

hipnotify 1.0.8

hkdf 0.0.3

hole 0.3.0

holidays 0.9.6

home-assistant-frontend 20180820.0

homeassistant 0.76.2

homekit 0.10

homematicip 0.9.8

hpack 3.0.0

html-table-parser-python3 0.1.5

httmock 1.2.6

http-ece 1.0.5

httplib2 0.10.3

Hydrawiser 0.1.1

hyper 0.7.0

hyperframe 3.2.0

hyperlink 18.0.0

i2csense 0.0.4

ibmiotf 0.3.4

idna 2.7

idna-ssl 1.1.0

iglo 1.2.7

ihcsdk 2.2.0

imagesize 1.0.0

incremental 17.5.0

inflect 1.0.0

inflection 0.3.1

influxdb 5.0.0

insteonlocal 0.53

insteonplm 0.11.7

intelhex 2.2.1

iperf3 0.1.10

iso8601 0.1.12

isodate 0.6.0

itsdangerous 0.24

jeepney 0.3.1

Jinja2 2.10

jmespath 0.9.3

jsonpath 0.75

jsonpickle 0.9.6

jsonrpc-async 0.6

jsonrpc-base 1.0

jsonrpc-websocket 0.6

keyring 13.2.1

keyrings.alt 3.1

kiwiki-client 0.1.1

konnected 0.1.2

lakeside 0.7

libnacl 1.6.1

libpurecoollink 0.4.2

libpyfoscam 1.0

librouteros 2.1.0

libsoundtouch 0.7.2

liffylights 0.9.4

lightify 1.0.6.1

limitlessled 1.1.2

linode-api 4.1.9b1

liveboxplaytv 2.0.2

lmnotify 0.0.4

locationsharinglib 2.0.11

lomond 0.1.14

luftdaten 0.2.0

lw12 0.9.2

lxml 4.2.4

lyft-rides 0.2

magicseaweed 1.0.0

MarkupSafe 1.0

Mastodon.py 1.3.1

matrix-client 0.2.0

maxcube-api 0.1.0

messagebird 1.2.0

mficlient 0.3.0

miflora 0.4

mitemp-bt 0.0.1

more-itertools 4.3.0

motorparts 1.0.2

mt-940 4.12.2

multidict 4.3.1

mutagen 1.41.0

mychevy 0.4.0

mycroftapi 2.0

mysqlclient 1.3.13

myusps 1.3.2

nad-receiver 0.0.9

nanoleaf 0.4.1

ndms2-client 0.0.3

netaddr 0.7.19

netdata 0.1.2

netdisco 2.0.0

netifaces 0.10.7

neurio 0.3.1

nose 1.3.7

nsapi 2.7.4

nsw-fuel-api-client 1.0.10

nuheat 0.3.0

numpy 1.15.0

oauth2client 4.0.0

oauthlib 2.1.0

oemthermostat 1.1

onkyo-eiscp 1.2.4

onvif-py3 0.1.3

openevsewifi 0.4

openhomedevice 0.4.2

orvibo 1.1.1

packaging 17.1

paho-mqtt 1.3.1

panasonic-viera 0.3.1

passlib 1.7.1

pathtools 0.1.2

pbr 4.2.0

pdunehd 1.3

pexpect 4.6.0

pifacecommon 4.1.2

pifacedigitalio 3.0.5

piglow 1.2.4

pigpio 1.35

pilight 0.1.1

Pillow 5.2.0

pip 10.0.1

pizzapi 0.0.3

PlexAPI 3.0.6

pluggy 0.7.1

ply 3.11

pmsensor 0.4

pocketcasts 0.1

postnl-api 1.0.2

pretty-cron 1.1.0

prettytable 0.7.2

proliphix 0.4.1

prometheus-client 0.2.0

promise 2.1

protobuf 3.6.1

psutil 5.4.6

psycopg2 2.7.5

ptyprocess 0.6.0

pubnub 4.0.10

pubnubsub-handler 1.0.2

pure-pcapy3 1.0.1

pushbullet.py 0.11.0

pushetta 1.0.15

pwmled 1.2.1

py 1.5.4

py-august 0.6.0

py-canary 0.5.0

py-cpuinfo 4.0.0

py-melissa-climate 1.0.6

py-ryobi-gdo 0.0.10

py-synology 0.2.0

py-vapid 1.4.0

py25519 0.13.28

pyads 2.2.6

pyairvisual 2.0.1

pyalarmdotcom 0.3.2

pyarlo 0.2.0

pyasn1 0.3.7

pyasn1-modules 0.1.5

pyatmo 1.1.1

pyatv 0.3.10

pybbox 0.0.5a0

pyblackbird 0.5

PyBluez 0.22

pybotvac 0.0.9

pycares 2.3.0

pyCEC 0.4.13

pycfdns 0.0.1

pychannels 1.0.0

PyChromecast 2.1.0

pycmus 0.1.1

pycomfoconnect 0.3

pycparser 2.18

PyCRC 1.21

pycryptodome 3.6.6

pycryptodomex 3.6.6

pycsspeechtts 1.0.2

pycups 1.9.73

pydaikin 0.4

pydeconz 43

PyDispatcher 2.0.5

pydroid-ipcam 0.8

pydukeenergy 0.0.6

pyebox 1.1.4

pyeconet 0.0.5

pyedimax 0.1

pyEight 0.0.9

pyEmby 1.5

pyenvisalink 2.3

pyephember 0.1.1

pyfido 2.1.1

pyflexit 0.3

pyflic-homeassistant 0.4.dev0

pyfnip 0.2

pyfritzhome 0.3.7

pyfttt 0.3

pygatt 3.2.0

Pygments 2.2.0

pygogogate2 0.1.1

pygtfs-homeassistant 0.1.3.dev0

PyHamcrest 1.9.0

pyharmony 1.0.20

pyHik 0.1.8

pyhiveapi 0.2.14

pyhomematic 0.1.46

pyHS100 0.3.2

pyhydroquebec 2.2.2

pyialarm 0.2

pyicloud 0.9.1

pyipma 1.1.3

pyirishrail 0.0.2

pyiss 1.0.1

PyISY 1.1.0

pyitachip2ir 0.0.7

PyJWT 1.6.4

pykira 0.1.1

pykwb 0.0.8

pylacrosse 0.3.1

pylast 2.4.0

pylgnetcast-homeassistant 0.2.0.dev0

pylgtv 0.1.7

pylitejet 0.1.0

pyloopenergy 0.0.18

pylutron 0.1.0

pylutron-caseta 0.5.0

pymailgunner 1.4

PyMata 2.14

pymediaroom 0.6.4

pymitv 1.4.0

pymochad 0.2.0

pymodbus 1.3.1

pymonoprice 0.3

pymssql 2.1.3.0.0.1

pymusiccast 0.1.6

PyMVGLive 1.1.4

pymyq 0.0.11

pymysensors 0.17.0

pynello 1.5.1

pynetgear 0.4.1

pynetio 0.1.6

pynuki 1.3.1

pynut2 2.1.2

pynx584 0.4

pyopenuv 1.0.1

PyOTA 2.0.5

pyotp 2.2.6

pyowm 2.9.0

pyparsing 2.2.0

pypi-publisher 0.0.4

pypjlink2 1.2.0

pypollencom 2.1.0

pyqwikswitch 0.8

pyrainbird 0.1.6

pyRFXtrx 0.22.1

PyRMVtransport 0.0.7

pysabnzbd 1.0.1

pysensibo 1.0.3

pyserial 3.1.1

pyserial-asyncio 0.4

pysesame 0.1.0

pysha3 1.0.2

Pysher 0.2.0

pysma 0.2.0

pysmi 0.3.1

pysnmp 4.4.5

PySocks 1.6.8

pystride 0.1.7

PySyncThru 0.3.1

pyteleloisirs 3.4

pytest 3.7.2

pytest-rerunfailures 4.1

pythinkingcleaner 0.0.3

python-blockchain-api 0.0.2

python-clementine-remote 1.0.1

python-dateutil 2.7.3

python-didl-lite 1.0.1

python-digitalocean 1.13.2

python-ecobee-api 0.0.18

python-eq3bt 0.1.9

python-etherscan-api 0.0.3

python-family-hub-local 0.0.2

python-forecastio 1.4.0

python-gc100 1.0.3a0

python-hpilo 3.9

python-http-client 3.1.0

python-join-api 0.0.2

python-jose-cryptodome 1.3.2

python-juicenet 0.0.5

python-Levenshtein 0.12.0

python-magic 0.4.15

python-miio 0.4.0

python-mpd2 1.0.0

python-mystrom 0.4.4

python-nest 4.0.3

python-nmap 0.6.1

python-opendata-transport 0.1.3

python-openzwave 0.4.9

python-pushover 0.3

python-ripple-api 0.0.3

python-roku 3.1.5

python-sochain-api 0.0.2

python-songpal 0.0.7

python-synology 0.2.0

python-tado 0.2.3

python-telegram-bot 10.1.0

python-twitch 1.3.0

python-velbus 2.0.17

python-vlc 1.1.2

python-wink 1.9.1

python-xlib 0.23

pythonegardia 1.0.39

pythonwhois 2.4.3

pyTibber 0.4.1

pytile 2.0.2

pytouchline 0.7

pytrackr 0.0.5

pytradfri 5.5.1

pytz 2018.5

pyunifi 2.13

pyupnp-async 0.1.0.2

pyuptimerobot 0.0.5

pyusb 1.0.0b1

PyUserInput 0.1.11

pyvera 0.2.44

pyvesync 0.1.1

pyvizio 0.0.3

pyvlx 0.1.3

pyW215 0.6.0

pywebpush 1.6.0

pywemo 0.4.28

pyxeoma 1.4.0

PyXiaomiGateway 0.9.5

PyYAML 3.13

pyzabbix 0.7.4

qnapstats 0.2.6

RachioPy 0.1.3

radiotherm 1.4.1

raincloudy 0.0.5

raspihats 2.2.3

regenmaschine 1.0.2

regex 2018.8.17

requests 2.19.1

requests-cache 0.4.13

requests-futures 0.9.7

requests-oauthlib 1.0.0

requests-toolbelt 0.8.0

responses 0.9.0

RestrictedPython 4.0b4

rflink 0.0.37

ring-doorbell 0.2.1

ritassist 0.5

rocketchat-API 0.6.1

roombapy 1.3.1

rpi-rf 0.9.6

RPi.GPIO 0.6.1

rsa 3.4.2

RtmAPI 0.7.0

russound 0.1.9

russound-rio 0.1.4

Rx 1.6.1

rxv 0.5.1

s3transfer 0.1.13

samsungctl 0.7.1

satel-integra 0.1.0

schiene 0.22

scipy 1.1.0

scsgate 0.1.0

SecretStorage 3.0.1

selenium 3.14.0

sendgrid 5.4.1

sense-energy 0.4.1

sense-hat 2.2.0

setuptools 40.0.0

sharp-aquos-rc 0.3.2

shodan 1.9.0

simplejson 3.16.0

simplepush 1.1.4

simplisafe-python 2.0.2

sisyphus-control 2.1

six 1.11.0

skybellpy 0.1.2

slacker 0.9.65

sleekxmpp 1.3.2

sleepyq 0.6

smappy 0.2.16

smbus-cffi 0.5.1

smmap 0.9.0

sn3218 1.2.7

snapcast 2.0.8

snowballstemmer 1.2.1

socialbladeclient 0.2

socketIO-client 0.5.7.2

socketIO-client-nexus 0.7.6

soco 0.14

somecomfort 0.5.2

speedtest-cli 2.0.2

Sphinx 1.7.7

sphinx-automodapi 0.7

sphinx-rtd-theme 0.4.1

sphinxcontrib-httpdomain 1.7.0

sphinxcontrib-websupport 1.1.0

spiderpy 1.2.0

spidev 3.2

spotcrime 1.0.3

spotipy-homeassistant 2.4.4.dev1

SQLAlchemy 1.2.10

srptools 0.2.0

sseclient-py 1.7

statsd 3.2.1

steamodd 4.21

stevedore 1.29.0

suds-passworddigest-homeassistant 0.1.2a0.dev0

suds-py3 1.3.3.0

tabulate 0.8.2

tahoma-api 0.0.13

tank-utility 1.4.0

tapsaff 0.2.0

tellcore-net 0.4

tellcore-py 1.1.2

tellduslive 0.10.4

temperusb 1.5.3

teslajsonpy 0.0.23

thingspeak 0.4.1

tikteck 0.4

tlslite-ng 0.7.5

todoist-python 7.0.17

toonlib 1.0.2

total-connect-client 0.18

tplink 0.2.1

tqdm 4.25.0

transitions 0.6.8

transmissionrpc 0.11

TravisPy 0.3.5

tuyapy 0.1.3

twilio 5.7.0

Twisted 18.7.0

TwitterAPI 2.5.4

typing 3.6.4

tzlocal 1.5.1

ua-parser 0.8.0

uber-rides 0.6.0

upcloud-api 0.4.2

uPnPClient 0.0.8

upsmychoice 1.0.6

uritemplate 3.0.0

urllib3 1.23

uscisstatus 0.1.1

user-agents 1.1.0

utilkit 0.4.1

uvcclient 0.10.1

uvloop 0.11.2

VarEvents 1.0.0

venstarcolortouch 0.6

vincenty 0.1.4

vobject 0.9.6.1

voluptuous 0.11.5

voluptuous-serialize 2.0.0

volvooncall 0.4.0

vsure 1.3.7

vtjp 0.1.14

vultr 0.1.2

wakeonlan 1.0.0

waqiasync 1.0.0

warrant 0.6.1

watchdog 0.8.3

waterfurnace 0.4.0

WazeRouteCalculator 0.6

websocket-client 0.37.0

websockets 3.2

Werkzeug 0.14.1

wheel 0.31.1

wikipedia 1.4.0

wirelesstagpy 0.3.0

XBee 2.3.2

xbee-helper 0.0.7

xboxapi 0.1.1

xknx 0.8.5

XlsxWriter 1.0.7

xmltodict 0.11.0

yahoo-finance 1.4.0

yahooweather 0.10

yarl 1.2.6

yeelight 0.4.0

yeelightsunflower 0.0.10

YesssSMS 0.1.1b3

youtube-dl 2018.8.4

zeep 3.1.0

zengge 0.2

zeroconf 0.20.0

zhong-hong-hvac 1.0.9

ziggo-mediabox-xl 1.0.0

zigpy 0.1.0

zigpy-xbee 0.1.1

zope.interface 4.5.0

Op vr 24 aug. 2018 om 15:15 schreef Michael Ababio <notifications@github.com

:

@dennisbrouwer91 https://github.com/dennisbrouwer91 I asked about the hardware b/c I had a similar issue on a raspberry pi doing something else.

It's working for @Danielhiversen https://github.com/Danielhiversen, but not for others. Maybe we should start comparing python environment.

@dennisbrouwer91 https://github.com/dennisbrouwer91 & @Danielhiversen https://github.com/Danielhiversen share your your python environment. try pip3 list or something and paste it here

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/16142#issuecomment-415755251, or mute the thread https://github.com/notifications/unsubscribe-auth/AQrnfFdNUWxo_ynMB0_KjelyQQykTlL7ks5uT_yEgaJpZM4WI8Hd .

rpitera commented 5 years ago

Seeing the same here with hass.io 0.76.2 on a Pi 3 B

Getting this error over and over and over again:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

Was preceded by this error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 199, in async_update_ha_state
    yield from self.async_device_update()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 322, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 325, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/google_travel_time.py", line 228, in update
    self._origin, self._destination, **options_copy)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 356, in wrapper
    result = func(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/distance_matrix.py", line 130, in distance_matrix
    return client._request("/maps/api/distancematrix/json", params)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  [Previous line repeated 7 more times]
  File "/usr/local/lib/python3.6/site-packages/googlemaps/client.py", line 203, in _request
    raise googlemaps.exceptions.Timeout()
googlemaps.exceptions.Timeout

Update: Did a restart just in case it was a bad connect and they came right back, same errors. Looked at my Google Cloud Console and not seeing any errors there or am I out of requests. Let me know if I can provide anything else.

Also saw a thread on the HA subreddit where people are having similar issues with Location Sharing, which to the best of my knowledge uses a separate API. Maybe Google is having an issue on their end?

3lvl0 commented 5 years ago

Also having this issue on a NUC running Debian 9 and Hassio

mababio commented 5 years ago

@rpitera That very may be a possibility. I've worked with codebase that depended on Google API and their API failed some times causing cascading issues.

rpitera commented 5 years ago

What's funny is that I decided to move to Waze Travel Times, which appears to be having its own error issues... fortunately they only appear once on init and don't seem to repeat or affect the operation of the sensor itself so I've moved over to that platform until this gets figured out.

raccettura commented 5 years ago

Same issue here using Docker.

reevery commented 5 years ago

Can you check your Google project where the API key came from has billing enabled?

rpitera commented 5 years ago

Can you check your Google project where the API key came from has billing enabled?

I know for a fact mine was when I reported my errors.

eifinger commented 5 years ago

I have the same error. I noticed this because my request on the Google Cloud Console went trough the roof, generating over 500 requests per hour.

reevery commented 5 years ago

403 is "forbidden" which could either be "too many requests". Does the console show ANY successful requests?

Some more troubleshooting: Is there a quota set on the distance API matrix? Sorry for the vague troubleshooting... I definitely fixed this but I cannot remember how.

I do think in light of Google's billing changes, that we need to handle this error, so that the sensor retains its state when the matrix can't be reached. I've already got a pull request which doesn't seem to be getting anywhere which allows you to use sensors in the options, but maybe I need to fuse the two and try to fix this.

eifinger commented 5 years ago

Thats exactly the problem. I do have daily limits set. They reset at 0:00 Pacific Time which is 9:00 German time. This is exactly when the errors stopped this morning.

Sadly the Google Cloud Dashboard adds up all the requests no matter whether they succeeded or not. I am really interested what the billing at the end of the month will show.

reevery commented 5 years ago

So (and this seems to be something at a much higher level) we need to be able to create a condition for when sensors update. For instance, I really don't need to know the time to work if I'm at work, or if I'm asleep.

eifinger commented 5 years ago

This is something I generally would want. For example I used to monitor internet speed but this caused ping spikes when I was gaming. Would have wanted to turn the monitoring off when my Gaming PC is online.

eifinger commented 5 years ago

With release 0.81 it should now be possible to only update the sensor when really needed.

balloobbot commented 5 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:

nemmeh commented 5 years ago

Is this still an issue you are experiencing? Can you please try upgrading to the latest version of Home Assistant (0.90) and report back if this is still a problem? Thanks!

MarcWim commented 5 years ago

I am running 0.91.3 and I still have this issue:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
  File "/usr/local/lib/python3.7/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

Update: I renamed the sensor name, rebooted, and now it’s working again. Weird. Does that for for others who have this issue as well?

riemers commented 5 years ago

Running 0.94.4.

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
  File "/usr/local/lib/python3.7/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/google_travel_time/sensor.py", line 108, in run_setup
    hass, name, api_key, origin, destination, options)
  File "/usr/src/homeassistant/homeassistant/components/google_travel_time/sensor.py", line 144, in __init__
    self.update()
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 224, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/google_travel_time/sensor.py", line 225, in update
    self._origin, self._destination, **options_copy)
  File "/usr/local/lib/python3.7/site-packages/googlemaps/client.py", line 356, in wrapper
    result = func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/googlemaps/distance_matrix.py", line 130, in distance_matrix
    return client._request("/maps/api/distancematrix/json", params)
  File "/usr/local/lib/python3.7/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/usr/local/lib/python3.7/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  File "/usr/local/lib/python3.7/site-packages/googlemaps/client.py", line 260, in _request
    extract_body, requests_kwargs, post_json)
  [Previous line repeated 9 more times]
  File "/usr/local/lib/python3.7/site-packages/googlemaps/client.py", line 203, in _request
    raise googlemaps.exceptions.Timeout()
googlemaps.exceptions.Timeout

Seems to got this like yesterday.. restart doesn't help. Only thing i changed was google calendars, will try to see if that was the problem.

Tried your comment @MarcWim but that didn't change anything. I am assuming you changed the name only right?

Seems related https://github.com/home-assistant/home-assistant/issues/19589

MarcWim commented 5 years ago

Yes, I only changed the name and rebooted. After that it works fine since then.

riemers commented 5 years ago

Also worth mentioning https://community.home-assistant.io/t/is-the-google-travel-time-sensor-broke/62548/43 so i'll double check billing now and my api keys to be sure. If this would resolve it, then the error message is just a bit off. Will check tonight if i find the time :)

stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.