Skip to content Skip to sidebar Skip to footer

Python Typeerror: Coercing To Unicode: Need String Or Buffer, File Found

I am into learning Python, with a C- language background. Sorry, if my problem is 'naive' or 'too simple' or 'didn't worked enough'. In the below code, I want to practice for futur

Solution 1:

I didn't read through all that code - but it mostly doesn't seem relevant. The error is to do with opening a file: open takes a filename, but you are passing it outfile, which is already a file. You should close that file first then pass outfileName to open.

Solution 2:

Got it, sadly myself. Apart from the change of not storing indl. cols, change the removal_list to an array, and then appending to the array using > removal_list.append( row )

Hits!

Post a Comment for "Python Typeerror: Coercing To Unicode: Need String Or Buffer, File Found"