FEC-Scraper-Toolbox icon indicating copy to clipboard operation
FEC-Scraper-Toolbox copied to clipboard

Getting run time exception : TypeError: 'SRCDELIMITER' is an invalid keyword argument for this function

Open ahmedmohiduet opened this issue 10 years ago • 2 comments

A part of my logs giving: processing... 168192.fec Traceback (most recent call last): File "parse_reports.py", line 4471, in filehdr = parse_data_row(filehdr, SRCDELIMITER) File "parse_reports.py", line 485, in parse_data_row for x in csv.reader([data], SRCDELIMITER=',', quotechar='"'): TypeError: 'SRCDELIMITER' is an invalid keyword argument for this function

Am I missing something here!

ahmedmohiduet avatar Dec 17 '15 08:12 ahmedmohiduet

Wait, I think I may know what is happening. I was running this before with no errors, and just now I saw this error for the first time. At first I thought nothing had changed, but I just realized that I changed my download date range to include 1 more year of history than previously. I went from grabbing everything from Jan 1 2009 to now, to grabbing everything from Jan 1 2008 to now. I suspect the 2008 data is different, and this is causing the problem.

mindcrime avatar Mar 01 '16 22:03 mindcrime

I'm re-running my download/processing now, will update this if I can definitely identify what's going on.

mindcrime avatar Mar 01 '16 22:03 mindcrime