USPS Error after upgrade to Debian 9

Hey all,

Not sure if this is related to 0.55 or my upgrade from Debian 8 to 9 (talk about unfortunate timing). Anyway this is the error, anyone have any thoughts:

2017-10-07 19:05:33 ERROR (MainThread) [homeassistant.setup] Error during setup of component usps
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/setup.py", line 194, 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 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/usps.py", line 46, in setup
    import myusps
  File "/root/.homeassistant/deps/lib/python3.5/site-packages/myusps/__init__.py", line 12, in <module>
    import requests_cache
  File "/root/.homeassistant/deps/lib/python3.5/site-packages/requests_cache/__init__.py", line 28, in <module>
    from .core import(
  File "/root/.homeassistant/deps/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'

Scratch that - seems I had to re-install the myusps module with pip:

pip3 install myusps

fixed it for me. I’ll leave this here in the event anyone else finds it. And this was related to the Debian upgrade, NOT 0.55.

1 Like