linuxserver / docker-homeassistant

GNU General Public License v3.0
204 stars 32 forks source link

pyparsing missing #63

Closed cliffjao closed 1 year ago

cliffjao commented 1 year ago

linuxserver.io


Expected Behavior

No error

Current Behavior

Seeing this error in the logs:

Setup failed for google: Unable to import component: No module named 'pyparsing.unicode'; 'pyparsing' is not a package

Google Calendar integration doesn't load correctly

Steps to Reproduce

  1. Upgrade to latest linuxserver/homeassistant:version-2022.11.2
  2. Make sure Google Calendar integration is enabled
  3. Start Home Assistant and observe error in logs and Google Calendar integration doesn't load correctly

Environment

OS: Ubuntu CPU architecture: x86_64 How docker service was installed: OS provided

Command used to create docker container (run/create/compose/screenshot)

docker-compose up -d homeassistant

Docker logs

Setup failed for google: Unable to import component: No module named 'pyparsing.unicode'; 'pyparsing' is not a package

Renegade605 commented 1 year ago

Confirmed also on Unraid v6.11.1.

Rolling back to 2022.11.1 fixes the issue.

Full error log:

Logger: homeassistant.setup
Source: setup.py:192
First occurred: 19:22:59 (1 occurrences)
Last logged: 19:22:59

Setup failed for google: Unable to import component: No module named 'pyparsing.unicode'; 'pyparsing' is not a package
aptalca commented 1 year ago

it's in there:

# pip list | grep pyparsing
pyparsing                        2.4.7
Renegade605 commented 1 year ago

Regardless of the root cause, this error still occurs.

aptalca commented 1 year ago

Since neither of you provided enough info (template not filled out either), we would have no idea where to even begin troubleshooting. I do not have that error in my logs.

Renegade605 commented 1 year ago

What info do you need? Since I'm not the OP I don't know the prompts.

cliffjao commented 1 year ago

Ah sorry, I left out the important detail of using Google Calendar integration. Let me edit.

aptalca commented 1 year ago

I need enough info to be able to reproduce it. Docker arguments used, which platform it's running on, what integrations enabled, full logs and most importantly what triggers the error

Renegade605 commented 1 year ago

Lol. I didn't even notice calendar wasn't mentioned either.

Google Calendar is the integration that malfunctions. Error occurs on startup. No "calendar.*" entities are available. Unraid v6.11.1, docker is included with OS

docker run
  -d
  --name='homeassistant'
  --net='host'
  -e TZ="America/Denver"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Global-Dynamics"
  -e HOST_CONTAINERNAME="homeassistant"
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8123]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver-ls-logo.png'
  -v '/mnt/user/appdata/homeassistant':'/config':'rw'
  --memory=8G
  --cpu-shares=4096 'ghcr.io/linuxserver/homeassistant'

I'm only on my phone atm, so if you need more just say so and I'll get it when I can.

aptalca commented 1 year ago

Is this related? https://github.com/home-assistant/core/issues/82176

Renegade605 commented 1 year ago

Certainly sounds like it, when I initially reported it to them they told me it was a container issue not a core issue but they may have been mistaken.

Renegade605 commented 1 year ago

I've upgraded to 2022.11.3 which should fix the mentioned issue but the problem from this thread persists.

aptalca commented 1 year ago

Ugh, it's because HA tells pip to ignore dependency conflicts, and they do have dep conflicts. In this case another package was happy with a lower version of pyparsing so pip did not install the version required for a dependency of the calendar sync package: https://ci.linuxserver.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-homeassistant/detail/main/438/pipeline/129#step-143-log-1239