Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluepy fails to install on 0.94.1 #24441

Closed
parisbutterfield opened this issue Jun 9, 2019 · 28 comments
Closed

Bluepy fails to install on 0.94.1 #24441

parisbutterfield opened this issue Jun 9, 2019 · 28 comments
Assignees

Comments

@parisbutterfield
Copy link

After upgrading to 0.94.1 I'm seeing the following in the logs. Reverted to 0.91.4 and the issue is no longer present. This happened on multiple instances of homeassistant.

core-ssh:~# hassio info
arch: armhf
channel: stable
hassos: "2.12"
homeassistant: 0.94.1
hostname: hassio-livingroom
logging: info
machine: raspberrypi
supervisor: "166"
supported_arch:
- armhf
2019-06-09 11:52:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switchmate.switch: Could not install all requirements.
2019-06-09 11:52:07 INFO (SyncWorker_4) [homeassistant.util.package] Attempting install of pySwitchmate==0.4.5
2019-06-09 11:58:04 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package pySwitchmate==0.4.5: ERROR: Complete output from command /usr/local/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-qdury00u/bluepy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-e_9fw9gq --python-tag cp37:
  ERROR: running bdist_wheel
  running build
  running build_py
  Working dir is /tmp/pip-install-qdury00u/bluepy
  execute make -C ./bluepy clean
  error: [Errno 2] No such file or directory: 'make': 'make'
  ----------------------------------------
  ERROR: Failed building wheel for bluepy
    ERROR: Complete output from command /usr/local/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-qdury00u/bluepy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-l3ep0hlg/install-record.txt --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_py
    Working dir is /tmp/pip-install-qdury00u/bluepy
    execute make -C ./bluepy clean
    error: [Errno 2] No such file or directory: 'make': 'make'
    ----------------------------------------
ERROR: Command "/usr/local/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-qdury00u/bluepy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-l3ep0hlg/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-qdury00u/bluepy/
2019-06-09 11:58:04 ERROR (MainThread) [homeassistant.requirements] Not initializing switchmate because could not install requirement pySwitchmate==0.4.5
2019-06-09 11:58:04 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switchmate.switch: Could not install all requirements.
2019-06-09 11:58:05 INFO (SyncWorker_2) [homeassistant.util.package] Attempting install of pySwitchmate==0.4.5
2019-06-09 12:04:02 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package pySwitchmate==0.4.5: ERROR: Complete output from command /usr/local/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-ol9afe0z/bluepy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-gp2fxsmp --python-tag cp37:
  ERROR: running bdist_wheel
  running build
  running build_py
  Working dir is /tmp/pip-install-ol9afe0z/bluepy
  execute make -C ./bluepy clean
  error: [Errno 2] No such file or directory: 'make': 'make'
  ----------------------------------------
  ERROR: Failed building wheel for bluepy
    ERROR: Complete output from command /usr/local/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-ol9afe0z/bluepy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-81fv17df/install-record.txt --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_py
    Working dir is /tmp/pip-install-ol9afe0z/bluepy
    execute make -C ./bluepy clean
    error: [Errno 2] No such file or directory: 'make': 'make'
    ----------------------------------------
ERROR: Command "/usr/local/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-ol9afe0z/bluepy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-81fv17df/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ol9afe0z/bluepy/
2019-06-09 12:04:02 ERROR (MainThread) [homeassistant.requirements] Not initializing switchmate because could not install requirement pySwitchmate==0.4.5
2019-06-09 12:04:02 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switchmate.switch: Could not install all requirements.
2019-06-09 12:04:10 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
2019-06-09 12:04:11 INFO (MainThread) [homeassistant.setup] Setting up cloud
2019-06-09 12:04:16 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 1093.6 seconds.
2019-06-09 12:04:17 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
2019-06-09 12:04:18 INFO (MainThread) [homeassistant.setup] Setting up frontend
2019-06-09 12:04:18 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.1 seconds.
2019-06-09 12:04:19 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 9.0 seconds.
2019-06-09 12:04:20 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 9.4 seconds.
2019-06-09 12:04:21 INFO (MainThread) [homeassistant.setup] Setting up logbook
2019-06-09 12:04:21 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.``
@balloob
Copy link
Member

