home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.13k stars 29.18k forks source link

Can't install python-openzwave==0.4.3 macOS #25283

Closed megancooper closed 5 years ago

megancooper commented 5 years ago

Note: Yes, I've looked at and tried to implement the following solutions to my problem. Non of these have working for me:

Similar Issue #1: https://github.com/home-assistant/home-assistant/issues/13211 Solution: macOS

$ sudo /Applications/Python\ x.x/Install\ Certificates.command

linux:

$ sudo apt-get install libudev-dev

Similar Issue #2: home-assistant.io => #42931


Home Assistant release with the issue: 0.75.3

Operating environment (Hass.io/Docker/Windows/etc.): macOS

Component/platform: https://www.home-assistant.io/components/zwave/

Description of problem: I am unable to install python-openzwave==0.4.3 when I start up homeassisstant locally

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

homeassistant:
  name: Home
  latitude: 37.751
  longitude: -97.822
  elevation: 0
  unit_system: imperial
  time_zone: UTC
  customize: {}

http:
  server_port: !env_var HASS_PORT

config:

api:

zwave:
  usb_path: /dev/cu.usbmodem14601
  network_key: '0x64, 0x46, 0x66, 0x19, 0xF7, 0x51, 0x70, 0x3F, 0x61, 0x60, 0x0F, 0x76, 0x34, 0x57, 0x25, 0xA6,'

frontend:

Traceback (if applicable):

2019-07-18 16:33:34 INFO (SyncWorker_7) [homeassistant.util.package] Attempting install of python_openzwave==0.4.3
2019-07-18 16:33:44 WARNING (MainThread) [homeassistant.setup] Setup of config is taking over 10 seconds.
2019-07-18 16:36:43 ERROR (SyncWorker_7) [homeassistant.util.package] Unable to install package python_openzwave==0.4.3: ERROR: Complete output from command /usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/w3/r5y19dyj3tq0zyj3cgrlyrqw0000gn/T/pip-install-24_mku6s/python-openzwave/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 /private/var/folders/w3/r5y19dyj3tq0zyj3cgrlyrqw0000gn/T/pip-wheel-jfki_68y --python-tag cp37:
ERROR: sysargv ['-c', 'bdist_wheel', '-d', '/private/var/folders/w3/r5y19dyj3tq0zyj3cgrlyrqw0000gn/T/pip-wheel-jfki_68y', '--python-tag', 'cp37']
  <pyozw_setup.EmbedTemplate object at 0x106e73450>
  {'name': 'libopenzwave', 'sources': ['openzwave-embed/open-zwave-master/python-openzwave/src-lib/libopenzwave/libopenzwave.cpp'], 'include_dirs': ['src-lib/libopenzwave/', 'openzwave-embed/open-zwave-master/cpp/src', 'openzwave-embed/open-zwave-master/cpp/src/value_classes', 'openzwave-embed/open-zwave-master/cpp/src/platform', 'openzwave-embed/open-zwave-master/cpp/build/mac'], 'define_macros': [('PY_LIB_VERSION', '0.4.3'), ('PY_SSIZE_T_CLEAN', 1), ('PY_LIB_FLAVOR', 'embed'), ('PY_LIB_BACKEND', 'cython')], 'libraries': [], 'extra_objects': ['openzwave-embed/open-zwave-master/libopenzwave.a'], 'extra_compile_args': ['-stdlib=libc++', '-mmacosx-version-min=10.7'], 'extra_link_args': ['-framework', 'CoreFoundation', '-framework', 'IOKit'], 'language': 'c++'}
  ['six', 'PyDispatcher>=2.0.5']
  running bdist_wheel
  running build
  running build_openzwave
  Found g++ : /usr/bin/g++
  Found gcc : /usr/bin/gcc
  Found make : /usr/bin/make
  Found gmake : None
  Found pkg-config : None
  fetching https://raw.githubusercontent.com/OpenZWave/python-openzwave/master/archives/open-zwave-master-0.4.3.zip into openzwave-embed/open-zwave.zip for version 0.4.3
  Try to copy openzwave-embed/open-zwave-master/python-openzwave/openzwave.vers.cpp
  Build openzwave ... be patient ...
  b'In file included from /private/var/folders/w3/r5y19dyj3tq0zyj3cgrlyrqw0000gn/T/pip-install-24_mku6s/python-openzwave/openzwave-embed/open-zwave-master/cpp/src/value_classes/ValueBool.cpp:29:\n'
  b'In file included from /private/var/folders/w3/r5y19dyj3tq0zyj3cgrlyrqw0000gn/T/pip-install-24_mku6s/python-openzwave/openzwave-embed/open-zwave-master/cpp/src/value_classes/ValueBool.cpp:29:\n'

  b"/private/var/folders/w3/r5y19dyj3tq0zyj3cgrlyrqw0000gn/T/pip-install-24_mku6s/python-openzwave/openzwave-embed/open-zwave-master/cpp/src/value_classes/ValueBool.h:66:8: error: private field 'm_newValue' is not used [-Werror,-Wunused-private-field]\n"
  b"/private/var/folders/w3/r5y19dyj3tq0zyj3cgrlyrqw0000gn/T/pip-install-24_mku6s/python-openzwave/openzwave-embed/open-zwave-master/cpp/src/value_classes/ValueBool.h:66:8: error: private field 'm_newValue' is not used [-Werror,-Wunused-private-field]\n"

  b'                bool    m_newValue;                             // a new value to be set on the appropriate device\n'
  b'                bool    m_newValue;                             // a new value to be set on the appropriate device\n'

  b'                        ^\n'
  b'                        ^\n'

  b'1 error generated.\n'
  b'1 error generated.\n'

  b'make[1]: *** [/private/var/folders/w3/r5y19dyj3tq0zyj3cgrlyrqw0000gn/T/pip-install-24_mku6s/python-openzwave/openzwave-embed/open-zwave-master/.lib/ValueBool.o] Error 1\n'
  b'make[1]: *** [/private/var/folders/w3/r5y19dyj3tq0zyj3cgrlyrqw0000gn/T/pip-install-24_mku6s/python-openzwave/openzwave-embed/open-zwave-master/.lib/ValueBool.o] Error 1\n'

  b'make: *** [all] Error 2\n'
  b'make: *** [all] Error 2\n'

Additional information: home-assisstant.log

What I see in local home assisstant:

Screen Shot 2019-07-18 at 5 29 43 PM
kpine commented 5 years ago

Your solution is to update your version of Home Assistant. HA is currently at version 0.96.1, but you are running 0.75.3. The bug you're encountering has was fixed quite a long time ago.

megancooper commented 5 years ago

Thank you, this solved my issue!