csv2sqlite icon indicating copy to clipboard operation
csv2sqlite copied to clipboard

--types option does not work for me

Open AlainFELER opened this issue 8 years ago • 0 comments

Hello, (Python 2.7.5) I'm trying to use the --types option : --types zzz.csv with zzz.csv containing string,real,string,string,string,string,string,string but all I get is an error which I am unable to fix :

python csv2sqlite.py --types zzz.csv zAF_UTF8.csv base.sqlite DEM Traceback (most recent call last): File "csv2sqlite.py", line 207, in convert(args.csv_file, args.sqlite_db_file, args.table_name, args.headers, compression, args.types) File "csv2sqlite.py", line 69, in convert to.close() AttributeError: 'list' object has no attribute 'close'

I get the same error with zzz.csv = "string","real","string","string","string","string","string","string" string;real;string;string;string;string;string;string "string";"real";"string";"string";"string";"string";"string";"string"

AlainFELER avatar Aug 22 '16 14:08 AlainFELER