ZMEventnotification working with Debian 9 / stretch

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
dad1
Posts: 12
Joined: Fri Feb 04, 2011 10:18 am

ZMEventnotification working with Debian 9 / stretch

Post 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
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMEventnotification working with Debian 9 / stretch

Post 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.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Post Reply