I just tried the latest CVS to see if Stephen's patch fixed my Sanyo PM8200
calendar ringtone problem, but I couldn't get that far.
In the log just before the exception was this message that my phone
apparently doesn't accept repeat entries. The calendar event for
Bill&Shaunna is their annual wedding anniversary, and I get the exception
even if I import less than one year's data.
23:30:24.703 PM8200: Fundamentals retrieved
23:30:28.937 PM8200: Write calendar event slot 0 - SB gig
23:30:29.187 PM8200: Write calendar event slot 1 - Blood work
23:30:29.328 PM8200: Write calendar event slot 2 - SB gig
23:30:29.453 PM8200: Bill&Shauna: Repeat type <bpcalendar.RepeatEntry object
at 0x01C99E50> not valid for this phone
23:30:29.453 PM8200: Write calendar event slot 3 - Bill&Shauna
Here's the exception log:
An unexpected exception has occurred.
Please see the help for details on what to do.
Traceback (most recent call last):
File "D:\Projects\BitPim\gui.py", line 153, in run
res=call()
File "D:\Projects\BitPim\gui.py", line 93, in __call__
return apply(self.method, self.args+args, d)
File "D:\Projects\BitPim\gui.py", line 1266, in senddata
apply(func, args)
File "D:\Projects\BitPim\gui.py", line 1295, in writecalendar
return self.commphone.savecalendar(data, merge)
File "D:\Projects\BitPim\com_sanyonewer.py", line 60, in savecalendar
result = com_sanyo.Phone.savecalendar(self, dict, merge)
File "D:\Projects\BitPim\com_sanyo.py", line 1068, in savecalendar
endtimelocal=time.mktime(timearray)-zonedif
OverflowError: mktime argument out of range
Variables by last 8 frames, innermost last
Frame __bootstrap in D:\python23\lib\threading.py at line 436
self = <WorkerThread(BitPim helper, started daemon)>
Frame run in D:\Projects\BitPim\gui.py at line 146
e = <exceptions.OverflowError instance at 0x01CD9B20>
res = None
self = <WorkerThread(BitPim helper, started daemon)>
item = (<gui.Request instance at 0x01CD9B48>, <gui.Callback
instance at 0x01CD9AD0>)
call = <gui.Request instance at 0x01CD9B48>
ex = <exceptions.OverflowError instance at 0x01CD9B20>
resultcb = <gui.Callback instance at 0x01CD9AD0>
first = 0
Frame __call__ in D:\Projects\BitPim\gui.py at line 93
self = <gui.Request instance at 0x01CD9B48>
args = ()
d = Keys []
{}
kwargs = Keys []
{}
Frame senddata in D:\Projects\BitPim\gui.py at line 1266
count = 0
self = <WorkerThread(BitPim helper, started daemon)>
args = [{'phonephonebook': {0: {'slot': 118, 'name_len': 13,
'name': 'Caran Roberts', '
xx = (<bound method WorkerThread.writecalendar of
<WorkerThread(BitPim helper, starte
dict = Keys ['calendar', 'calendar_version', 'categories',
'phonebook', 'phonephonebook', 'ringtone-index', 'uniqueserial',
'wallpaper-index']
{'phonephonebook': {0: {'slot': 118, 'name_len': 13,
'name': 'Caran Roberts', 'u
func = <bound method WorkerThread.writecalendar of
<WorkerThread(BitPim helper, started
todo = [(<bound method WorkerThread.writecalendar of
<WorkerThread(BitPim helper, start
desc = 'Calendar'
Frame writecalendar in D:\Projects\BitPim\gui.py at line 1295
merge = False
self = <WorkerThread(BitPim helper, started daemon)>
data = Keys ['calendar', 'calendar_version', 'categories',
'phonebook', 'phonephonebook', 'ringtone-index', 'uniqueserial',
'wallpaper-index']
{'phonephonebook': {0: {'slot': 118, 'name_len': 13,
'name': 'Caran Roberts', 'u
Frame savecalendar in D:\Projects\BitPim\com_sanyonewer.py at line 60
res = <p_sanyo.beginendupdateresponse object at 0x01C996B0>
self = <com_sanyo8200.Phone instance at 0x01CADFD0>
req = <p_sanyo.beginendupdaterequest object at 0x01C5F430>
dict = Keys ['calendar', 'calendar_version', 'categories',
'phonebook', 'phonephonebook', 'ringtone-index', 'uniqueserial',
'wallpaper-index']
{'phonephonebook': {0: {'slot': 118, 'name_len': 13,
'name': 'Caran Roberts', 'u
merge = False
Frame savecalendar in D:\Projects\BitPim\com_sanyo.py at line 1068
slashpos = -1
zonedif = 21600.0
eventslot = 3
callslot = 0
alarmdiff = 7200
progressmax = 115
res = <p_sanyonewer.eventresponse object at 0x01C5F710>
self = <com_sanyo8200.Phone instance at 0x01CADFD0>
req = <p_sanyonewer.eventupdaterequest object at 0x01C79DD0>
descloc = u'Bill&Shauna'
starttimelocal = 1114110000.0
dict = Keys ['calendar', 'calendar_version', 'categories',
'phonebook', 'phonephonebook', 'ringtone-index', 'uniqueserial',
'wallpaper-index']
{'phonephonebook': {0: {'slot': 118, 'name_len': 13,
'name': 'Caran Roberts', 'u
location = ''
newcal = Keys []
{}
repeat = 0
keys = ['c3bc3da42326eac1e9642bf0a1b67531edd79472',
'd743df1789e12c5bcc812572b8f7391a49
v = 'yearly'
respc = <class 'p_sanyonewer.eventresponse'>
timearray = [4000, 1, 1, 19, 30, 0, 0, 0, 0]
eventname = u'Bill&Shauna'
now = 1107300629.0
e = <p_sanyonewer.evententry object at 0x01C5F4D0>
endtimelocal = 1112400000.0
k = 4
phonenum = u'Bill&Shauna'
merge = False
cal = Keys ['03a76e07558bad9fc80f57c0e8a5f83d41a9dd13',
'077442e66be97a3365bc1f539d027c974401204d',
'142f8f7abc203fe469ae55c0d80d3f804b575b6c',
'23efb5eccdfde77361c2544c9ea9cbaba4fe094d',
'2f41bf23d7662f1ff6aff467979b2b52884e8de8',
'31fced67f496ccbee8dca39df06c1252d22b45fb',
'37afd6e21148237e99a12f094c74a885e3173067',
'46d683444142c86d70fbd1221df646926e9d11f4',
'4954a7f27b3a0d2ca44a4fd18bcd112ec0b1fd8c',
'4cb7063987e16e0849327eec65cbe1a64b963fe2',
'632bd9f8b65752c1d3d28bfe5fbeb7e03a9500ae',
'7355b0117e31aa0c76da00196042bb3d6fd6c3c9',
'73f71e756e9537ebd188e3fd76900944e3905fca',
'801a337a547c051de0dc4199fc16321944ceb5ea',
'821e04b643d472c6e85673f9f2ccacd6b3714562',
'84d9788ef05b77be358847b08fc6e7517d79f04b',
'a8b5779b950c28bb5bec92f96278b4e6958bc6a0',
'bf850aafc3a0d611f8546751df4c64bde82f62a4',
'c28bc11da43789d2cb3a34fec081397050e08484',
'c3bc3da42326eac1e9642bf0a1b67531edd79472',
'd743df1789e12c5bcc812572b8f7391a49c4e08a',
'de65b5bd1975a3f2dd49f485c2fd9011f74759a3',
'edcdd582f5bdfd637ee4b6e993b7e476ae809341',
'edf51b2b929208afc9e0f92db7cb7961820aa01f',
'f2760145ecfb3a0aae2f41b50d2d18d49564f0ea']
{'c3bc3da42326eac1e9642bf0a1b67531edd79472':
<bpcalendar.CalendarEntry object at
entry = <bpcalendar.CalendarEntry object at 0x01C99190>