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

patric sungura patsung87 at yahoo.com
Wed Mar 18 06:15:32 CET 2020


Dear Team,Please assist me on  mail attachment fetcher.Intelmq fails to read/parse csv file as per below erros from log and dump.
ShadowServer-Parser-2.log

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 defined2020-03-17 16:10:42,065 - ShadowServer-Parser-2 - INFO - Dumping message to dump file.
 ShadowServer-Parser-2.dump

        "source_queue": "ShadowServer-Parser-2-queue",        "traceback": [            "Traceback (most recent call last):\n",            "  File \"/usr/local/lib/python3.5/dist-packages/intelmq/lib/bot.py\", line 267, in start\n    self.process()\n",            "  File \"/usr/local/lib/python3.5/dist-packages/intelmq/lib/bot.py\", line 941, in process\n    for line in self.parse(report):\n",            "  File \"/usr/local/lib/python3.5/dist-packages/intelmq/lib/bot.py\", line 884, in parse_csv_dict\n    self.csv_fieldnames = csv_reader.fieldnames\n",            "  File \"/usr/lib/python3.5/csv.py\", line 96, in fieldnames\n    self._fieldnames = next(self.reader, dialect=csv.excel_tab)\n",            "NameError: name 'csv' is not defined\n"        ]    }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cert.at/pipermail/intelmq-users/attachments/20200318/d6e2727d/attachment.html>


More information about the Intelmq-users mailing list