core: Unable to get the google api to play nice (trying to add google calendar)

The problem

I am trying to add google calendar to home assistant as per the official guide and various online guides which all agree to do it the same way please see config file below aswell as error on checking config and error in the log. I am running home assistant os 2022.3.0b4 as a VM under VMware ESXI

Config validation —

Component error: google - Exception importing homeassistant.components.google

Configuration.yaml —

google: client_id: !secret google_client_id client_secret: !secret google_client_secret

Secrets (The id and secret have been removed for obvious reasons but are correct) —

google_client_id: google_client_secret:

What version of Home Assistant Core has the issue?

2022.3.0b4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

google

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google/

Diagnostics information

No response

Example YAML snippet

Configuration.yaml ---

google:
    client_id: !secret google_client_id
    client_secret: !secret google_client_secret

Secrets.yaml (The id and secret have been removed for obvious reasons but are correct) ---

google_client_id: 
google_client_secret:

Anything in the logs that might be useful for us?

Logger: homeassistant.loader
Source: components/google/__init__.py:9
First occurred: 9:12:28 PM (4 occurrences)
Last logged: 9:30:03 PM

Unexpected exception importing component homeassistant.components.google
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 553, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 9, in <module>
    from googleapiclient import discovery as google_discovery
  File "/usr/local/lib/python3.9/site-packages/googleapiclient/discovery.py", line 52, in <module>
    import httplib2
  File "/usr/local/lib/python3.9/site-packages/httplib2/__init__.py", line 52, in <module>
    from . import auth
  File "/usr/local/lib/python3.9/site-packages/httplib2/auth.py", line 18, in <module>
    auth_param_name = token.copy().setName("auth-param-name").addParseAction(pp.downcaseTokens)
AttributeError: module 'pyparsing' has no attribute 'downcaseTokens'

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (11 by maintainers)

Most upvoted comments

I have the same issues since upgrading to 2022.3.1 from 2022.2. I’m on supervised HA based on debian linux

So solution to this is that it is a check configuration error not sure why, I made a backup ignored the error and forced a rebuild using ha core rebuild as suggested and it worked.

Closing the issue now as this is clearly not a true issue with the number of people that have managed to solve using the command above, anyone finding this in the future make a backup & force rebuild using said command and you should be good.

One thing we can try:

  1. Update configuration.yaml:
logger:
    default: info
    logs:
        homeassistant.util.package: debug
  1. Rebuild the core
$ ha core rebuild
  1. Look at logs for anything related to homeassistant.util.package and we can see what packages are installed and what versions are pinned.