Thanks a lot for your support.
Code: Select all
root@nano:/home/jetson/zmeventnotification# sudo -u www-data /var/lib/zmeventnotification/bin/zm_detect.py --config /etc/zm/objectconfig.ini --eventid 369 --monitorid 1 --debug
Unrecoverable error:future feature annotations is not defined (abstracts.py, line 33) Traceback:Traceback (most recent call last):
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 556, in <module>
main_handler()
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 267, in main_handler
log.init(name='zmesdetect_' + 'm' + args.get('monitorid'), override=g.config['pyzm_overrides'])
File "/usr/local/lib/python3.6/dist-packages/pyzm/ZMLog.py", line 227, in init
engine = create_engine(cstr, pool_recycle=3600)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/__init__.py", line 525, in create_engine
return strategy.create(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/strategies.py", line 87, in create
dbapi = dialect_cls.dbapi(**dbapi_args)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/dialects/mysql/mysqlconnector.py", line 135, in dbapi
from mysql import connector
File "/usr/local/lib/python3.6/dist-packages/mysql/connector/__init__.py", line 32, in <module>
from .connection_cext import CMySQLConnection
File "/usr/local/lib/python3.6/dist-packages/mysql/connector/connection_cext.py", line 40, in <module>
from .abstracts import MySQLConnectionAbstract
File "/usr/local/lib/python3.6/dist-packages/mysql/connector/abstracts.py", line 33
from __future__ import annotations
^
SyntaxError: future feature annotations is not defined