Python: TypeError: 'file' object has no attribute '__getitem__'
问题 I have a .gpx file which is cut off int the middle of the file. When I try to parse it using the gpxpy library I run into the following error. Parsing points in track.gpx ERROR:root:expected '>', line 3125, column 29 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gpxpy-0.8.7-py2.7.egg/gpxpy/parser.py", line 209, in parse self.xml_parser = LXMLParser(self.xml) File "/usr/local/lib/python2.7/dist-packages/gpxpy-0.8.7-py2.7.egg/gpxpy/parser.py", line 107, in _