csv2es
csv2es copied to clipboard
TypeError: "delimiter" must be an 1-character string
what could be the reason for such error in a perfectly delimited file
getting same error:
reader = csv.DictReader(doc_file, delimiter=delimiter, fieldnames=fieldnames)
File "/usr/lib/python2.7/csv.py", line 79, in __init__
self.reader = reader(f, dialect, *args, **kwds)
TypeError: "delimiter" must be an 1-character string
I got that too. Not sure of the cause but if you manually specify --delimiter ,
in the command (at least for a csv file) it'll work.