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
Loading table to mysql with csvsql fails #646
Comments
My guess is that it's not inferring a comma as the field separator. What if you run the command with |
I tried it... seemed to make no difference. I can upload the files in question and the commands I'm using it helps. |
Can you try with the latest csvkit?
|
The installation fails with the following error - |
What version of Python are you running? |
2.7.3. After upgrading to 2.7.12 the installation was successful but running the same command resulted in the same error. |
Can you upload the file (or a sample) and the commands? |
Sure. And this is a sample of the file causing the error (It's only the first few rows, but the same error is raised using it too) -
The file contains hebrew characters, but other files containing chars like this did not cause the error, so I don't think this the cause of the error. |
Hmm, I don't get an error in either Python 2 or 3. |
That's mighty strange. I'm getting the error on a vagrant machine, maybe I'll send you the vagrantfile? That's almost certain to reproduce the error. |
That might work - I haven't used Vagrant much. |
Closing as can't reproduce, though if a Vagrantfile (or other steps to reproduce) are provided, I can re-open. |
I'm trying to load a table to mysql using the following command -
csvsql -e "utf8" --db mysql://root:root@localhost/transport?charset=utf8 --insert /tmp/routes.txt
The command fails with the following error -
This seems strange to me as I'm loading a few other tables using the same method and all of them upload successfully, even though the column identifier of those tables is longer.
This is the header line of the failed file I'm trying to upload -
route_id,agency_id,route_short_name,route_long_name,route_desc,route_type,route_color
And this is an example of a longer line that uploads just fine -
agency_id,agency_name,agency_url,agency_timezone,agency_lang,agency_phone,agency_fare_url
The text was updated successfully, but these errors were encountered: