Hi,
I'm using pytrainer from at least a year and worked fine so far.
Today, i add a new gpx file (a combinaison of 2 files done in the same
day) and can't run pytrainer anymore.
Pytrainer is coming a couple of second and then disappear.
How can i delete this file from pytrainer?
my config is ubuntu14.04 with pytrainer up todate.
Please find below the result of the command : pytrainer -d
running pytrainer from egg installation
data_path: /usr/share/pytrainer/
gettext_path: /usr/share/locale
site_path: /usr/lib/python2.7/site-packages
ERROR:root:Failed when retrieving Max Heartrate value: invalid literal
for int() with base 10: ''
ERROR:root:Failed when retrieving Min Heartrate value: invalid literal
for int() with base 10: ''
Vector smash protection is enabled.
Traceback (most recent call last):
File "/usr/bin/pytr", line 102, in <module>
main()
File "/usr/bin/pytr", line 99, in main
pytrainer = pyTrainer(None, data_path)
File "/usr/lib/pymodules/python2.7/pytrainer/main.py", line 99, in
__init__
self.windowmain.on_calendar_selected(None)
File "/usr/lib/pymodules/python2.7/pytrainer/gui/windowmain.py", line
1924, in on_calendar_selected
self.parent.refreshListRecords()
File "/usr/lib/pymodules/python2.7/pytrainer/main.py", line 336, in
refreshListRecords
self.windowmain.actualize_recordTreeView(record_ids)
File "/usr/lib/pymodules/python2.7/pytrainer/gui/windowmain.py", line
2053, in actualize_recordTreeView
laps = self.parent.record.getLaps(id_record)
File "/usr/lib/pymodules/python2.7/pytrainer/record.py", line 337, in
getLaps
gpx = Gpx(self.data_path,gpxfile)
File "/usr/lib/pymodules/python2.7/pytrainer/lib/gpx.py", line 86, in
__init__
self.tree = etree.ElementTree(file=filename).getroot()
File "lxml.etree.pyx", line 2953, in lxml.etree.ElementTree
(src/lxml/lxml.etree.c:67245)
File "parser.pxi", line 1748, in lxml.etree._parseDocument
(src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL
(src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile
(src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in
lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in
lxml.etree._ParserContext._handleParseResultDoc
(src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult
(src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError
(src/lxml/lxml.etree.c:91757)
lxml.etree.XMLSyntaxError: expected '>', line 11, column 9
gmaidon@gmaidon-1001PX:~$ pytrainer -d
running pytrainer from egg installation
data_path: /usr/share/pytrainer/
gettext_path: /usr/share/locale
site_path: /usr/lib/python2.7/site-packages
ERROR:root:Failed when retrieving Max Heartrate value: invalid literal
for int() with base 10: ''
ERROR:root:Failed when retrieving Min Heartrate value: invalid literal
for int() with base 10: ''
Vector smash protection is enabled.
Traceback (most recent call last):
File "/usr/bin/pytr", line 102, in <module>
main()
File "/usr/bin/pytr", line 99, in main
pytrainer = pyTrainer(None, data_path)
File "/usr/lib/pymodules/python2.7/pytrainer/main.py", line 99, in
__init__
self.windowmain.on_calendar_selected(None)
File "/usr/lib/pymodules/python2.7/pytrainer/gui/windowmain.py", line
1924, in on_calendar_selected
self.parent.refreshListRecords()
File "/usr/lib/pymodules/python2.7/pytrainer/main.py", line 336, in
refreshListRecords
self.windowmain.actualize_recordTreeView(record_ids)
File "/usr/lib/pymodules/python2.7/pytrainer/gui/windowmain.py", line
2053, in actualize_recordTreeView
laps = self.parent.record.getLaps(id_record)
File "/usr/lib/pymodules/python2.7/pytrainer/record.py", line 337, in
getLaps
gpx = Gpx(self.data_path,gpxfile)
File "/usr/lib/pymodules/python2.7/pytrainer/lib/gpx.py", line 86, in
__init__
self.tree = etree.ElementTree(file=filename).getroot()
File "lxml.etree.pyx", line 2953, in lxml.etree.ElementTree
(src/lxml/lxml.etree.c:67245)
File "parser.pxi", line 1748, in lxml.etree._parseDocument
(src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL
(src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile
(src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in
lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in
lxml.etree._ParserContext._handleParseResultDoc
(src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult
(src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError
(src/lxml/lxml.etree.c:91757)
lxml.etree.XMLSyntaxError: expected '>', line 11, column 9
many thanks for any help,
--
Guillaume
------------------------------------------------------------------------------
_______________________________________________
Pytrainer-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel