Roger Binns
2005-01-05 08:55:50 UTC
Joe,
I get this exception when running without debug - ie python -OO bp.py
Since this is how BitPim is shipped ...
Traceback (most recent call last):
File "c:\python23\lib\site-packages\wx\_core.py", line 10673, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "c:\projects\bitpim\gui.py", line 876, in OnPopulateEverythingFromDisk
self.calendarwidget.getfromfs(results)
File "c:\projects\bitpim\bpcalendar.py", line 751, in getfromfs
calendarobjectfactory)
File "c:\projects\bitpim\database.py", line 261, in _transactionwrapper
return method(*args, **kwargs)
File "c:\projects\bitpim\database.py", line 596, in getmajordictvalues
record=factory.newdataobject()
File "c:\projects\bitpim\database.py", line 187, in newdataobject
return self.dataobjectclass(values)
File "c:\projects\bitpim\bpcalendar.py", line 147, in __init__
self.update(data.get_db_dict())
AttributeError: 'dict' object has no attribute 'get_db_dict'
Variables by last 8 frames, innermost last
Frame MainLoop in c:\python23\lib\site-packages\wx\_core.py at line 4732
args = (<gui.MainApp; proxy of C++ wxPyApp instance at _f0de8300_p_wxPyApp>,)
kwargs = Keys []
{}
Frame <lambda> in c:\python23\lib\site-packages\wx\_core.py at line 10673
event = <wx._core.PyEvent; proxy of C++ wxPyEvent instance at _30815402_p_wxPyEvent>
Frame OnPopulateEverythingFromDisk in c:\projects\bitpim\gui.py at line 889
self = <gui.MainWindow; proxy of C++ wxFrame instance at _e865be01_p_wxFrame>
results = Keys ['categories', 'phonebook', 'ringtone-index', 'wallpaper-index']
{'phonebook': {'a9b5a4e5402ebbe1e72ff3e146869cb5b7ed0546': {'serials': [{'serial
_ = None
Frame getfromfs in c:\projects\bitpim\bpcalendar.py at line 751
self = <bpcalendar.Calendar; proxy of C++ wxPanel instance at _90aafa01_p_wxPanel>
dict = Keys ['categories', 'phonebook', 'ringtone-index', 'wallpaper-index']
{'phonebook': {'a9b5a4e5402ebbe1e72ff3e146869cb5b7ed0546': {'serials': [{'serial
Frame _transactionwrapper in c:\projects\bitpim\database.py at line 280
cmd = 'END TRANSACTION'
success = False
self = <database.Database instance at 0x01B750F8>
args = (<database.Database instance at 0x01B750F8>, 'calendar', <database.dataobjectfac
w = False
kwargs = Keys []
{}
method = <function getmajordictvalues at 0x019B2330>
Frame getmajordictvalues in c:\projects\bitpim\database.py at line 596
uids = ['1c0df5ff858b0efc4eeeafec323e8f368099f093']
uid = 3
deleted = 2
res = Keys []
{}
self = <database.Database instance at 0x01B750F8>
indirects = Keys []
{}
factory = <database.dataobjectfactory instance at 0x01AB3990>
name = 'description'
colnum = 7
u = '1c0df5ff858b0efc4eeeafec323e8f368099f093'
tablename = 'calendar'
schema = [[0, '__rowid__', 'integer primary key'], [1, '__timestamp__', 'numeric'], [2, '
type = 'valueBLOB'
row = (1, 1104826813.859, None, '1c0df5ff858b0efc4eeeafec323e8f368099f093', 'calendar_
Frame newdataobject in c:\projects\bitpim\database.py at line 187
self = <database.dataobjectfactory instance at 0x01AB3990>
values = Keys []
{}
Frame __init__ in c:\projects\bitpim\bpcalendar.py at line 147
self = {}
data = Keys []
{}
Roger
I get this exception when running without debug - ie python -OO bp.py
Since this is how BitPim is shipped ...
Traceback (most recent call last):
File "c:\python23\lib\site-packages\wx\_core.py", line 10673, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "c:\projects\bitpim\gui.py", line 876, in OnPopulateEverythingFromDisk
self.calendarwidget.getfromfs(results)
File "c:\projects\bitpim\bpcalendar.py", line 751, in getfromfs
calendarobjectfactory)
File "c:\projects\bitpim\database.py", line 261, in _transactionwrapper
return method(*args, **kwargs)
File "c:\projects\bitpim\database.py", line 596, in getmajordictvalues
record=factory.newdataobject()
File "c:\projects\bitpim\database.py", line 187, in newdataobject
return self.dataobjectclass(values)
File "c:\projects\bitpim\bpcalendar.py", line 147, in __init__
self.update(data.get_db_dict())
AttributeError: 'dict' object has no attribute 'get_db_dict'
Variables by last 8 frames, innermost last
Frame MainLoop in c:\python23\lib\site-packages\wx\_core.py at line 4732
args = (<gui.MainApp; proxy of C++ wxPyApp instance at _f0de8300_p_wxPyApp>,)
kwargs = Keys []
{}
Frame <lambda> in c:\python23\lib\site-packages\wx\_core.py at line 10673
event = <wx._core.PyEvent; proxy of C++ wxPyEvent instance at _30815402_p_wxPyEvent>
Frame OnPopulateEverythingFromDisk in c:\projects\bitpim\gui.py at line 889
self = <gui.MainWindow; proxy of C++ wxFrame instance at _e865be01_p_wxFrame>
results = Keys ['categories', 'phonebook', 'ringtone-index', 'wallpaper-index']
{'phonebook': {'a9b5a4e5402ebbe1e72ff3e146869cb5b7ed0546': {'serials': [{'serial
_ = None
Frame getfromfs in c:\projects\bitpim\bpcalendar.py at line 751
self = <bpcalendar.Calendar; proxy of C++ wxPanel instance at _90aafa01_p_wxPanel>
dict = Keys ['categories', 'phonebook', 'ringtone-index', 'wallpaper-index']
{'phonebook': {'a9b5a4e5402ebbe1e72ff3e146869cb5b7ed0546': {'serials': [{'serial
Frame _transactionwrapper in c:\projects\bitpim\database.py at line 280
cmd = 'END TRANSACTION'
success = False
self = <database.Database instance at 0x01B750F8>
args = (<database.Database instance at 0x01B750F8>, 'calendar', <database.dataobjectfac
w = False
kwargs = Keys []
{}
method = <function getmajordictvalues at 0x019B2330>
Frame getmajordictvalues in c:\projects\bitpim\database.py at line 596
uids = ['1c0df5ff858b0efc4eeeafec323e8f368099f093']
uid = 3
deleted = 2
res = Keys []
{}
self = <database.Database instance at 0x01B750F8>
indirects = Keys []
{}
factory = <database.dataobjectfactory instance at 0x01AB3990>
name = 'description'
colnum = 7
u = '1c0df5ff858b0efc4eeeafec323e8f368099f093'
tablename = 'calendar'
schema = [[0, '__rowid__', 'integer primary key'], [1, '__timestamp__', 'numeric'], [2, '
type = 'valueBLOB'
row = (1, 1104826813.859, None, '1c0df5ff858b0efc4eeeafec323e8f368099f093', 'calendar_
Frame newdataobject in c:\projects\bitpim\database.py at line 187
self = <database.dataobjectfactory instance at 0x01AB3990>
values = Keys []
{}
Frame __init__ in c:\projects\bitpim\bpcalendar.py at line 147
self = {}
data = Keys []
{}
Roger