Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Vutsuak16 opened this issue Feb 28, 2017 · 2 comments
Open

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

Vutsuak16 opened this issue Feb 28, 2017 · 2 comments

Comments

@Vutsuak16
Copy link

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

@bubba198
Copy link

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

@jaune-rouge
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants