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

How to open a csv file in universal new line mode? #60291

Closed
kason561 mannequin opened this issue Sep 29, 2012 · 2 comments
Closed

How to open a csv file in universal new line mode? #60291

kason561 mannequin opened this issue Sep 29, 2012 · 2 comments
Labels

Comments

@kason561
Copy link
Mannequin

kason561 mannequin commented Sep 29, 2012

BPO 16087
Nosy @ronaldoussoren, @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2012-09-29.17:41:54.756>
created_at = <Date 2012-09-29.17:31:58.973>
labels = ['OS-mac', 'invalid']
title = 'How to open a csv file in universal new line mode?'
updated_at = <Date 2012-09-29.17:41:54.693>
user = 'https://bugs.python.org/kason561'

bugs.python.org fields:

activity = <Date 2012-09-29.17:41:54.693>
actor = 'r.david.murray'
assignee = 'none'
closed = True
closed_date = <Date 2012-09-29.17:41:54.756>
closer = 'r.david.murray'
components = ['macOS']
creation = <Date 2012-09-29.17:31:58.973>
creator = 'kason561'
dependencies = []
files = []
hgrepos = []
issue_num = 16087
keywords = []
message_count = 2.0
messages = ['171580', '171582']
nosy_count = 3.0
nosy_names = ['ronaldoussoren', 'r.david.murray', 'kason561']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue16087'
versions = ['Python 3.4']

@kason561
Copy link
Mannequin Author

kason561 mannequin commented Sep 29, 2012

I am trying to follow the tutorial at http://www.slideshare.net/niloyghosh1984/qgis-tutorial-1
and I got to slide 24 of 47 whereupon I tried to use the mmqgis plugin to open the csv file, but I got this error:
Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode?
After searching for solutions to this error it indeed appears that I need to open this file in universal-newline mode...rU
How do I do that?

@kason561 kason561 mannequin assigned ronaldoussoren Sep 29, 2012
@kason561 kason561 mannequin added build The build process and cross-build OS-mac labels Sep 29, 2012
@bitdancer
Copy link
Member

The bug tracker isn't a good place to get help on using Python. You are more likely to find people to answer this sort of question on the python-list mailing list. If you are using python3, the answer is to use newline='', as discussed in the documentation.

@bitdancer bitdancer removed the build The build process and cross-build label Sep 29, 2012
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants