Bug 569146

Summary: [abrt] crash in pytrainer-1.6.0.8-1.fc12: _strptime.py:325:_strptime:ValueError: time data u'2009-04-03T14:07:59+01:00' does not match format '%Y-%m-%dT%H:%M:%SZ'
Product: [Fedora] Fedora Reporter: Marcus Nitzschke <kenda>
Component: pytrainerAssignee: Douglas E. Warner <silfreed>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: silfreed
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:becd861b
Fixed In Version: pytrainer-1.7.2-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-17 23:16:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace none

Description Marcus Nitzschke 2010-02-28 11:48:54 UTC
abrt 1.0.7 detected a crash.

architecture: x86_64
cmdline: python /usr/lib/python2.6/site-packages/pytrainer.py
comment: The problem is that the timestamp in my gpx file doesn't end with "Z" but with my timezone informationen. Thats why pytrainer crashes.
component: pytrainer
executable: /usr/lib/python2.6/site-packages/pytrainer.py
kernel: 2.6.31.12-174.2.22.fc12.x86_64
package: pytrainer-1.6.0.8-1.fc12
reason: _strptime.py:325:_strptime:ValueError: time data u'2009-04-03T14:07:59+01:00' does not match format '%Y-%m-%dT%H:%M:%SZ'
release: Fedora release 12 (Constantine)

backtrace
-----
_strptime.py:325:_strptime:ValueError: time data u'2009-04-03T14:07:59+01:00' does not match format '%Y-%m-%dT%H:%M:%SZ'

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pytrainer/gui/windowrecord.py", line 251, in on_calculatevalues_clicked
    self.parent.actualize_fromgpx(gpxfile)
  File "/usr/lib/python2.6/site-packages/pytrainer/record.py", line 336, in actualize_fromgpx
    gpx = Gpx(self.data_path,gpxfile)
  File "/usr/lib/python2.6/site-packages/pytrainer/lib/gpx.py", line 66, in __init__
    self.Values = self._getValues()
  File "/usr/lib/python2.6/site-packages/pytrainer/lib/gpx.py", line 122, in _getValues
    mk_time = time.strptime(date_, "%Y-%m-%dT%H:%M:%SZ")
  File "/usr/lib64/python2.6/_strptime.py", line 454, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/lib64/python2.6/_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data u'2009-04-03T14:07:59+01:00' does not match format '%Y-%m-%dT%H:%M:%SZ'

Local variables in innermost frame:
found: None
format: '%Y-%m-%dT%H:%M:%SZ'
data_string: u'2009-04-03T14:07:59+01:00'
format_regex: <_sre.SRE_Pattern object at 0x36bd5e0>
locale_time: <_strptime.LocaleTime object at 0x2fc44d0>

How to reproduce
-----
1.Start PyTrainer
2.File -> New
3.Open a gpx file

Comment 1 Marcus Nitzschke 2010-02-28 11:48:57 UTC
Created attachment 396859 [details]
File: backtrace

Comment 2 Bug Zapper 2010-11-03 21:09:01 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Fedora Update System 2010-11-08 18:53:38 UTC
pytrainer-1.7.2-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/pytrainer-1.7.2-1.fc13

Comment 4 Fedora Update System 2010-11-08 18:54:05 UTC
pytrainer-1.7.2-1.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/pytrainer-1.7.2-1.fc12

Comment 5 Fedora Update System 2010-11-08 18:54:31 UTC
pytrainer-1.7.2-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/pytrainer-1.7.2-1.fc14

Comment 6 Fedora Update System 2010-11-10 01:07:59 UTC
pytrainer-1.7.2-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update pytrainer'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/pytrainer-1.7.2-1.fc13

Comment 7 Fedora Update System 2010-11-17 23:16:33 UTC
pytrainer-1.7.2-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2010-11-17 23:23:49 UTC
pytrainer-1.7.2-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2010-11-17 23:25:33 UTC
pytrainer-1.7.2-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.