Re: Understanding " 'xml.etree.ElementTree.Element' does not support the buffer interface"

2016-01-11 Thread Steven D'Aprano
On Tue, 12 Jan 2016 08:54 am, Saran Ahluwalia wrote: > Hi Steven: > > Just as an update - apparently there were bytes in the Windows Command > Terminal that were interrupting the process execution. I didn't realize > this was happening until I dug around Windows' Q&A forum. Thanks for letting us

Re: Understanding " 'xml.etree.ElementTree.Element' does not support the buffer interface"

2016-01-11 Thread Saran Ahluwalia
Hi Steven: Just as an update - apparently there were bytes in the Windows Command Terminal that were interrupting the process execution. I didn't realize this was happening until I dug around Windows' Q&A forum. Cheers On Sun, Jan 10, 2016 at 12:53 PM, Saran Ahluwalia < ahlusar.ahluwa...@gmail.c

Re: Understanding " 'xml.etree.ElementTree.Element' does not support the buffer interface"

2016-01-10 Thread Saran Ahluwalia
Hi Steven: The previous code was a stand along under the " if __name__ == '__main__': ". The full function suite that I have made (and indeed includes a try and except block): import os.path import sys import csv from io import StringIO import xml.etree.cElementTree as ElementTree from xml.etree.

Re: Understanding " 'xml.etree.ElementTree.Element' does not support the buffer interface"

2016-01-10 Thread Steven D'Aprano
On Mon, 11 Jan 2016 02:04 am, kbtyo wrote: > Hello Everyone: > > I am curious to know why I receive the aforementioned message. I am using > Python 3.4.3 and Windows 7. I am running the following script from Windows > Powershell: I created a file "data" containing the input data you said: > The

Re: Understanding " 'xml.etree.ElementTree.Element' does not support the buffer interface"

2016-01-10 Thread Saran Ahluwalia
Hi Steven: That is the only message (*xml.etree.ElementTree.Element' does not support the buffer interface"*). There is no traceback. My apologies for not clarifying previously. On Sun, Jan 10, 2016 at 10:19 AM, Steven D'Aprano wrote: > On Mon, 11 Jan 2016 02:04 am, kbtyo wrote: > > > Hello Eve

Re: Understanding " 'xml.etree.ElementTree.Element' does not support the buffer interface"

2016-01-10 Thread Steven D'Aprano
On Mon, 11 Jan 2016 02:04 am, kbtyo wrote: > Hello Everyone: > > I am curious to know why I receive the aforementioned message. It is impossible to be sure from the information you have given us, since we do not know which line of code caused the error. Please copy and paste the ENTIRE traceb

Understanding " 'xml.etree.ElementTree.Element' does not support the buffer interface"

2016-01-10 Thread kbtyo
Hello Everyone: I am curious to know why I receive the aforementioned message. I am using Python 3.4.3 and Windows 7. I am running the following script from Windows Powershell: Response = 's.csv' with open(Response, 'rU', encoding='utf-8') as data: separated = data.