Skip to content

--types option does not work for meΒ #19

@AlainFELER

Description

@AlainFELER

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions