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

File names with a space causes importer to fail #11

Open
fnoyanisi opened this issue Nov 14, 2023 · 0 comments
Open

File names with a space causes importer to fail #11

fnoyanisi opened this issue Nov 14, 2023 · 0 comments

Comments

@fnoyanisi
Copy link
Owner

fnoyanisi commented Nov 14, 2023

If the input file name has space characters in it, the parser fails.

Ex. input file name "LNREL-correct values.csv"

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Program Files\Python\Python39\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\xxx\Tools\xc-convert-master\src\gui\xcguiapplication.py", line 304, in run_conversion
    table_name = csv_importer.read()
  File "C:\Users\xxx\Tools\xc-convert-master\src\importer\csvimporter.py", line 37, in read
    self.dbm.create_table(self.table_name, reader.fieldnames)
  File "C:\Users\xxx\Tools\xc-convert-master\src\dbmanager.py", line 34, in create_table
    self.cursor.execute(sql)
sqlite3.OperationalError: near "values_csv": syntax error
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

1 participant