View Single Post
Old 10-12-2007, 07:04 PM   #287
iacchi
Zealot
iacchi is on a distinguished road
 
iacchi's Avatar
 
Posts: 122
Karma: 66
Join Date: Jul 2007
Location: Melbourne
Device: PRS-500; Boox C67ML; Boox Max
Don't know if you remember the error I get, here it is:

Code:
time data did not match format: data=Fri, 24 Aug 2007 22:49:15 GMT fmt=%a, %d %b %Y %H:%M:%S %Z
Detailed traceback:
Traceback (most recent call last):
  File "/home/iacopo/libprs500/src/libprs500/gui2/library.py", line 521, in sort
    self.map.sort(cmp=fcmp, reverse=descending)
  File "/home/iacopo/libprs500/src/libprs500/gui2/library.py", line 510, in datecmp
    x = self.db[x].datetime
  File "/home/iacopo/libprs500/src/libprs500/devices/prs500/books.py", line 46, in __get__
    self.formatter else obj.elem.getAttribute(self.attr).strip()
  File "/home/iacopo/libprs500/src/libprs500/devices/prs500/books.py", line 67, in 
    formatter=lambda x:  time.strptime(x.strip(), "%a, %d %b %Y %H:%M:%S %Z"),
  File "_strptime.py", line 330, in strptime
    (data_string, format))
ValueError: time data did not match format:  data=Fri, 24 Aug 2007 22:49:15 GMT  fmt=%a, %d %b %Y %H:%M:%S %Z
May I know the source of that "Fri, 24 Aug 2007 22:49:15 GMT"? Where it takes the time from? And do you have an idea of why that date? (the date is my first install of libprs500 on my linuxbox)
iacchi is offline   Reply With Quote