Page 1 of 1

ZMEventnotification working with Debian 9 / stretch

Posted: Fri Jul 12, 2019 10:14 am
by dad1
Hi,

I have seen a number of threads about getting event notification working with Debian 9/ stretch.

If you follow the installation guide you get errors such as:

ImportError: No module named 'cv2'

This happens because by default Stretch installs python 2.7. Following the installation guide installs python 3.

However, buried inside some of the zmeventnotification scripts some of the python calls are pip rather than pip3, so the commands get sent to the python 2.7 interpreter which does not have all the prerequisite modules installed and so throws errors like the one above.

Repeating all the pip3 commands in the installation guide with the pip versions so installing the prerequisites allowed me to get to a working system.

It's a bit of a kludge but it worked. I think the correct solution would be to go through the zmeventnotification scripts and make sure they all refer to pip3.

HTH

Re: ZMEventnotification working with Debian 9 / stretch

Posted: Fri Jul 12, 2019 11:59 am
by asker
Hi,
Glad you got it worked out. This is actually covered in the install steps. See this

I've come across one system where Python3 was the only version and "pip3" did not exist. pip was the right tool to use. That's why I chose to leave it as pip and not explicitly state pip3 everywhere.