![]() |
#286 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
python2.5
|
![]() |
![]() |
![]() |
#287 |
Zealot
![]() 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 |
![]() |
![]() |
![]() |
#288 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That date comes from one of the entries in main.xml on your device. THe really strange thing about that error (the reason I can't figure it out) is that it says that the fmt doesn't match the fmt string, but it does. You can check that here http://docs.python.org/lib/module-time.html
The only thing I can think of is some sort of string encoding issue. |
![]() |
![]() |
![]() |
#289 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah I get it maybe your locale's abbreviated weekday name is not Fri.
|
![]() |
![]() |
![]() |
#290 |
Zealot
![]() Posts: 122
Karma: 66
Join Date: Jul 2007
Location: Melbourne
Device: PRS-500; Boox C67ML; Boox Max
|
In fact it's Ven, and Aug is Ago. What can we do? Or I do, at least? And why on Windows I don't have this problem? Even Windows is localized!
|
![]() |
![]() |
![]() |
#291 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm I need to figure out how to get the time module to use the english locale in python
|
![]() |
![]() |
![]() |
#292 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
try some of the functions from the locale module
|
![]() |
![]() |
![]() |
#293 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
incidentally what is your locale?
|
![]() |
![]() |
![]() |
#294 |
Zealot
![]() Posts: 122
Karma: 66
Join Date: Jul 2007
Location: Melbourne
Device: PRS-500; Boox C67ML; Boox Max
|
italian
|
![]() |
![]() |
![]() |
#295 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I've committed a fix to svn, test it and let me know.
|
![]() |
![]() |
![]() |
#296 |
Zealot
![]() Posts: 122
Karma: 66
Join Date: Jul 2007
Location: Melbourne
Device: PRS-500; Boox C67ML; Boox Max
|
It works! You're fantastic! Let's go with 0.4.9 :P
|
![]() |
![]() |
![]() |
#297 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,953
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#298 | |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Jul 2007
Device: Sony Reader PRS-500, Kindle DXG
|
I have two problems with the version 0.4.10
1) Unhandled exception I have a book in the reader with the title "Señales de Lluvia". (the third letter is a spanish letter) double click on the book to change the title. Without change anything I click on another book. An exception is raised with text Quote:
Click on the View button. An error message with the text "No book selected" is showed |
|
![]() |
![]() |
![]() |
#299 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
both 1) and 2) will be fixed in next release.
Last edited by kovidgoyal; 10-14-2007 at 12:55 PM. |
![]() |
![]() |
![]() |
#300 |
Minister of Linux
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 196
Karma: 73235
Join Date: Jul 2007
Location: Winter Haven, Florida, USA
Device: nook, T-Mobile MyTouch 3G Slide
|
By the way, kovid, we're a few days away from the next release of Ubuntu. I've been running the Gutsy testing version for a while now and libprs500 is perfect so far. Latest updates give me a warning about pyqt being 4.3 where 4.3.1 is required. I still find no problems with the working of the software.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Soribook: First eReader eInk device now in beta testing! | Nate the great | News | 13 | 04-27-2013 08:28 AM |
Beta Beta Test of Major New Features | Starson17 | Calibre | 45 | 05-17-2010 10:55 AM |
testing | jomaweb | Lounge | 44 | 02-02-2010 02:15 PM |