Skip to content

Fritz!Box device tracker fails to install fritzconnection #1323

Closed
@ghost

Description

After adding the device tracker, this happens upon starting hass:

INFO:homeassistant.loader:Loaded device_tracker.fritz from homeassistant.components.device_tracker.fritz
INFO:homeassistant.util.package:Attempting install of fritzconnection==0.4.6
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a75y6hpj/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-symu1gz8-record/install-record.txt --single-version-externally-managed --compile --home=/tmp/tmpjomu9sru" failed with error code 1 in /tmp/pip-build-a75y6hpj/lxml
ERROR:homeassistant.bootstrap:Not initializing device_tracker.fritz because could not install dependency fritzconnection==0.4.6

It "hangs" for more than a minute after Attempting install of fritzconnection==0.4.6, I suppose because trying to compile lxml takes a while. I'm running a headless Ubuntu server with 14.04.1 on it, python3-lxml is installed, so I'm not sure why it's even trying to compile that.

Installing fritzconnection manually (sudo pip3 install fritzconnection) works fine and installs 0.4.6 of it. Running hass afterwards results in this error:

INFO:homeassistant.loader:Loaded device_tracker.fritz from homeassistant.components.device_tracker.fritz
ERROR:homeassistant.components.device_tracker:Error setting up platform fritz
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/device_tracker/__init__.py", line 124, in setup_platform
    scanner = platform.get_scanner(hass, {DOMAIN: p_config})
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/device_tracker/fritz.py", line 34, in get_scanner
    scanner = FritzBoxScanner(config[DOMAIN])
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/device_tracker/fritz.py", line 61, in __init__
    import fritzconnection as fc
  File "/usr/local/lib/python3.4/dist-packages/fritzconnection/__init__.py", line 3, in <module>
    from fritzconnection import (
ImportError: cannot import name 'FritzConnection'

If there is any other information I need to provide please let me know. :)

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions