csv2es icon indicating copy to clipboard operation
csv2es copied to clipboard

TypeError: "delimiter" must be an 1-character string

Open Vutsuak16 opened this issue 7 years ago • 2 comments

what could be the reason for such error in a perfectly delimited file

Vutsuak16 avatar Feb 28 '17 05:02 Vutsuak16

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

bubba198 avatar Apr 22 '17 03:04 bubba198

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.

jaune-rouge avatar Jun 14 '17 15:06 jaune-rouge