Hi all!
Configuration
- Raspberry Pi 3
- Latest Raspbian, non-Noobs install.
- AiO install, originally 0.41.x, recently upgraded to 0.42.4 via “manual method”.
- Usernames and Passwords are tested good. Opted in and there are packages on the dashboards of the websites.
- Config stripped down for testing.
myUSPS Error
17-04-22 02:58:14 ERROR (MainThread) [homeassistant.setup] Not initializing sensor.usps because could not install dependency myusps==1.0.3
17-04-22 02:58:14 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.usps: Could not install all requirements.
17-04-22 02:58:14 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service_data=title=Invalid config, message=The following components and platforms could not be set up:
* sensor.usps
Please check your config, notification_id=invalid_config, service=create, service_call_id=1978466896-1>
17-04-22 02:58:14 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service_data=title=Invalid config, message=The following components and platforms could not be set up:
* sensor.usps
Please check your config, notification_id=invalid_config, service=create, service_call_id=1978466896-2>
17-04-22 02:58:14 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=persistent_notification.invalid_config, new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
* sensor.usps
Please check your config; title=Invalid config @ 2017-04-21T21:58:14.800982-05:00>>
What I attempted so far
- Found this thread https://community.home-assistant.io/t/myusps-component/11125/5?u=jonathanweinberg
- Performed this:
sudo apt-get install libxml2-dev
sudo apt-get install libxslt1-dev
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/homeassistant_venv/bin/activate
pip3 install myusps
Which then spat back
Collecting myusps
Requirement already satisfied: requests==2.12.4 in /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages (from myusps)
Requirement already satisfied: bs4==0.0.1 in /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages (from myusps)
Requirement already satisfied: python-dateutil==2.6.0 in /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages (from myusps)
Requirement already satisfied: beautifulsoup4 in /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages (from bs4==0.0.1->myusps)
Requirement already satisfied: six>=1.5 in /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages (from python-dateutil==2.6.0->myusps)
Installing collected packages: myusps
Successfully installed myusps-1.0.5
- I have stripped my config down to bare bones (only auto discover stuff, and the working FedEx sensor, HTTP, and non-working UPS sensor.)
- Rebooted.
myUPS Error
17-04-22 02:58:14 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.ups
17-04-22 02:58:15 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform ups
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 153, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/ups.py", line 44, in setup_platform
import upsmychoice
File "/home/homeassistant/.homeassistant/deps/upsmychoice/__init__.py", line 4, in <module>
from json.decoder import JSONDecodeError
ImportError: cannot import name 'JSONDecodeError'
What I attempted so far
- Not much, didn’t see much in Googling issues with the sensor, and haven’t dug into the error \ traceback text as I’m pretty not awesome at figuring those out.
Any thoughts or directions out there for me?