Starting over and Zwave

I got to the point today where I decide to start over and do a better job of documenting what I’ve done. I’m trying to install open zwave now. I have HA setup in the virtual python environment. Where do I install open zwave and it’s prereq’s from (pi, homeassistant)? And what’s with changing the user name? I saw something about that a few weeks back and didn’t give it much thought.
Thanks

As I move on, still waiting on a response on the zwave issue. I noticed that every time I start HA, it spends a lot of time trying to install the following pubnubsub-handler. That doesn’t work so wink fails to load. Any thoughts?

I tried installing pubnubsub-handler manually with pip3. It said it was successful, but evidently homeassistant doesn’t think so, it keeps trying to re-load it.

1 - The AIO installer puts it here: /srv/homeassistant/src/open-zwave-control-panel and since you don’t have to login as the HA user or activate the venv to run it, I’d say you could install it as the pi user.

2 - Yes, at least in the AIO instructions it was mentioned. used to be ‘hass’ now it’s ‘homeassistant’. Might be a German thing - the word hass in German means ‘hate’; not a great association… LOL. I think Rene actually mentioned this to me.

3 - When you installed punubsub, did you do it as the HA user with the venv activated? If so, you may want to ask William about this.

Hope it all goes well - sorry it came to that point, but it is probably going to end up being a smart decision. I’m thinking of going through a manual install when I decommission my old Plex server.

1 Like

No joy here tonight.

It’s acting like HA can’t find the apps that have been installed by pip3 by the homeassistant user with the virtual environment active. If I do a pip3 list I can see things like pysnmp and pubnubsub-handler at the correct versions, but HA still wants to try and re-install them and evidently isn’t successful.

Any thoughts

I remember one of the devs helping me with a dependency had me use the ‘which’ command in the venv and it showed the version of the dependency we were looking for. That may help. (which pubnubsub-handler) Also the where command.

got my nmap problem resolved. Had to put /usr/sbin in the daemon’s path via the systemd startup script.
Next problem I can’t get the current version of HA anymore.

17-02-08 10:27:44 INFO (Thread-1) [homeassistant.components.sensor.command_line] Running command: python3 -c "import requests; print(requests.get('https://pypi.python.org/pypi/homeassistant/json').json()['info']['version'])"
17-02-08 10:28:45 ERROR (Thread-7) [homeassistant.components.sensor.command_line] Command failed: python3 -c "import requests; print(requests.get('https://pypi.python.org/pypi/homeassistant/json').json()['info']['version'])"

Wierd. I’m using the same command line sensor and it’s working for me.

how do I install older versions of python apps using pip3? The apps that it is complaining about seem to be ones where I have more current apps installed.

Check this out:

I got a few things re-installed at the older versions. But pubnub is still giving me problems

I did the following from the command line in the HA virtual environment

(homeassistant_venv) homeassistant@hass2:~$ pip3 install pubnubsub-handler==1.0.0
Requirement already satisfied: pubnubsub-handler==1.0.0 in /usr/local/lib/python3.4/dist-packages
Requirement already satisfied: pycryptodomex>=3.3 in /usr/local/lib/python3.4/dist-packages (from pubnubsub-handler==1.0.0)
Requirement already satisfied: requests>=2.4 in /usr/local/lib/python3.4/dist-packages (from pubnubsub-handler==1.0.0)
Collecting pubnub==4.0.5 (from pubnubsub-handler==1.0.0)
  Using cached pubnub-4.0.5.tar.gz
Requirement already satisfied: six>=1.10 in /usr/local/lib/python3.4/dist-packages (from pubnub==4.0.5->pubnubsub-handler==1.0.0)
Installing collected packages: pubnub
  Running setup.py install for pubnub ... done
Successfully installed pubnub-4.0.5
(homeassistant_venv) homeassistant@hass2:~$ sudo systemctl restart [email protected] 
(homeassistant_venv) homeassistant@hass2:~$ 

restarting HA resulted in it still trying to re-install it.

17-02-08 11:10:59 INFO (Thread-1) [homeassistant.util.package] Attempting install of pubnubsub-handler==1.0.0

pip3 list shows the following for pubnub

pubnub (4.0.5)
pubnubsub-handler (1.0.0)

When I put the full path in front of the python3 command on the version command, it started working. There appears to be something messed up with the environment that the daemon is running under. This is the second path issue I’ve run into.

Ok, I"m down to the following error that’s keeping wink from loading. Unfortunately since all my devices attach to wink, even with zwave working now (YAAAAA) i still don’t have any devices. :slight_smile:

any thoughts about this error
17-02-08 13:27:53 ERROR (Thread-10) [homeassistant.bootstrap] Not initializing wink because could not install dependency pubnubsub-handler==1.0.0

I’ve tried installing it, I’ve tried uninstalling it and re-installing it. I’ve forced it to version 1.0.0 and pip list say’s that’s what’s installed. But for some reason HA is dead set that it has to install it.

Paging @w1ll1am23? LOL

He would probably be the best source of information.

I messaged him directly a couple of hours ago. He’ll respond when he gets time.

Keep a stiff upper lip lad! Better seas ahead.

I’m about ready to blow this one away and start over again. I’m trying to get the install process down right. The docs we have are kind of all over the place. It makes it a little difficult. I guess I could do the All-in-1 install, but then I wouldn’t learn anything.

1 Like

I keep checking in to see how you’re doing.

Sitting at home kicked back in a recliner, breaking stuff (code). LOL

1 Like

got it. When I was installing missing apps, I wasn’t giving them a target of the deps directory. So HA wasn’t finding the where it was looking for them. once I did this

pip install pubnubsub-handler==1.0.0 --upgrade --target /home/homeassistant/.homeassistant/deps/

I got all my switches, and outlets back.

1 Like

Another day another problem. :slight_smile:

I have appdaemon up and running some of my automations. The ones that are giving me problems are the ones that require 3rd party libraries like pysnmp or gtts. I’ve tried installing these every way I can think of at this point. I keep getting the following error when I touch my source file.

2017-02-09 10:15:03.159587 WARNING ------------------------------------------------------------
2017-02-09 10:15:03.217285 WARNING ------------------------------------------------------------
2017-02-09 10:15:03.217967 WARNING Unexpected error during loading of printermonitor:
2017-02-09 10:15:03.218540 WARNING ------------------------------------------------------------
2017-02-09 10:15:03.219425 WARNING Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py", line 996, in read_app
    init_object(name, class_name, module_name, config[name])
  File "/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py", line 679, in init_object
    module = __import__(module_name)
  File "/home/homeassistant/code/appdaemon/printermonitor/printermonitor.py", line 45, in <module>
    from pysnmp.hlapi import *
ImportError: No module named 'pysnmp' 

pip list thinks pysnmp is installed. This is probably another case of needing a destination specified, or of needing a path for the AppDaemon service, but I’m at a loss right now.