{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/12770","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/12770/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/12770/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/12770/events","html_url":"https://github.com/home-assistant/home-assistant/issues/12770","id":300892675,"number":12770,"title":"Error during setup of component USPS","user":{"login":"Coolie1101","id":28989417,"avatar_url":"https://avatars1.githubusercontent.com/u/28989417?v=4","gravatar_id":"","url":"https://api.github.com/users/Coolie1101","html_url":"https://github.com/Coolie1101","followers_url":"https://api.github.com/users/Coolie1101/followers","following_url":"https://api.github.com/users/Coolie1101/following{/other_user}","gists_url":"https://api.github.com/users/Coolie1101/gists{/gist_id}","starred_url":"https://api.github.com/users/Coolie1101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coolie1101/subscriptions","organizations_url":"https://api.github.com/users/Coolie1101/orgs","repos_url":"https://api.github.com/users/Coolie1101/repos","events_url":"https://api.github.com/users/Coolie1101/events{/privacy}","received_events_url":"https://api.github.com/users/Coolie1101/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-28T05:03:58Z","updated_at":"2018-02-28T15:55:21Z","closed_at":null,"author_association":"NONE","body":"**Home Assistant release (`hass --version`):**\r\n0.64.1\r\n\r\n**Python release (`python3 --version`):**\r\n3.5.3\r\n\r\n**Component/platform:**\r\nUSPS\r\n\r\n**Description of problem:**\r\nSetup Error\r\n\r\n**Expected:**\r\n\r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n```\r\nusps:\r\n    username: !secret usps_username\r\n    password: !secret usps_password\r\n    name: USPS\r\n```\r\nOR\r\n```\r\nusps:\r\n    username: !secret usps_username\r\n    password: !secret usps_password\r\n    name: USPS\r\n    driver: 'phantomjs'\r\n```\r\n**Traceback (if applicable):**\r\n```\r\n2018-02-27 23:51:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component usps\r\nTraceback (most recent call last):\r\n  File \"/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py\", line 148, in _async_setup_component\r\n    component.setup, hass, processed_config)\r\n  File \"/usr/lib/python3.5/asyncio/futures.py\", line 380, in __iter__\r\n    yield self  # This tells Task to wait for completion.\r\n  File \"/usr/lib/python3.5/asyncio/tasks.py\", line 304, in _wakeup\r\n    future.result()\r\n  File \"/usr/lib/python3.5/asyncio/futures.py\", line 293, in result\r\n    raise self._exception\r\n  File \"/usr/lib/python3.5/concurrent/futures/thread.py\", line 55, in run\r\n    result = self.fn(*self.args, **self.kwargs)\r\n  File \"/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/usps.py\", line 49, in setup\r\n    import myusps\r\n  File \"/srv/homeassistant/lib/python3.5/site-packages/myusps/__init__.py\", line 12, in <module>\r\n    import requests_cache\r\n  File \"/srv/homeassistant/lib/python3.5/site-packages/requests_cache/__init__.py\", line 28, in <module>\r\n    from .core import(\r\n  File \"/srv/homeassistant/lib/python3.5/site-packages/requests_cache/core.py\", line 21, in <module>\r\n    ver = tuple(map(int, requests.__version__.split(\".\")))\r\nAttributeError: module 'pip._vendor.requests.__version__' has no attribute 'split'\r\n2018-02-27 23:51:29 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.usps. Setup failed for dependencies: usps\r\n2018-02-27 23:51:29 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.usps: Could not setup all dependencies.\r\n```\r\n\r\n**Additional info:**\r\n\r\nSetps:\r\nwget https://github.com/fg2it/phantomjs-on-raspberry/releases/download/v2.1.1-wheezy-jessie-armv6/phantomjs_2.1.1_armhf.deb\r\n\r\nsudo dpkg -i phantomjs_2.1.1_armhf.deb\r\n\r\npip3 install --upgrade --force-reinstall myusps==1.3.2 in my venv.\r\n\r\nphantomjs --version\r\n2.1.1\r\n\r\n![image](https://user-images.githubusercontent.com/28989417/36770846-dad9de9c-1c1a-11e8-88ea-6f840ed13038.png)\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/369284705","html_url":"https://github.com/home-assistant/home-assistant/issues/12770#issuecomment-369284705","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/12770","id":369284705,"user":{"login":"m-zander","id":35241762,"avatar_url":"https://avatars2.githubusercontent.com/u/35241762?v=4","gravatar_id":"","url":"https://api.github.com/users/m-zander","html_url":"https://github.com/m-zander","followers_url":"https://api.github.com/users/m-zander/followers","following_url":"https://api.github.com/users/m-zander/following{/other_user}","gists_url":"https://api.github.com/users/m-zander/gists{/gist_id}","starred_url":"https://api.github.com/users/m-zander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-zander/subscriptions","organizations_url":"https://api.github.com/users/m-zander/orgs","repos_url":"https://api.github.com/users/m-zander/repos","events_url":"https://api.github.com/users/m-zander/events{/privacy}","received_events_url":"https://api.github.com/users/m-zander/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T15:55:21Z","updated_at":"2018-02-28T15:55:21Z","author_association":"NONE","body":"Not sure what's going on here ... try `pip install --upgrade pip`."}}
{"actor":{"display_login":"m-zander"}}