Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2007, 06:49 PM   #286
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
python2.5
kovidgoyal is offline   Reply With Quote
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
Old 10-12-2007, 07:12 PM   #288
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 10-12-2007, 07:13 PM   #289
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 10-12-2007, 07:14 PM   #290
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
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!
iacchi is offline   Reply With Quote
Old 10-12-2007, 07:15 PM   #291
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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
kovidgoyal is offline   Reply With Quote
Old 10-12-2007, 07:16 PM   #292
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
try some of the functions from the locale module
kovidgoyal is offline   Reply With Quote
Old 10-12-2007, 07:18 PM   #293
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
incidentally what is your locale?
kovidgoyal is offline   Reply With Quote
Old 10-12-2007, 07:18 PM   #294
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
italian
iacchi is offline   Reply With Quote
Old 10-12-2007, 08:08 PM   #295
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 10-13-2007, 04:51 AM   #296
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
It works! You're fantastic! Let's go with 0.4.9 :P
iacchi is offline   Reply With Quote
Old 10-13-2007, 09:19 PM   #297
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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
Quote:
Originally Posted by iacchi View Post
It works! You're fantastic! Let's go with 0.4.9 :P
Let's not and say we go with 0.4.10 instead.
JSWolf is online now   Reply With Quote
Old 10-14-2007, 11:00 AM   #298
gczobel
Enthusiast
gczobel began at the beginning.
 
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:
'ascii' codec can't encode character u'\xf1' in position 2: ordinal not in range(128)
Detailed traceback:
Traceback (most recent call last):
File "libprs500\gui2\library.pyo", line 636, in setData
File "libprs500\devices\prs500\books.pyo", line 78, in fset
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 2: ordinal not in range(128)
2) Click on a book for ex: "1984" ( i see the number in bold in the left margin)
Click on the View button.
An error message with the text "No book selected" is showed
gczobel is offline   Reply With Quote
Old 10-14-2007, 12:14 PM   #299
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 10-15-2007, 02:04 AM   #300
beartard
Minister of Linux
beartard is slicker than a case of WD-40beartard is slicker than a case of WD-40beartard is slicker than a case of WD-40beartard is slicker than a case of WD-40beartard is slicker than a case of WD-40beartard is slicker than a case of WD-40beartard is slicker than a case of WD-40beartard is slicker than a case of WD-40beartard is slicker than a case of WD-40beartard is slicker than a case of WD-40beartard is slicker than a case of WD-40
 
beartard's Avatar
 
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.
beartard is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:47 PM.


MobileRead.com is a privately owned, operated and funded community.