Package: memaid-pyqt
Version: 0.2.3-3

When I try to run memaid-pyqt on my Alpha, it starts up the GUI fine,
and I can bring up the 'add item' dialog from menu or toolbar, but
it doesn't appear to actually add any items. Whenever I click on
one of the numbered buttons (which I assume is supposed to actually
add an item) I see this on stderr:

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/pyqt_memaid/add_items_dlg.py", line 
61, in new_item
    add_new_item(grade, q, a, cat_name)
  File "/usr/lib/python2.3/site-packages/pyqt_memaid/memaid_core.py", line 754, 
in add_new_item
    e.new_id()
  File "/usr/lib/python2.3/site-packages/pyqt_memaid/memaid_core.py", line 153, 
in new_id
    self.id = struct.unpack('L', digest[0:4])[0]
struct.error: unpack str size does not match format

Changing the 'L' to '<L' (to force interpretation as little-endian
32 bits) seems to fix the problem, but I know very little Python
so somebody else should review this before applyng the change :-)

Peter Maydell


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to