16-12-19 22:48:14 homeassistant.components.media_player: Error while setting up platform cmus
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 150, in _async_setup_platform
entity_platform.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/media_player/cmus.py”, line 51, in setup_platform
cmus_remote = CmusDevice(host, password, port, name)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/cmus.py”, line 71, in init
self.cmus = remote.PyCmus()
File “/home/homeassistant/.homeassistant/deps/pycmus/remote.py”, line 60, in init
self.socket_file = self._get_socket_path(socket_path)
File “/home/homeassistant/.homeassistant/deps/pycmus/remote.py”, line 110, in _get_socket_path
conf_dir = self._get_cmus_conf_dir()
File “/home/homeassistant/.homeassistant/deps/pycmus/remote.py”, line 83, in _get_cmus_conf_dir
if self.socket_path:
AttributeError: ‘PyCmus’ object has no attribute ‘socket_path’
Hmmm, just added “homeassistant” user to group “audio”, now I’m able to run “cmus” inside venv (cmus-remote also working inside venv), but still cannot launch cmus component - still same error
AttributeError: ‘PyCmus’ object has no attribute ‘socket_path’
@maximkrusina, @github-0, did you have any success with this? i am getting the same error.
2017-08-19 22:08:11 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform cmus
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.4/asyncio/tasks.py", line 372, in wait_for
return fut.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/media_player/cmus.py", line 51, in setup_platform
cmus_remote = CmusDevice(host, password, port, name)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/cmus.py", line 71, in __init__
self.cmus = remote.PyCmus()
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pycmus/remote.py", line 60, in __init__
self.socket_file = self._get_socket_path(socket_path)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pycmus/remote.py", line 110, in _get_socket_path
conf_dir = self._get_cmus_conf_dir()
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pycmus/remote.py", line 83, in _get_cmus_conf_dir
if self.socket_path:
AttributeError: 'PyCmus' object has no attribute 'socket_path'
2017-11-16 15:29:51 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.cmusic fails
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
yield from self.async_device_update()
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 309, in async_device_update
yield from self.hass.async_add_job(self.update)
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/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/media_player/cmus.py", line 78, in update
status = self.cmus.get_status_dict()
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pycmus/remote.py", line 225, in get_status_dict
status_str = self.status()
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pycmus/remote.py", line 216, in status
return self.send_cmd('status\n')
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pycmus/remote.py", line 123, in send_cmd
self.socket.sendall(six.binary_type(passwd_str.encode('utf8')))
BrokenPipeError: [Errno 32] Broken pipe