Update HA to 0.91 - zwave fail

ERROR (Thread-10) [homeassistant.util.package] Unable to install package homeassistant-pyozw==0.1.3: Failed building wheel for homeassistant-pyozw
Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6hyl8pj0/homeassistant-pyozw/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-1vlq0cbt/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.5/homeassistant-pyozw" failed with error code 1 in /tmp/pip-install-6hyl8pj0/homeassistant-pyozw/
2019-04-04 16:24:04 ERROR (MainThread) [homeassistant.requirements] Not initializing zwave because could not install requirement homeassistant-pyozw==0.1.3
2019-04-04 16:24:05 ERROR (MainThread) [homeassistant.setup] Setup failed for zwave: Could not install all requirements

pip3 install homeassistant-ptozw==0.1.3

Failed building wheel for homeassistant-pyozw

I’m using MACOS and my ZWave has stoped working too which is unfortunate because its a big part of my setup. Yes, I read the notes before installing and I thought I could figure it out, but I can’t. I’ve tried so many different things including deleting everything z-wave.

I’m going to downgrade HA to 90.2

1 Like

Looks like I shot myself in the foot by deleting my components. Now I’m back on 0.90.2 and when trying to integrate z-wave I get the following:

Set up Z-Wave

Unknown error occurred

See https://www.home-assistant.io/docs/z-wave/installation/ for information on the configuration variables

Z-Wave validation failed. Is the path to the USB stick correct?

USB Path
/dev/cu.usbmodem641

Network Key (leave blank to auto-generate)

SUBMIT

I couldn’t even get this screen to pop up on 0.91, I would just get a spinning circle.

There is a compilation error in the latest open-zwave fork that HA is using. I have submitted a bug, and a PR. For now I am building a homeassistant-pyozw with a local patched open-zwave.

https://github.com/home-assistant/home-assistant/issues/22697
https://github.com/home-assistant/open-zwave/pull/4

I can’t even get 90.2 to work…

Log Details (ERROR)
Fri Apr 05 2019 16:37:06 GMT-0500 (CDT)

Error handling request
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aiohttp/web_protocol.py”, line 418, in start
resp = await task
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aiohttp/web_app.py”, line 458, in _handle
resp = await handler(request)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
return await handler(request)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/http/real_ip.py”, line 33, in real_ip_middleware
return await handler(request)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/http/ban.py”, line 68, in ban_middleware
return await handler(request)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/http/auth.py”, line 206, in auth_middleware
return await handler(request)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/http/view.py”, line 112, in handle
result = await result
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/config/config_entries.py”, line 154, in post
return await super().post(request, flow_id)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/http/data_validator.py”, line 46, in wrapper
result = await method(view, request, *args, **kwargs)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/helpers/data_entry_flow.py”, line 86, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/data_entry_flow.py”, line 80, in async_configure
flow, step_id, user_input)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/data_entry_flow.py”, line 98, in _async_handle_step
result = await getattr(flow, method)(user_input) # type: Dict
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/zwave/config_flow.py”, line 50, in async_step_user
user_path=self.hass.config.config_dir)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/openzwave/option.py”, line 82, in init
libopenzwave.PyOptions.init(self, config_path=config_path, user_path=user_path, cmd_line=cmd_line)
File “src-lib/libopenzwave/libopenzwave.pyx”, line 688, in libopenzwave.PyOptions.init
File “src-lib/libopenzwave/libopenzwave.pyx”, line 958, in libopenzwave.PyOptions.getConfigPath
File “src-lib/libopenzwave/libopenzwave.pyx”, line 635, in libopenzwave.configPath
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/init.py”, line 1142, in resource_filename
return get_provider(package_or_requirement).get_resource_filename(
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/init.py”, line 362, in get_provider
return _find_adapter(_provider_factories, loader)(module)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/init.py”, line 1390, in init
self.module_path = os.path.dirname(getattr(module, ‘file’, ‘’))
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/posixpath.py”, line 156, in dirname
p = os.fspath§
TypeError: expected str, bytes or os.PathLike object, not NoneType

Thought I would try 91.0 again, maybe I was being impatient…

2019-04-05 16:59:06 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package homeassistant-pyozw==0.1.3: Failed building wheel for homeassistant-pyozw
Error checking for conflicts.
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2897, in _dep_map
return self.__dep_map
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2691, in getattr
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2888, in _parsed_pkg_info
return self._pkg_info
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2691, in getattr
raise AttributeError(attr)
AttributeError: _pkg_info

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/commands/install.py”, line 503, in _warn_about_conflicts
package_set, _dep_info = check_install_conflicts(to_install)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/operations/check.py”, line 108, in check_install_conflicts
package_set, _ = create_package_set_from_installed()
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/operations/check.py”, line 47, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dist.requires())
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2635, in requires
dm = self._dep_map
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2899, in _dep_map
self.__dep_map = self._compute_dependencies()
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2908, in _compute_dependencies
for req in self._parsed_pkg_info.get_all(‘Requires-Dist’) or []:
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2890, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 1410, in get_metadata
value = self._get(self._fn(self.egg_info, name))
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 1522, in _get
with open(path, ‘rb’) as stream:
FileNotFoundError: [Errno 2] No such file or directory: ‘/Users/marcuspugh/.homeassistant/deps/lib/python/site-packages/homeassistant_pyozw-0.1.2.dist-info/METADATA’
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: ‘/Users/marcuspugh/.homeassistant/deps/lib/python/site-packages/homeassistant_pyozw-0.1.2.dist-info/RECORD’

You are using pip version 19.0.1, however version 19.0.3 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
2019-04-05 16:59:06 ERROR (MainThread) [homeassistant.requirements] Not initializing <class ‘homeassistant.components.zwave.config_flow.ZwaveFlowHandler’> because could not install requirement homeassistant-pyozw==0.1.3
2019-04-05 16:59:06 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aiohttp/web_protocol.py”, line 418, in start
resp = await task
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aiohttp/web_app.py”, line 458, in _handle
resp = await handler(request)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
return await handler(request)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/http/real_ip.py”, line 33, in real_ip_middleware
return await handler(request)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/http/ban.py”, line 68, in ban_middleware
return await handler(request)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/http/auth.py”, line 216, in auth_middleware
return await handler(request)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/http/view.py”, line 114, in handle
result = await result
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/config/config_entries.py”, line 119, in post
return await super().post(request)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/components/http/data_validator.py”, line 46, in wrapper
result = await method(view, request, *args, **kwargs)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/helpers/data_entry_flow.py”, line 57, in post
handler, context={‘source’: config_entries.SOURCE_USER})
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/data_entry_flow.py”, line 57, in async_init
handler, context=context, data=data)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/config_entries.py”, line 699, in _async_create_flow
self.hass, self._hass_config, handler, component)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/setup.py”, line 255, in async_process_deps_reqs
raise HomeAssistantError(“Could not install all requirements.”)
homeassistant.exceptions.HomeAssistantError: Could not install all requirements.

On the front end a smaller box opens and a little blue dot just spins…

Devs have been made aware of this are and are investigating for a fix. Keep an eye on this issue for further updates. cc @pvizeli

Same problem here,… The linked issue is closed but I don’t understand how to “read” it. It is stated that the HA specific changes have been merged with 0.1.4, does this mean we have to upgrade the compnent to this version? Or do we have to wait for a new HA release?

Latest news is that home Assistant will be upgraded to 0.1.4 in 0.92.

1 Like

Just tried 92.1… Z-Wave is gone… Again…

Awesome…

UPDATE: Luckily back to 90.2, no problem.

1 Like

Confirmed. Got the same here.

Eep, guess I’ll stay on 0.92

0.92.1 Z-Wave working fine

Still not working with 93.2…

Sun Jun 02 2019 17:25:53 GMT-0500 (CDT)

Unable to install package homeassistant-pyozw==0.1.4: Error checking for conflicts.
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2897, in _dep_map
return self.__dep_map
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2691, in getattr
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2888, in _parsed_pkg_info
return self._pkg_info
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2691, in getattr
raise AttributeError(attr)
AttributeError: _pkg_info

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/commands/install.py”, line 503, in _warn_about_conflicts
package_set, _dep_info = check_install_conflicts(to_install)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/operations/check.py”, line 108, in check_install_conflicts
package_set, _ = create_package_set_from_installed()
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/operations/check.py”, line 47, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dist.requires())
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2635, in requires
dm = self._dep_map
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2899, in _dep_map
self.__dep_map = self._compute_dependencies()
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2908, in _compute_dependencies
for req in self._parsed_pkg_info.get_all(‘Requires-Dist’) or []:
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 2890, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 1410, in get_metadata
value = self._get(self._fn(self.egg_info, name))
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 1522, in _get
with open(path, ‘rb’) as stream:
FileNotFoundError: [Errno 2] No such file or directory: ‘/Users/marcuspugh/.homeassistant/deps/lib/python/site-packages/homeassistant_pyozw-0.1.2.dist-info/METADATA’
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: ‘/Users/marcuspugh/.homeassistant/deps/lib/python/site-packages/homeassistant_pyozw-0.1.2.dist-info/RECORD’

Going back to 90.2; is anyone aware of this outside of this forum?

Your’e getting errors relating to v0.1.2 while installing v0.1.4?

That a windows install?

Good catch @winter… maybe try uninstalling 0.1.2?

Running on MacOS @firstof9.

I think @winter had a special blend for BSD derivatives like MacOS you may need more tinkering or just slap it into a VM and save the headache.

1 Like

I’m probably going to have to, I’m just dragging my feet.