I have installed pyinotify. While importing pyinotify, i'm encountering a syntax error.
import pyinotify
Traceback (most recent call last):
File "", line 1, in
File "", line 969, in _find_and_load
File "", line 954, in _find_and_load_unlocked
File "", line 896, in _find_spec
File "", line 1152, in find_spec
File "", line 1128, in _get_spec
File "", line 1109, in _legacy_get_spec
File "", line 444, in spec_from_loader
File "", line 546, in spec_from_file_location
File "/root/anaconda3/lib/python3.5/site-packages/pyinotify-0.9.6-py3.5.egg/pyinotify.py", line 179
except IOError, err:
^
SyntaxError: invalid syntax
I have installed pyinotify. While importing pyinotify, i'm encountering a syntax error.
can anyone suggest how to eliminate this error.