ksya / ha-nefiteasy

Nefit Easy connection for Home Assistant
74 stars 31 forks source link

HA stuck on startup #20

Closed rickieyyy closed 4 years ago

rickieyyy commented 4 years ago

Hi, i get this error on startup and it stops starting home-assistant. It only happens some times.

2020-04-16 11:04:02 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed.
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/selector_events.py", line 813, in _read_ready__data_received
    self._protocol.data_received(data)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received
    self._spawn_event(xml)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event
    stanza = self._build_stanza(xml)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza
    stanza = stanza_type(self, xml)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in __init__
    ElementBase.__init__(self, xml, parent)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in __init__
    if self.setup(xml):
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup
    self.values = self.values
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values
    self[full_interface] = value
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in __setitem__
    lang=lang)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text
    return self._del_sub(name, lang=lang)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub
    parent = self.xml.find(parent_path)
  File "/usr/lib/python3.7/xml/etree/ElementTree.py", line 299, in find
    return ElementPath.find(self, path, namespaces)
  File "/usr/lib/python3.7/xml/etree/ElementPath.py", line 307, in find
    return next(iterfind(elem, path, namespaces), None)
TypeError: 'NoneType' object is not an iterator
2020-04-16 11:04:02 INFO (MainThread) [slixmpp.xmlstream.xmlstream] connection_lost: (TypeError("'NoneType' object is not an iterator"),)
2020-04-16 11:04:02 INFO (MainThread) [custom_components.nefiteasy] Starting reconnect procedure.
mavink78 commented 4 years ago

Same here since the latest update; this error effectively blocks Home Assistant from starting:

2020-04-18 13:47:24 WARNING (MainThread) [homeassistant.setup] Setup of nefiteasy is taking over 10 seconds. 2020-04-18 13:47:43 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_readydata_received self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator 2020-04-18 13:48:12 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_readydata_received self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator 2020-04-18 13:49:11 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_readydata_received self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator 2020-04-18 13:49:40 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_readydata_received self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator 2020-04-18 13:50:09 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_readydata_received self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator 2020-04-18 13:51:08 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_readydata_received self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator

ChefkeGremmen commented 4 years ago

Same error over here;

2020-04-19 07:47:27 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_readydata_received self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator 2020-04-19 07:47:34 WARNING (MainThread) [homeassistant.setup] Setup of nefiteasy is taking over 10 seconds. 2020-04-19 07:47:54 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_readydata_received self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator 2020-04-19 07:48:23 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_readydata_received self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator 2020-04-19 07:49:22 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_readydata_received self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator 2020-04-19 07:49:52 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_readydata_received self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem__ lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator

josvink66 commented 4 years ago

Same here:

2020-04-19 15:21:10 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/lib/python3.7/asyncio/selector_events.py", line 813, in _read_readydata_received self._protocol.data_received(data) File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received self._spawn_event(xml) File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event stanza = self._build_stanza(xml) File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza stanza = stanza_type(self, xml) File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init ElementBase.init(self, xml, parent) File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init if self.setup(xml): File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup self.values = self.values File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values self[full_interface] = value File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem__ lang=lang) File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text return self._del_sub(name, lang=lang) File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub parent = self.xml.find(parent_path) File "/usr/lib/python3.7/xml/etree/ElementTree.py", line 299, in find return ElementPath.find(self, path, namespaces) File "/usr/lib/python3.7/xml/etree/ElementPath.py", line 307, in find return next(iterfind(elem, path, namespaces), None) TypeError: 'NoneType' object is not an iterator

ksya commented 4 years ago

Please try the following I wrote here: https://community.home-assistant.io/t/nefit-easy-client/8148/308

If this works I can make a new release of aionefit which includes this git version of slixmpp. Please let me know.

ChefkeGremmen commented 4 years ago

@ksya ; it works like a charm for me!

liquid-motion commented 4 years ago

Please try the following I wrote here: https://community.home-assistant.io/t/nefit-easy-client/8148/308

If this works I can make a new release of aionefit which includes this git version of slixmpp. Please let me know.

That would be great, because I can't update Hassio anymore, without uncommenting nefiteasy in config, update and then reinstall slixmpp manually again.

josvink66 commented 4 years ago

@ksya Seems to solve the problem here too!

ksya commented 4 years ago

Should be solved in the latest version!

liquid-motion commented 4 years ago

Problem is not solved. See https://github.com/ksya/ha-nefiteasy/issues/20

liquid-motion commented 4 years ago

Why is this issue closed?

Gepstra commented 4 years ago

Why is this issue closed?

Check the comments on the Home Assistant Community page. Latest update seems to have really fixed it this time. At least for me and a few others.

liquid-motion commented 4 years ago

Well, my Hassio is still not booting after upgrading nefit through HACS and updating HA to the latest version. :(

ksya commented 4 years ago

People with problems do the following: Option A: The easiest is to open a ssh connection to your OS where hassio is installed, then execute: sudo docker exec -it homeassistant /bin/bash

Option B is to install Portainer addon. Go to web UI. Then go to the homeassistant container Open console

Then

pip uninstall -y slixmpp slixmppfix pip install slixmpp

I am convinced this new version works from a fresh install

TimSoethout commented 4 years ago

Had the same as @liquid-motion, @ksya's fix seems to fix it for me. I had to install the Portainer addon, and disable the hiding of the homeassistant container in the settings (of Portainer).

mories76 commented 4 years ago

If I understand correctly, slixmpp needs to be version 1.5.1 can this version be pinned in the requirements in aionefit ? Maybe Home Assistant can solve the requirement automatically.

ksya commented 4 years ago

I have tested it myself now and indeed it did install slixmpp 1.4.2 instead of 1.5.1! How strange is that?? Normally it would download the most recent release… Anyway, I now explicitly told it to use 1.5.1.