Fritz components don't work anymore (lxml etree DLL load failed: The specified procedure could not be found.)

About 2 weeks ago my Fritz components (Plattform for presence and the net monitor) stopped working.

About then I installed Windows Updates and the newest HASS version. My setup is…

  • Windows 10, 64 Bit OS

  • Python 3.6.1

  • fritzconnection-0.6.3

  • aiohttp-2.2.0 chardet-3.0.4

  • lxml-3.8.0 (lxml-3.8.0-cp36-cp36m-win_amd64.whl)

    2017-07-01 22:45:54 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.fritzbox_netmonitor
    2017-07-01 22:45:54 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform fritzbox_netmonitor
    Traceback (most recent call last):
    File “C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\site-packages\homeassistant\helpers\entity_component.py”, line 161, in async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
    File “C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\asyncio\tasks.py”, line 352, in wait_for
    return fut.result()
    File “C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\asyncio\futures.py”, line 244, in result
    raise self.exception
    File “C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\concurrent\futures\thread.py”, line 55, in run
    result = self.fn(*self.args, **self.kwargs)
    File “C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\site-packages\homeassistant\components\sensor\fritzbox_netmonitor.py”, line 51, in setup_platform
    import fritzconnection as fc
    File "C:\Users\JMU\AppData\Roaming.homeassistant\deps\fritzconnection_init
    .py", line 3, in
    from .fritzconnection import (
    File “C:\Users\JMU\AppData\Roaming.homeassistant\deps\fritzconnection\fritzconnection.py”, line 39, in
    from lxml import etree
    ImportError: DLL load failed: The specified procedure could not be found.
    2017-07-01 22:45:55 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.fritz
    2017-07-01 22:45:55 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform fritz
    Traceback (most recent call last):
    File "C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\site-packages\homeassistant\components\device_tracker_init
    .py", line 151, in async_setup_platform
    platform.get_scanner, hass, {DOMAIN: p_config})
    File “C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\asyncio\futures.py”, line 331, in iter
    yield self # This tells Task to wait for completion.
    File “C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\asyncio\tasks.py”, line 244, in _wakeup
    future.result()
    File “C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\asyncio\futures.py”, line 244, in result
    raise self.exception
    File “C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\concurrent\futures\thread.py”, line 55, in run
    result = self.fn(*self.args, **self.kwargs)
    File “C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\site-packages\homeassistant\components\device_tracker\fritz.py”, line 35, in get_scanner
    scanner = FritzBoxScanner(config[DOMAIN])
    File “C:\Users\JMU\AppData\Local\Programs\Python\Python36\lib\site-packages\homeassistant\components\device_tracker\fritz.py”, line 51, in init
    import fritzconnection as fc
    File "C:\Users\JMU\AppData\Roaming.homeassistant\deps\fritzconnection_init
    .py", line 3, in
    from .fritzconnection import (
    File “C:\Users\JMU\AppData\Roaming.homeassistant\deps\fritzconnection\fritzconnection.py”, line 39, in
    from lxml import etree
    ImportError: DLL load failed: The specified procedure could not be found.

I tried installing different versions of lxml from here with no luck: http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

I also used procmon to get a clue what is missing with no luck.

I hope somebody has a clue what is wrong or how I can debug deeper-

**EDIT 03. July 2017 : ** Today evenig it all over sudden started working again with no change or restart of anything. At first ist was a bit on and off an since 4h it works fine. Why ?