Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigParser python module missing #80

Closed
Oliv59 opened this issue Feb 12, 2019 · 2 comments
Closed

ConfigParser python module missing #80

Oliv59 opened this issue Feb 12, 2019 · 2 comments

Comments

@Oliv59
Copy link

Oliv59 commented Feb 12, 2019

Hello,

I'm running ZM 1.30.4,
Event Server version
3.0

The version of ZoneMinder you are using:
1.30.4

What is the nature of your issue
Bug

Details
When i launch the zmeventserver via cli (even in daemon), through command : sudo -u www-data /usr/bin/zmeventnotification.pl, then i force an alarm in ZM monitor, i get this error :
Invoking hook:'/usr/bin/detect_wrapper.sh' 425 2 "Garage" "Forced Web"
Traceback (most recent call last):
File "/usr/bin/detect_yolo.py", line 24, in
import configparser
ImportError: No module named configparser

I first got a missing CV2 module, then this one. Found a solution for CV2 : "sudo apt-get install python3-dev libmysqlclient-dev", but no solution found for ConfigParser.

For complementary information, i run all of this on a Raspbian 9 (Stretch) / Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux

Thanks!

Olivier.

@pliablepixels
Copy link
Member

pliablepixels commented Feb 12, 2019

Did you run sudo pip -r requirements.txt inside the hook folder as described here?

Also note that you need all of this only if you are using machine learning hooks. If not, please disable hooks in the eventserver config

@Oliv59
Copy link
Author

Oliv59 commented Feb 12, 2019

OK, thanks for your fast answer. I didn't read about this hook disabling in the readme, might have missed it, sorry for this. By the way, disabling the hook worked like a charm, as runing the pip command (even as sudo) returned a "pip: command not found". I'll check for this later, at the moment i have the notifications on zmninja desktop, have to find how to make it work on zmninja pro android :)
Once again, thanks for you great help, and for this plugin too !

@Oliv59 Oliv59 closed this as completed Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants