Closed ScuttleSE closed 6 years ago
Install Requests version 2.14.2:
pip3 install requests==2.14.2
Install Requests_oauthlib version 0.8.0
pip3 install requests_oauthlib==0.8.0
Then the command printed out the versions - But this did not help with the setup.
Still says:
Error during setup of component tellduslive
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 193, in _async_setup_component
component.setup, hass, processed_config)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/tellduslive.py", line 71, in setup
from tellduslive import Session, supports_local_api
File "/srv/homeassistant/lib/python3.5/site-packages/tellduslive.py", line 9, in <module>
from requests_oauthlib import OAuth1Session
File "/srv/homeassistant/lib/python3.5/site-packages/requests_oauthlib/__init__.py", line 9, in <module>
if requests.__version__ < '2.0.0':
TypeError: unorderable types: module() < str()
Could it be that you must switch to the virtual Python environment first? sudo su -s /bin/bash homeassistant source /srv/homeassistant/bin/activate and then run: pip3 install requests==2.14.2
I think this is how I got it to work.
BR Leif Persson
Could it be that you must switch to the virtual Python environment first? @leifmariposa Omg, cant belive i forgot that... Now tellduslive is up and running for me on my hassbian install.
That worked for me as well! Thanks @leifmariposa !
Works perfect now =)
This problem persists in 0.60. @mcfrojd solution still works.
Upgraded from 0.59.2 to 0.60 and got this problem. Had to install requests 2.14.2 to get it working again.
Hi.
This problem still exist, but @mcfrojd fix works just fine.
I would like to add they changed how HASS connects to Tellduslive.
The old way was by adding the API keys directly into HASS config like:
tellduslive: public_key: XXX private_key: YYY token: ZZZ token_secret: QQQ
From 0.58 you dont need the keys, you get promted with this after adding only tellduslive:
You can read more here: https://home-assistant.io/components/tellduslive/
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (
hass --version
): 0.57.0Python release (
python3 --version
): Python 3.5.3Component/platform: Telldus Live
Description of problem: Telldus Live component throws an error when HA starts up
Expected: Telldus Live should work...
Problem-relevant
configuration.yaml
entries and steps to reproduce:Traceback (if applicable):
Additional info: