Closed rahulvgmail closed 8 years ago
<?xml version="1.0"?>
Full Stack Trace
gpx_file = open('/vagrant/data/2014-11-06_044915_AutoLog_Gangtok (copy).gpx', 'r')
gpx= gpxpy.parse(gpx_file) ERROR:root:argument of type 'builtin_function_or_method' is not iterable Traceback (most recent call last): File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 204, in parse self.parse_dom() File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 254, in __parse_dom self.gpx.tracks.append(self.parse_track(node)) File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 413, in parse_track track_segment = self.parse_track_segment(child_node) File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 423, in parse_track_segment if self.xml_parser.get_node_name(child_node) == 'trkpt': File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 130, in get_node_name if '}' in node.tag: TypeError: argument of type 'builtin_function_or_method' is not iterable Traceback (most recent call last): File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 204, in parse self.__parse_dom() File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 254, in parse_dom self.gpx.tracks.append(self.parse_track(node)) File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 413, in parse_track track_segment = self.parse_track_segment(child_node) File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 423, in parse_track_segment if self.xml_parser.get_node_name(child_node) == 'trkpt': File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 130, in get_node_name if '}' in node.tag: TypeError: argument of type 'builtin_function_or_method' is not iterable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "
TypeError: argument of type 'builtin_function_or_method' is not iterable
could this be some missing library? (the file loads fine on the site you have hosted)
i will paste gpx file in comment.
File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 423, in __parse_track_segment if self.xml_parser.get_node_name(child_node) == 'trkpt': File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 130, in get_node_name if '}' in node.tag: TypeError: argument of type 'builtin_function_or_method' is not iterable
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "", line 1, in
File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/init.py", line 32, in parse
return parser.parse()
File "/home/vagrant/.virtualenvs/trip2/lib/python3.4/site-packages/gpxpy/parser.py", line 219, in parse
raise mod_gpx.GPXXMLSyntaxException('Error parsing XML: %s' % str(e), e)
gpxpy.gpx.GPXXMLSyntaxException: Error parsing XML: argument of type 'builtin_function_or_method' is not iterable