csvdedupe icon indicating copy to clipboard operation
csvdedupe copied to clipboard

csvlink example drawing errors

Open mgrogger opened this issue 7 years ago • 3 comments

Hello, I followed your csvlink example and ran a command in the following format:

csvlink dir/file_1.csv dir/file_2.csv \ --field_names_1 different name \ --field_names_2 other fields \ --output dedupe_output.csv

However, upon running the program I was immediately thrown the error "csvlink: error: You must provide two input files." with a usage description that suggested I should put the input files at the end rather than the begininning (different from the example on your github page). So I then tried:

csvlink --field_names_1 different name \ --field_names_2 other fields \ --output dedupe_output.csv \ dir/file_1.csv dir/file_2.csv

But got the error "csvlink: error: too few arguments"

Since I followed the exact syntax on your github page, I'd like to know what might be causing these errors. Thank you.

mgrogger avatar Jul 10 '17 20:07 mgrogger

I am having the same issue, it seems like csvlink does correctly parse the positional arguments for the dir/file of csv1 and csv2 I can't seem to get it to work. Error is always ""csvlink: error: You must provide two input files."

mgoddyn avatar Apr 24 '18 00:04 mgoddyn

I am having the same issue

jsacco1 avatar May 07 '19 18:05 jsacco1

Same issue for me using a config file as the following:

csvlink csv_1.csv csv_2.csv \ --config_file=config.json

Just remove the \ to:

csvlink csv_1.csv csv_2.csv --config_file=config.json

This fixed the issue for me

sskadamb avatar Nov 25 '19 17:11 sskadamb