balloob commented Jun 10, 2019

That is weird. BluePy wheel is available at https://wheels.home-assistant.io/alpine-3.9/armhf/

Is your config's deps folder empty ?

@bbo76
Copy link

bbo76 commented Jun 10, 2019

I have the same problem, and my custom components light using bluepy doesn't work anymore and log says platform not found

@parisbutterfield
Copy link
Author

@balloob which folder are you interested in? I can change the version with hassio ha update --version= and provide you with info.

@balloob
Copy link
Member

balloob commented Jun 10, 2019

the deps folder under the config dir. It should be empty and then the system should be able to find bluepy already been installed / install it from our remote wheel

@parisbutterfield
Copy link
Author

@balloob looks like there's no deps folder. Pretty sure it was there before the upgrade.

core-ssh:/config# ls -ltr
total 515696
-rw-r--r--    1 root     root           157 Apr 21 22:34 secrets.yaml
-rw-r--r--    1 root     root             0 Apr 21 22:34 scripts.yaml
-rw-r--r--    1 root     root             0 Apr 21 22:34 groups.yaml
-rw-r--r--    1 root     root             0 Apr 21 22:34 customize.yaml
-rw-r--r--    1 root     root             2 Apr 21 22:34 automations.yaml
drwxr-xr-x    2 root     root          4096 Apr 21 22:35 tts
-rw-r--r--    1 root     root          2150 Apr 23 18:31 configuration.yaml
-rw-r--r--    1 root     root          4812 Jun 10 19:56 home-assistant.log
-rw-r--r--    1 root     root     528044032 Jun 10 22:18 home-assistant_v2.db

@parisbutterfield
Copy link
Author

Hope this helps some more... Where are the build logs for this project/image?

# docker exec -ti 57529ddf81d1 /bin/sh
/config # ls
automations.yaml      customize.yaml        home-assistant.log    scripts.yaml          tts
configuration.yaml    groups.yaml           home-assistant_v2.db  secrets.yaml
/config # python
Python 3.7.3 (default, Jun  4 2019, 08:57:53) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> 
/config # pip install bluepy

Collecting bluepy
  Downloading https://files.pythonhosted.org/packages/27/91/6cfca10bee9862f93015413cf9e6a52c3081a71f1518963396a055128f8e/bluepy-1.3.0.tar.gz (217kB)
     |████████████████████████████████| 225kB 341kB/s 
Building wheels for collected packages: bluepy
  Building wheel for bluepy (setup.py) ... error
  ERROR: Complete output from command /usr/local/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-lh1eat5v/bluepy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-bl3p0nxt --python-tag cp37:
  ERROR: running bdist_wheel
  running build
  running build_py
  Working dir is /tmp/pip-install-lh1eat5v/bluepy
  execute make -C ./bluepy clean
  error: [Errno 2] No such file or directory: 'make': 'make'
  ----------------------------------------
  ERROR: Failed building wheel for bluepy
  Running setup.py clean for bluepy
Failed to build bluepy

/config # apk add bluepy
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/armhf/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  bluepy (missing):
    required by: world[bluepy]

/config # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/armhf/APKINDEX.tar.gz
v3.9.4-24-g4e2ff29bbe [http://dl-cdn.alpinelinux.org/alpine/v3.9/main]
v3.9.4-25-g65097c9cdc [http://dl-cdn.alpinelinux.org/alpine/v3.9/community]
OK: 9547 distinct packages available

/config # cat /etc/apk/repositories 
http://dl-cdn.alpinelinux.org/alpine/v3.9/main
http://dl-cdn.alpinelinux.org/alpine/v3.9/community

@balloob
Copy link
Member

balloob commented Jun 11, 2019

try

pip install --find-links https://wheels.home-assistant.io/ bluepy==1.3.0

@bjornhij
Copy link

Seems bluepy is also missing for the official miflora component:

2019-06-11 19:17:29 DEBUG (MainThread) [homeassistant.components.miflora.sensor] Miflora is using GatttoolBackend backend.
2019-06-11 19:17:29 DEBUG (MainThread) [homeassistant.components.miflora.sensor] Miflora is using GatttoolBackend backend.
2019-06-11 19:18:05 DEBUG (SyncWorker_17) [homeassistant.components.miflora.sensor] Polling data for Yucca Moisture

Miflora stopped working since 0.94

hassio info
arch: aarch64
channel: stable
hassos: "2.12"
homeassistant: 0.94.1
hostname: hassio
logging: info
machine: raspberrypi3-64
supervisor: "166"
supported_arch:

  • aarch64
  • armv7
  • armhf

@yada75
Copy link

yada75 commented Jun 11, 2019

With limited knowledge how pip works I used Hass.io add_on store repository https://github.com/home-assistant/hassio-addons-development with add-on Custom deps deployment.

{ "pypi": [ "https://wheels.home-assistant.io/alpine-3.9/armhf/bluepy-1.3.0-cp37-cp37m-linux_armv7l.whl bluepy==1.3.0" ], "apk": [] }

Then bluepy was installed correctly in deps folder, hope this helps somehow

@parisbutterfield
Copy link
Author

pip install --find-links https://wheels.home-assistant.io/ bluepy==1.3.0
bash-4.4# pip install -v --no-cache-dir --find-links https://wheels.home-assistant.io/ bluepy==1.3.0 
Created temporary directory: /tmp/pip-ephem-wheel-cache-kkspx7gx
Created temporary directory: /tmp/pip-req-tracker-hkcol6xp
Created requirements tracker '/tmp/pip-req-tracker-hkcol6xp'
Created temporary directory: /tmp/pip-install-99q7xx0f
Looking in links: https://wheels.home-assistant.io/
Collecting bluepy==1.3.0
  2 location(s) to search for versions of bluepy:
  * https://pypi.org/simple/bluepy/
  * https://wheels.home-assistant.io/
  Skipping link https://wheels.home-assistant.io/ (from -f); not a file
  Getting page https://pypi.org/simple/bluepy/
  Starting new HTTPS connection (1): pypi.org:443
  https://pypi.org:443 "GET /simple/bluepy/ HTTP/1.1" 200 1003
  Analyzing links from page https://pypi.org/simple/bluepy/
    Found link https://files.pythonhosted.org/packages/ea/45/911b293581760e04212fa1c3d4412ded8faa4b6c4e8e39acc4e1f18ae286/bluepy-1.0.2.tar.gz#sha256=4a01563a273957d10631bc39436c32053d2673dadc03a6f78e275934e0a54d4a (from https://pypi.org/simple/bluepy/), version: 1.0.2
    Found link https://files.pythonhosted.org/packages/a2/23/38f57b2f84f99d9aa56efd20fbd0189ceb202f7a48028f634644b8524356/bluepy-1.0.3.tar.gz#sha256=9c3499c314d5d7033db357f6789aff51374aa51a8746f28c8ec2f741e18d2696 (from https://pypi.org/simple/bluepy/), version: 1.0.3
    Found link https://files.pythonhosted.org/packages/b7/6f/99900cbffd7714e75e433ad1ea594f6d0f9cdf9c8bbaffdfef3c5cbf8500/bluepy-1.0.4.tar.gz#sha256=460c288bdc748dae42d79ca9cbdef120925c377557bf1af995242fba0335ceb7 (from https://pypi.org/simple/bluepy/), version: 1.0.4
    Found link https://files.pythonhosted.org/packages/2f/5e/b0f10966bf23b98029164d034d3fc474f1f957885e660e48d61fa462a292/bluepy-1.0.5.tar.gz#sha256=1552712ac629bc11cc39ceccb84c1ca872ecdf7d359a2aa5a218b6cd32440e12 (from https://pypi.org/simple/bluepy/), version: 1.0.5
    Found link https://files.pythonhosted.org/packages/fe/1c/73f960e8a1e378e390139d0a81f6d8388f70b7eea79bb711910841911d0e/bluepy-1.1.0.tar.gz#sha256=067bd65a58b0c3c474fd44269dce42161a9e5361114ec8652ecd4d75183a25a4 (from https://pypi.org/simple/bluepy/), version: 1.1.0
    Found link https://files.pythonhosted.org/packages/13/4f/b2f99f8c5b14ea1d9b2ff311fe0d232affc5a60a2c204825daa51703a358/bluepy-1.1.1.tar.gz#sha256=278dcab7e7b376dbf47e9a7297d47638ab82ec9240b597d500d80e45fa42185e (from https://pypi.org/simple/bluepy/), version: 1.1.1
    Found link https://files.pythonhosted.org/packages/85/06/0729bd5860a6658d3ddd38061caaa14914c0843cfb1305703724bd807005/bluepy-1.1.4.tar.gz#sha256=d619205cf52107da69fd8a5200f380372fc7b22e77e2555cb9aca1682d79df70 (from https://pypi.org/simple/bluepy/), version: 1.1.4
    Found link https://files.pythonhosted.org/packages/1f/5d/fb28bf7d95669b6909cc39dbc1c631f16fc61184f4bb5a3188f1662ca59c/bluepy-1.2.0.tar.gz#sha256=45ecd625ab649208506f84e7c771037feb800dd1037ca6454813718deaf5afa6 (from https://pypi.org/simple/bluepy/), version: 1.2.0
    Found link https://files.pythonhosted.org/packages/27/91/6cfca10bee9862f93015413cf9e6a52c3081a71f1518963396a055128f8e/bluepy-1.3.0.tar.gz#sha256=2a71edafe103565fb990256ff3624c1653036a837dfc90e1e32b839f83971cec (from https://pypi.org/simple/bluepy/), version: 1.3.0
  Getting page https://wheels.home-assistant.io/
  Starting new HTTPS connection (1): wheels.home-assistant.io:443
  https://wheels.home-assistant.io:443 "GET / HTTP/1.1" 200 None
  Analyzing links from page https://wheels.home-assistant.io/
    Skipping link https://wheels.home-assistant.io/alpine-3.9/ (from https://wheels.home-assistant.io/); unsupported archive format: .9
  Using version 1.3.0 (newest of versions: 1.3.0)
  Created temporary directory: /tmp/pip-unpack-bj12585_
  Starting new HTTPS connection (1): files.pythonhosted.org:443
  https://files.pythonhosted.org:443 "GET /packages/27/91/6cfca10bee9862f93015413cf9e6a52c3081a71f1518963396a055128f8e/bluepy-1.3.0.tar.gz HTTP/1.1" 200 217933
  Downloading https://files.pythonhosted.org/packages/27/91/6cfca10bee9862f93015413cf9e6a52c3081a71f1518963396a055128f8e/bluepy-1.3.0.tar.gz (217kB)
  Downloading from URL https://files.pythonhosted.org/packages/27/91/6cfca10bee9862f93015413cf9e6a52c3081a71f1518963396a055128f8e/bluepy-1.3.0.tar.gz#sha256=2a71edafe103565fb990256ff3624c1653036a837dfc90e1e32b839f83971cec (from https://pypi.org/simple/bluepy/)
     |████████████████████████████████| 225kB 591kB/s 
  Added bluepy==1.3.0 from https://files.pythonhosted.org/packages/27/91/6cfca10bee9862f93015413cf9e6a52c3081a71f1518963396a055128f8e/bluepy-1.3.0.tar.gz#sha256=2a71edafe103565fb990256ff3624c1653036a837dfc90e1e32b839f83971cec to build tracker '/tmp/pip-req-tracker-hkcol6xp'
    Running setup.py (path:/tmp/pip-install-99q7xx0f/bluepy/setup.py) egg_info for package bluepy
    Running command python setup.py egg_info
    running egg_info
    creating pip-egg-info/bluepy.egg-info
    writing pip-egg-info/bluepy.egg-info/PKG-INFO
    writing dependency_links to pip-egg-info/bluepy.egg-info/dependency_links.txt
    writing entry points to pip-egg-info/bluepy.egg-info/entry_points.txt
    writing top-level names to pip-egg-info/bluepy.egg-info/top_level.txt
    writing manifest file 'pip-egg-info/bluepy.egg-info/SOURCES.txt'
    reading manifest file 'pip-egg-info/bluepy.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/bluepy.egg-info/SOURCES.txt'
  Source in /tmp/pip-install-99q7xx0f/bluepy has version 1.3.0, which satisfies requirement bluepy==1.3.0 from https://files.pythonhosted.org/packages/27/91/6cfca10bee9862f93015413cf9e6a52c3081a71f1518963396a055128f8e/bluepy-1.3.0.tar.gz#sha256=2a71edafe103565fb990256ff3624c1653036a837dfc90e1e32b839f83971cec
  Removed bluepy==1.3.0 from https://files.pythonhosted.org/packages/27/91/6cfca10bee9862f93015413cf9e6a52c3081a71f1518963396a055128f8e/bluepy-1.3.0.tar.gz#sha256=2a71edafe103565fb990256ff3624c1653036a837dfc90e1e32b839f83971cec from build tracker '/tmp/pip-req-tracker-hkcol6xp'
Building wheels for collected packages: bluepy
  Created temporary directory: /tmp/pip-wheel-w2gjjj_c
  Building wheel for bluepy (setup.py) ...   Destination directory: /tmp/pip-wheel-w2gjjj_c
  Running command /usr/local/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-99q7xx0f/bluepy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-w2gjjj_c --python-tag cp37
  running bdist_wheel
  running build
  running build_py
  Working dir is /tmp/pip-install-99q7xx0f/bluepy
  execute make -C ./bluepy clean
  error: [Errno 2] No such file or directory: 'make': 'make'
error
  ERROR: Failed building wheel for bluepy
  Running setup.py clean for bluepy
  Running command /usr/local/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-99q7xx0f/bluepy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
  running clean
  'build/lib' does not exist -- can't clean it
  'build/bdist.linux-armv6l' does not exist -- can't clean it
  'build/scripts-3.7' does not exist -- can't clean it
Failed to build bluepy
Installing collected packages: bluepy
  Created temporary directory: /tmp/pip-record-npyl3a1y
    Running command /usr/local/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-99q7xx0f/bluepy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-npyl3a1y/install-record.txt --single-version-externally-managed --compile

bash-4.4# pip install https://wheels.home-assistant.io/alpine-3.9/armhf/bluepy-1.3.0-cp37-cp37m-linux_armv7l.whl
ERROR: bluepy-1.3.0-cp37-cp37m-linux_armv7l.whl is not a supported wheel on this platform.
bash-4.4# uname -a
Linux homeassistant 4.14.98 #1 Sat May 11 00:17:17 UTC 2019 armv6l Linux
bash-4.4# pip install https://wheels.home-assistant.io/alpine-3.9/armv7/bluepy-1.3.0-cp37-cp37m-linux_armv7l.whl
ERROR: bluepy-1.3.0-cp37-cp37m-linux_armv7l.whl is not a supported wheel on this platform.

# docker inspect 57529ddf81d1
[
    {
        "Id": "57529ddf81d1ee156403efcdfed373a0083576e873b54f31b8b72ab2ccd7953a",
        "Created": "2019-06-10T22:55:08.30619947Z",
        "Path": "/bin/entry.sh",
        "Args": [
            "python3",
            "-m",
            "homeassistant",
            "--config",
            "/config"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 958,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2019-06-11T03:01:20.763835357Z",
            "FinishedAt": "2019-06-11T02:03:20.276174Z"
        },
        "Image": "sha256:3813f1544f90562d35ac465abe8875fa3d3724d57ca5854dd59bfccb2459dfdc",
        "ResolvConfPath": "/mnt/data/docker/containers/57529ddf81d1ee156403efcdfed373a0083576e873b54f31b8b72ab2ccd7953a/resolv.conf",
        "HostnamePath": "/mnt/data/docker/containers/57529ddf81d1ee156403efcdfed373a0083576e873b54f31b8b72ab2ccd7953a/hostname",
        "HostsPath": "/mnt/data/docker/containers/57529ddf81d1ee156403efcdfed373a0083576e873b54f31b8b72ab2ccd7953a/hosts",
        "LogPath": "",
        "Name": "/homeassistant",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "unconfined",
        "ExecIDs": [
            "c4bd810670487d16414abf69753ae4fc42bcd7f37e25c2e74003ef6f26f43909"
        ],
        "HostConfig": {
            "Binds": [
                "/mnt/data/supervisor/homeassistant:/config:rw",
                "/mnt/data/supervisor/ssl:/ssl:ro",
                "/mnt/data/supervisor/share:/share:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "journald",
                "Config": {}
            },
            "NetworkMode": "host",
            "PortBindings": null,
            "RestartPolicy": {
                "Name": "",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "Dns": [
                "172.30.32.2"
            ],
            "DnsOptions": [
                "ndots:0"
            ],
            "DnsSearch": [
                "."
            ],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "shareable",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": true,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [
                {
                    "PathOnHost": "/dev/ttyAMA0",
                    "PathInContainer": "/dev/ttyAMA0",
                    "CgroupPermissions": "rwm"
                }
            ],
            "DeviceCgroupRules": null,
            "DiskQuota": 0,
            "KernelMemory": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": 0,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": null,
            "ReadonlyPaths": null,
            "Init": true
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/mnt/data/supervisor/homeassistant",
                "Destination": "/config",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/mnt/data/supervisor/share",
                "Destination": "/share",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/mnt/data/supervisor/ssl",
                "Destination": "/ssl",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "homeassistant",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "HASSIO=172.30.32.2",
                "TZ=America/New_York",
                "HASSIO_TOKEN=84d07be960c9dd24ec8fe1619116063ab62ec75fc4712c97fe862e292b4ab652348f7f9f1c5a025b9ba2b365d4763c1a0e824380a90b347f",
                "PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "LANG=C.UTF-8",
                "GPG_KEY=0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D",
                "PYTHON_VERSION=3.7.3",
                "PYTHON_PIP_VERSION=19.1.1",
                "WHEELS_LINKS=https://wheels.home-assistant.io/alpine-3.9/armhf/",
                "LD_LIBRARY_PATH=/opt/vc/lib:"
            ],
            "Cmd": [
                "python3",
                "-m",
                "homeassistant",
                "--config",
                "/config"
            ],
            "Image": "homeassistant/raspberrypi-homeassistant",
            "Volumes": {
                "/config": {},
                "/share": {},
                "/ssl": {}
            },
            "WorkingDir": "/config",
            "Entrypoint": [
                "/bin/entry.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "io.hass.arch": "armhf",
                "io.hass.base.image": "homeassistant/{arch}-homeassistant-base",
                "io.hass.base.name": "python",
                "io.hass.base.version": "2.2",
                "io.hass.machine": "raspberrypi",
                "io.hass.type": "homeassistant",
                "io.hass.version": "0.94.1"
            }
        },
      
    }
]

@balloob

@balloob
Copy link
Member

balloob commented Jun 11, 2019

@parisbutterfield thanks! That is excellent logging done there. When Pascal is back from holiday he sohuld be able to figure out what is going on.

@joecoi
Copy link

joecoi commented Jun 15, 2019

With limited knowledge how pip works I used Hass.io add_on store repository https://github.com/home-assistant/hassio-addons-development with add-on Custom deps deployment.

{ "pypi": [ "https://wheels.home-assistant.io/alpine-3.9/armhf/bluepy-1.3.0-cp37-cp37m-linux_armv7l.whl bluepy==1.3.0" ], "apk": [] }

Then bluepy was installed correctly in deps folder, hope this helps somehow

@yada75 this worked for me - thank you.

In .94.3/1 my cometblue radiator thermostats failed to load with log entry
ModuleNotFoundError: No module named 'bluepy'
The 'deps' folder was present but empty; after steps above I have populated 'bin' & 'lib' sub folders.

@amaciasf
Copy link

In v0.95.0b0 (docker container) gatttool are still used but it doesn't work correctly.

2019-06-20 17:37:36 INFO (SyncWorker_13) [homeassistant.loader] Loaded miflora from homeassistant.components.miflora
2019-06-20 17:37:41 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.miflora
2019-06-20 17:37:42 DEBUG (MainThread) [homeassistant.components.miflora.sensor] Miflora is using GatttoolBackend backend.

@pvizeli
Copy link
Member

pvizeli commented Jun 21, 2019

@pagenoare can you retry it with:

pip install --find-links $WHEELS_LINKS bluepy==1.3.0

@bachoo786

This comment has been minimized.

@pvizeli

This comment has been minimized.

@amaciasf
Copy link

Hi @pvizeli. I am using docker in RaspberryPi 3B+ and this works for the container homeassistant/raspberrypi3-homeassistant.

# docker stop ha
ha
# docker container rm ha
ha
# docker run --init -d --name="ha" -v /docker/config/homeassistant/config:/config -v /etc/localtime:/etc/localtime:ro --net=host --restart unless-stopped homeassistant/raspberrypi3-homeassistant:latest
f3d6dadb1b6accf3e2126cc4d63ae186a3ef27a7331e6fe6f809c20f96eb6e90
# docker logs ha 2>&1 | grep flora | grep -v websocket_api
2019-06-22 11:35:42 INFO (SyncWorker_8) [homeassistant.loader] Loaded miflora from homeassistant.components.miflora
2019-06-22 11:35:48 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.miflora
2019-06-22 11:35:48 DEBUG (MainThread) [homeassistant.components.miflora.sensor] Miflora is using GatttoolBackend backend.
[...]
# docker exec -it ha /bin/bash
bash-4.4# pip install --find-links $WHEELS_LINKS bluepy==1.3.0
Looking in links: https://wheels.home-assistant.io/alpine-3.9/armv7/
Collecting bluepy==1.3.0
  Downloading https://wheels.home-assistant.io/alpine-3.9/armv7/bluepy-1.3.0-cp37-cp37m-linux_armv7l.whl (604kB)
     |████████████████████████████████| 604kB 654kB/s 
Installing collected packages: bluepy
Successfully installed bluepy-1.3.0
bash-4.4# exit
# echo "" > $(docker inspect --format='{{.LogPath}}' ha); docker restart ha
ha
# docker logs ha 2>&1 | grep flora | grep -v websocket_api
2019-06-22 12:20:34 INFO (SyncWorker_17) [homeassistant.loader] Loaded miflora from homeassistant.components.miflora
2019-06-22 12:20:42 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.miflora
2019-06-22 12:20:43 DEBUG (MainThread) [homeassistant.components.miflora.sensor] Miflora is using BluepyBackend backend.
[...]

You can add this to dockerfile?

Thanks!

@pvizeli
Copy link
Member

pvizeli commented Jun 23, 2019

Well it is with 0.95 and as next, you don't need delete the container to modify some things. Modify the running container and restart HA...

@amaciasf
Copy link

I know, it was so you could see that it works badly from the beginning

@pvizeli
Copy link
Member

pvizeli commented Jun 24, 2019

I can try the beta and verify it?

@amaciasf
Copy link

this beta works correctly.

2019-06-24 18:37:42 INFO (SyncWorker_9) [homeassistant.loader] Loaded miflora from homeassistant.components.miflora
2019-06-24 18:37:54 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.miflora
2019-06-24 18:37:54 DEBUG (MainThread) [homeassistant.components.miflora.sensor] Miflora is using BluepyBackend backend.

Thanks!

@eucciferri
Copy link

Hi Guys!
Could anyone solve this problem? Could someone help me understand how I get to the log to see if my miflora is using Bluepy?

I did what Joecoi said, but it still fails:
#24441

Does anyone know if version 0.95 already fixes this bug?

Thank you very much!!

@eucciferri
Copy link

This applied, but still fails:
"...
With limited knowledge how pip works I used Hass.io add_on store repository https://github.com/home-assistant/hassio-addons-development with add-on Custom deps deployment.
{ "pypi": [ "https://wheels.home-assistant.io/alpine-3.9/armhf/bluepy-1.3.0-cp37-cp37m-linux_armv7l.whl bluepy==1.3.0" ], "apk": [] }
Then bluepy was installed correctly in deps folder, hope this helps somehow
..."

@balloob
Copy link
Member

balloob commented Jun 27, 2019

Closing this as fixed correctly in the beta. @eucciferri if you are still experiencing problems while running 0.95, please open a new issue.

@balloob balloob closed this as completed Jun 27, 2019
@eucciferri
Copy link

Hi @balloob! My Flora started working well in version 0.95, but now that I'm realizing it, after version 0.95.4 it stopped working again!

@JBS5
Copy link

JBS5 commented Jul 16, 2019

Have the same problem with Hass.io 0.95.4, miflora is not working anymore while plantgateway does.

@furiaceka87
Copy link

Have the same issue in 0.96.5.
@balloob could you please re-open.

@balloob
Copy link
Member

balloob commented Aug 1, 2019

Please open a new issue.

@home-assistant home-assistant locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests