Aeotec Z- Stick Connection Issue

I am having a problem connecting my zwave stick with HomeAssistant. I have connected two things to it and it briefly worked. But I tried to find the options.xml and then I did a few restarts and it gave me this error.

`17-01-12 04:42:46 homeassistant.bootstrap: Error during setup of component zwave
Traceback (most recent call last):
File “/srv/hass/hass_venv/lib/python3.4/site-packages/openzwave-0.3.1-py3.4.egg/openzwave/option.py”, line 72, in init
raise ZWaveException(u"Can’t find device %s : %s" % (device, traceback.format_exception(*sys.exc_info())))
File “/usr/lib/python3.4/traceback.py”, line 181, in format_exception
return list(_format_exception_iter(etype, value, tb, limit, chain))
File “/usr/lib/python3.4/traceback.py”, line 146, in _format_exception_iter
for value, tb in values:
File “/usr/lib/python3.4/traceback.py”, line 125, in _iter_chain
context = exc.context
AttributeError: ‘NoneType’ object has no attribute ‘context

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py”, line 102, in _setup_component
result = component.setup(hass, config)
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/zwave.py”, line 308, in setup
default_zwave_config_path),)
File “/srv/hass/hass_venv/lib/python3.4/site-packages/openzwave-0.3.1-py3.4.egg/openzwave/option.py”, line 75, in init
raise ZWaveException(u"Error when retrieving device %s : %s" % (device, traceback.format_exception(*sys.exc_info())))
openzwave.object.ZWaveException: ‘Zwave Generic Exception : Error when retrieving device /zwaveusbstick : [‘Traceback (most recent call last):\n’, ’ File “/srv/hass/hass_venv/lib/python3.4/site-packages/openzwave-0.3.1-py3.4.egg/openzwave/option.py”, line 72, in init\n raise ZWaveException(u"Can\‘t find device %s : %s" % (device, traceback.format_exception(*sys.exc_info())))\n’, ’ File “/usr/lib/python3.4/traceback.py”, line 181, in format_exception\n return list(_format_exception_iter(etype, value, tb, limit, chain))\n’, ’ File “/usr/lib/python3.4/traceback.py”, line 146, in _format_exception_iter\n for value, tb in values:\n’, ’ File “/usr/lib/python3.4/traceback.py”, line 125, in _iter_chain\n context = exc.context\n’, “AttributeError: ‘NoneType’ object has no attribute ‘context’\n”]’
17-01-12 04:42:53 yahooweather: Fetch no weather data Yahoo!
17-01-12 04:42:53 homeassistant.components.sensor.yweather: Can’t retrieve weather data from yahoo!
17-01-12 04:42:53 homeassistant.components.emulated_hue: Listen IP address not specified, auto-detected address is 10.10.10.201`

I had the same issue and got it working today by simply doing:

sudo apt-get update
sudo apt-get dist-upgrade

then rebooting the pie