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
Csv files should be opened with universal new line mode #127
Comments
Thanks for report. We do open csv as 'rU' but only for PY3. Here is a link to code: To be honest I am not sure why is binary used for python 2.X here. This should be inspected carefully so we do not fix one issue and open another. |
Is there a work around for 2.x? Any recommendations? |
Hi bmihelac, has any progress been made with this issue? Many thanks, |
Any word on this? I'm using Python 2.7.5 & cannot work with Excel files due to this error. I essentially have to have clients email me their CSV, save as CSV in Open Office & then do their import for them. |
Yes there should be an option to support universal (and frankly, I'd have thought that should've been the default option) |
@litchfield thanks for contribution. I am thinking of treating CSV as text and not binary python2. I am not sure why it is opened as binary and cannot find any documentation regarding this. Also I do not think there is needed additional setting as this should be a bugfix. Do you agree? This would be achieved by removing following lines: I just need to make csv with office on windows to make sure it does not break anything. |
Cool, yes a fix would be even better @bmihelac |
Open csv with as text and not binary (FIX #127)
When will this get released to PyPI? |
When attempting to open a file saved on a windows computer import-export throw an error:
Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode?
It looks like U needs to be added to the open call - see http://stackoverflow.com/questions/17315635/csv-new-line-character-seen-in-unquoted-field-error
The text was updated successfully, but these errors were encountered: