-
Notifications
You must be signed in to change notification settings - Fork 82
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
newline = "" only works on Windows #8
Comments
All these issues list using an older version of Python as a cause. Are you
*definitely* using an up-to-date Python?
…On 17 October 2017 at 21:18, Torben Gundtofte-Bruun < ***@***.***> wrote:
Assigned #8 <#8> to @nocalla
<https://github.com/nocalla>.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#8 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/APeoHzC7VMnhuD5Aru5JOqfXuIztJ8uWks5stQuggaJpZM4P8wl7>
.
|
I am puzzled too, but my Linux installation insist that I do have version '3.5.1-3'. |
And are you definitely *running *using the Python 3 instance? Python 2 is
sometimes installed on systems and runs by default when you call Python.
What do you get on calling "python -V"?
…On 17 October 2017 at 21:35, Torben Gundtofte-Bruun < ***@***.***> wrote:
I am puzzled too, but my Linux installation insist that I do have version
'3.5.1-3'.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APeoH9C7FF4vn6AYvrILbkgC5vKnsolOks5stQ-TgaJpZM4P8wl7>
.
|
Closing this, as it appears my installation at fault, using Python 2.x when I should have used v3. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 111:
I've looked things up and it seems that the 'open()' call should be replaced with an 'io.open()' call instead. I believe the reason is that 'open()', on Linux, does not have the 'newline' parameter (not even in my up-to-date version '3.5.1-3'). (source, source)
Using 'io.open()' requires an import of 'io' in line 20, which in turn requires 'io' to have to be installed first using 'sudo python -m pip install unicodecsv').
But using 'io.open()' gives me all kinds of follow-up troubles, so that can't be it either. I also found sources that suggested importing 'unicodecsv' instead of 'csv' because that handles things nicer, but that too became too hairy for a Python novice as I am.
Another suggestion (and another) was to code myself out of the parameter problem while staying with the normal 'open()' but I couldn't make it work:
The text was updated successfully, but these errors were encountered: