[Intelmq-users] MAIL ATTACHMENT FETCHER FAILS TO READ/PARSE CSV FILE.
Bernhard Reiter
bernhard at intevation.de
Thu Mar 19 09:56:19 CET 2020
Am Mittwoch, 18. März 2020, 17:02:13 CET schrieben Sie:
> libpython3.5-stdlib:amd64 3.5.2-2ubuntu0~16.04.9 amd64
This is the standard version, but still the backtrace looks strange,
especially the last bit:
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
The second part is strange as the original sources [1] don't have the second
parameter. So we should double check.
Can you open the file `/usr/lib/python3.5/csv.py` and check line 96?
Please send the whole function around the lines here.
(Can you also post your mail in text-only format? This is something I can and
many others can read much faster, and thus can answer you faster. :) Thanks! )
Can you also post the length, permissions and sha256 sum of the file?
Here for comparison the data for my file:
ls -l /usr/lib/python3.5/csv.py
-rw-r--r-- 1 root root 16128 Oct 8 16:38 /usr/lib/python3.5/csv.py
sha256sum /usr/lib/python3.5/csv.py
6d96e56ec22d1603ffed0f8d20f5b5090fb6ae4c7417126d09afc45447b34a64 /usr/lib/
python3.5/csv.py
Best Regards,
Bernhard
[1] https://github.com/python/cpython/blob/master/Lib/csv.py
--
www.intevation.de/~bernhard +49 541 33 508 3-3
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.cert.at/pipermail/intelmq-users/attachments/20200319/f4c31175/attachment.sig>
More information about the Intelmq-users
mailing list