Skip to content Skip to sidebar Skip to footer

Xml2csv Package Error '_iterparseiterator' Object Has No Attribute 'next'

I am using xmlutils package to convert xml file to csv. My code is following : from xmlutils.xml2csv import xml2csv as x input_path='/media/ishan/Local Disk/doc.xml' output_path='m

Solution 1:

You're probably using Python 3x, as it's stated here. Just change line 57 in xml2csv.py from this: event, root = self.context.next() to this: event, root = self.context.__next__()


Post a Comment for "Xml2csv Package Error '_iterparseiterator' Object Has No Attribute 'next'"