crashes with "ValueError: Unknown date format" on .reporter property
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-launchpad-bugs |
Invalid
|
Undecided
|
Martin Pitt |
Bug Description
This is a script running on drescher to help us processing sync bugs in bulk.
Drescher has Python 2.4.3 (dapper), locale "C", and I am using p-lp-bugs main bzr head (r61) plus the recent patch in bug 188018. My cookie uses edge.launchpad.net.
When the script tries to access Bug(187804)
File "/home/
main()
File "/home/
process_
File "/home/
print 'processing bug %i, package %s, reporter %s...' % (bug, task.sourcepackage, b.reporter)
File "/home/
if fget : fget = lambda s, n=fget.__name__ : getattr(s, n)()
File "/home/
x.parse()
File "/home/
self.date = LPTime(
File "/home/
raise ValueError, "Unknown date format (%s)" %time_str
ValueError: Unknown date format (2008-01-31 20:15:11 CET)
This also happens with other bugs (e. g. 186856)
This command works as expected on current hardy with the hardy python- launchpad- bugs package, as well as with bzr main head (PYTHONPATH= /tmp/main/ ):
$ python -c "import launchpadbugs. connector as Connector; Bug = Connector. ConnectBug( ); Bug.authentication = '/home/ pitti/. lpcookie' ; print Bug(186856) .reporter"
It even works in my dapper chroot with LC_ALL=C. Thus, at the moment I'm a bit unsure what is different on drescher (our server where that sync script runs).