Bug #2526
closedlist-enabled-sources >> AttributeError: 'module' object has no attribute 'filename'
Description
Dear,
I'm new to linux/suricata. Suricata is running ok, but the Suricata-Update tool gives a python error when using the list-enabled-sources option. Here's the outcome using the -v option as well.
suricata-update v list-enabled-sources 19:16:40 - <Info> -- Loading /etc/suricata/update.yaml
6/7/2018 -
6/7/2018 -- 19:16:40 - <Debug> -- Setting configuration value verbose > True 19:16:40 - <Debug> -- Setting configuration value subcommand
6/7/2018 -> list-enabled-sources 19:16:40 - <Debug> -- Setting configuration value func
6/7/2018 -> <function list_enabled_sources at 0x7fe7758dbcf8> 19:16:40 - <Debug> -- This is suricata-update version 1.0.0b1 (rev: dc1a320); Python: 2.7.13 (default, Nov 24 2017, 17:33:09) - [GCC 6.3.0 2017051
6/7/2018 -
6/7/2018 -- 19:16:40 - <Debug> -- Looking for suricata in /usr/local/sbin
6/7/2018 -- 19:16:40 - <Debug> -- Looking for suricata in /usr/local/bin
6/7/2018 -- 19:16:40 - <Debug> -- Looking for suricata in /usr/sbin
6/7/2018 -- 19:16:40 - <Debug> -- Looking for suricata in /usr/bin
6/7/2018 -- 19:16:40 - <Debug> -- Found /usr/bin/suricata.
6/7/2018 -- 19:16:40 - <Info> -- Found Suricata version 4.0.4 at /usr/bin/suricata.
Traceback (most recent call last):
File "/usr/local/bin/suricata-update", line 26, in <module>
sys.exit(main.main())
File "/usr/local/lib/python2.7/dist-packages/suricata/update/main.py", line 1372, in main
sys.exit(_main())
File "/usr/local/lib/python2.7/dist-packages/suricata/update/main.py", line 1149, in _main
return args.func()
File "/usr/local/lib/python2.7/dist-packages/suricata/update/commands/listenabledsources.py", line 37, in list_enabled_sources
print("From %s:" % (config.filename))
AttributeError: 'module' object has no attribute 'filename'
Thank you in advance.
Kind regards