[Intelmq-users] MAIL ATTACHMENT FETCHER FAILS TO READ/PARSE CSV FILE.

patric sungura patsung87 at yahoo.com
Wed Mar 18 15:38:41 CET 2020


 Dear Sebastian,I use ;No LSB modules are available.Distributor ID: UbuntuDescription:    Ubuntu 16.04.6 LTSRelease:        16.04Codename:       xenial

And whenever I do intelmqctl check ,below is the output;intelmqctl check
Reading configuration files.Checking defaults configuration.Checking runtime configuration.Checking runtime and pipeline configuration.Orphaned queues found: 'TCP-Output-queue', 'feodo-tracker-browse-parser-queue', 'Elasticsearch-Output-queue'. Possible leftover from past reconfigurations without cleanup. Have a look at the FAQ at https://github.com/certtools/intelmq/blob/master/docs/FAQ.mdChecking harmonization configuration.Checking for bots.Traceback (most recent call last):  File "/usr/local/bin/intelmqctl", line 11, in <module>    sys.exit(main())  File "/usr/local/lib/python3.5/dist-packages/intelmq/bin/intelmqctl.py", line 1755, in main    return x.run()  File "/usr/local/lib/python3.5/dist-packages/intelmq/bin/intelmqctl.py", line 958, in run    retval, results = args.func(**args_dict)  File "/usr/local/lib/python3.5/dist-packages/intelmq/bin/intelmqctl.py", line 1447, in check    bot_module = importlib.import_module(bot_config['module'])  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module    return _bootstrap._gcd_import(name[level:], package, level)  File "<frozen importlib._bootstrap>", line 986, in _gcd_import  File "<frozen importlib._bootstrap>", line 969, in _find_and_load  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked  File "<frozen importlib._bootstrap_external>", line 665, in exec_module  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed  File "/usr/local/lib/python3.5/dist-packages/intelmq/bots/collectors/misp/collector.py", line 19, in <module>    from pymisp import PyMISP  File "/usr/local/lib/python3.5/dist-packages/pymisp/__init__.py", line 26, in <module>    from .abstract import AbstractMISP, MISPEncode, pymisp_json_default, MISPTag, Distribution, ThreatLevel, Analysis  # noqa  File "/usr/local/lib/python3.5/dist-packages/pymisp/abstract.py", line 113    self.__edited: bool = True  # As we create a new object, we assume it is edited                 ^SyntaxError: invalid syntax

Can anyone assist to sort this out? as I highly need to integrate Intelmq with shadow server 
Any lead to accomplish this integration will be highly appreciated.
kr,Patrick    On Wednesday, March 18, 2020, 04:44:15 PM GMT+3, Sebastian Wagner <wagner at cert.at> wrote:  
 
  Hi, On 3/18/20 6:15 AM, patric sungura wrote:
  
 
2020-03-17 16:10:42,064 - ShadowServer-Parser-2 - ERROR - Bot has found a problem.   Traceback (most recent call last):   File "/usr/local/lib/python3.5/dist-packages/intelmq/lib/bot.py", line 267, in start     self.process()   File "/usr/local/lib/python3.5/dist-packages/intelmq/lib/bot.py", line 941, in process     for line in self.parse(report):   File "/usr/local/lib/python3.5/dist-packages/intelmq/lib/bot.py", line 884, in parse_csv_dict     self.csv_fieldnames = csv_reader.fieldnames   File "/usr/lib/python3.5/csv.py", line 96, in fieldnames     self._fieldnames = next(self.reader, dialect=csv.excel_tab) NameError: name 'csv' is not defined    
Which operating system are you using? The error happens inside python, so maybe the csv module is packaged extra in your distro (which would mean we should update the docs)
 
best regards,
 Sebastian
 
 -- 
// Sebastian Wagner <wagner at cert.at> - T: +43 1 5056416 7201
// CERT Austria - https://www.cert.at/
// Eine Initiative der nic.at GmbH - https://www.nic.at/
// Firmenbuchnummer 172568b, LG Salzburg -- 
Listen-Einstellungen:
 https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-users
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cert.at/pipermail/intelmq-users/attachments/20200318/a33447fd/attachment.html>


More information about the Intelmq-users mailing list