@ZileXa wrote:
I have created a new config based on @jonybat config file.
It used the 3rd party plugin log_filter by @tarzasaiIs this plugin still being used by anyone?
I installed it by creating a folder calledplugins
in ~/flexget/ and usingnano
I created a textfilelog_filter.py
with the contents of his github file. Unfortunately when I runflexget check
I get this horrible error:
osmc@ShantaPi:~$ /home/osmc/flexget/bin/flexget check
2017-06-22 19:04 CRITICAL plugin Exception while loading plugin flexget.plugins.log_filter
Traceback (most recent call last):
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/plugin.py", line 396, in _load_plugins_from_dirs
__import__(module_name)
File "/home/osmc/flexget/plugins/log_filter.py", line 1
from __future__ import unicode_literals, division, absolute_import import logging from flexget import plugin from flexget.event import event log = logging.getLogger('logfilter')
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/home/osmc/flexget/bin/flexget", line 11, in <module>
sys.exit(main())
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/__init__.py", line 42, in main
manager.start()
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/manager.py", line 326, in start
self.initialize()
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/manager.py", line 189, in initialize
plugin.load_plugins(extra_dirs=[os.path.join(self.config_base, 'plugins')])
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/plugin.py", line 458, in load_plugins
_load_plugins_from_dirs(extra_dirs)
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/plugin.py", line 396, in _load_plugins_from_dirs
__import__(module_name)
File "/home/osmc/flexget/plugins/log_filter.py", line 1
from __future__ import unicode_literals, division, absolute_import import logging from flexget import plugin from flexget.event import event log = logging.getLogger('logfilter')
^
SyntaxError: invalid syntaxBasically the whole plugin script is incorrect. Is it no longer compatible with Flexget?
Posts: 3
Participants: 2