Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tado component suddenly broken #35038

Closed
Filhgd opened this issue May 1, 2020 · 15 comments
Closed

Tado component suddenly broken #35038

Filhgd opened this issue May 1, 2020 · 15 comments
Assignees

Comments

@Filhgd
Copy link

Filhgd commented May 1, 2020

The problem

Since updating to home assistant 0.108 the tado component in my installation has suddenly stopped working resulting in the errors below.

Environment

  • Home Assistant Core release with the issue: 0.108 and 0.109.2
  • Last working Home Assistant Core release (if known): 0.107.6
  • Operating environment (Home Assistant/Supervised/Docker/venv): Raspbian GNU/Linux 10 (buster), raspberrypi4
  • Integration causing this issue: Tado
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/tado/

Problem-relevant configuration.yaml

tado:
  username: !secret email
  password: !secret tado

Traceback/Error logs

Setup failed for tado: Unable to import component: No module named 'PyTado.const'

Error occurred loading configuration flow for integration tado: No module named 'PyTado.const'

Additional information

@probot-home-assistant
Copy link

Hey there @michaelarnauts, @bdraco, mind taking a look at this issue as its been labeled with a integration (tado) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@bdraco
Copy link
Member

bdraco commented May 1, 2020

It looks like you have an old version of the python-tado package installed.

Do you have a custom tado installed that may need to be removed?

@Filhgd
Copy link
Author

Filhgd commented May 1, 2020

Don't know. Will check it now!

@Filhgd
Copy link
Author

Filhgd commented May 1, 2020

Do you know perhaps, if this is the case, how to remove it?

@Filhgd
Copy link
Author

Filhgd commented May 1, 2020

I don't think that I am using a custom tado. After rebooting I get the following errors:

2020-05-01 21:20:30 ERROR (MainThread) [homeassistant.setup] Setup failed for tado: Unable to import component: No module named 'PyTado.const' 2020-05-01 21:20:30 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration tado: No module named 'PyTado.const' File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 21, in <module> File "/usr/src/homeassistant/homeassistant/components/tado/const.py", line 3, in <module> from PyTado.const import ( ModuleNotFoundError: No module named 'PyTado.const'

@bdraco
Copy link
Member

bdraco commented May 1, 2020

Would you try manually installing python-tado in your home assistant environment

pip install python-tado==0.8.1

@majdzik84
Copy link

I don't know if it's a Tado issue or a climate component in general. But there are no working modes. I hope nobody gets angry that I'm writing here.
1
2

@Filhgd
Copy link
Author

Filhgd commented May 1, 2020

Would you try manually installing python-tado in your home assistant environment

pip install python-tado==0.8.1

I am trying but I don't know how to get in the right environment to do this. I am using Raspbian on a raspberry pi 4 with an external SDD. Can connect using ssh to pi@ip_address. But then what? Sorry for being such a noob ;-) And thank you for your help!!

@Filhgd

This comment has been minimized.

@Filhgd
Copy link
Author

Filhgd commented May 1, 2020

Would you try manually installing python-tado in your home assistant environment

pip install python-tado==0.8.1

Ok I managed to get into my docker container and to execute the command!
This was the result:

Requirement already satisfied: python-tado==0.8.1 in /usr/local/lib/python3.7/site-packages (0.8.1) Requirement already satisfied: requests in /usr/local/lib/python3.7/site-packages (from python-tado==0.8.1) (2.23.0) Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (3.0.4) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (1.25.9) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (2020.4.5.1) Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (2.9)

Did not work.

@bdraco
Copy link
Member

bdraco commented May 2, 2020

Its possible you have an old version installed as well
pip install --upgrade python-tado==0.8.1

Please try the above to force uninstall and reinstall

@Filhgd
Copy link
Author

Filhgd commented May 2, 2020

Thank you for your help! The same problem remains.

Requirement already up-to-date: python-tado==0.8.1 in /usr/local/lib/python3.7/site-packages (0.8.1) Requirement already satisfied, skipping upgrade: requests in /usr/local/lib/python3.7/site-packages (from python-tado==0.8.1) (2.23.0) Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (1.25.9) Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (2.9) Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (3.0.4) Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (2020.4.5.1)

@Filhgd
Copy link
Author

Filhgd commented May 2, 2020

It worked perfectly. I did not tweak anything and after pushing an update of home-assistent it just stopped working.

@bdraco
Copy link
Member

bdraco commented May 2, 2020

I'm not sure what is going on with your instance. It doesn't seem like something I'm going to be able to diagnose as the problem appears to be outsite of tado and a problem with the python install stack.

It might be best to do a backup, reinstall, and then restore your configuration.

@Filhgd
Copy link
Author

Filhgd commented May 3, 2020

Thank you! reinstalling worked.

@Filhgd Filhgd closed this as completed May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants