I had to rebuild my HA on RPi and trying to setup USPS sensor
I setup the following in configuration.yaml file:
usps:
username: !secret usps_username
password: !secret usps_password
Every time I restart my RPi, I see the following error:
When I check log file, there is an error:
Error during setup of component usps
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 148, 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/usps.py", line 46, in setup
import myusps
File "/srv/homeassistant/lib/python3.5/site-packages/myusps/__init__.py", line 12, in <module>
import requests_cache
File "/srv/homeassistant/lib/python3.5/site-packages/requests_cache/__init__.py", line 28, in <module>
from .core import(
File "/srv/homeassistant/lib/python3.5/site-packages/requests_cache/core.py", line 21, in <module>
ver = tuple(map(int, requests.__version__.split(".")))
AttributeError: module 'pip._vendor.requests.__version__' has no attribute 'split'
Can someone help?