DB problem while trying to use Shelve

Roland Hedberg roland at catalogix.se
Tue Nov 30 05:23:17 EST 2004


Hi!

Want to use shelve in a program I'm writing, but I encounter a problem.

This is the tail of the traceback I get back:

   File "/sw/lib/python2.3/shelve.py", line 231, in open
     return DbfilenameShelf(filename, flag, protocol, writeback, binary)
   File "/sw/lib/python2.3/shelve.py", line 212, in __init__
     Shelf.__init__(self, anydbm.open(filename, flag), protocol, 
writeback, binary)
   File "/sw/lib/python2.3/anydbm.py", line 83, in open
     return mod.open(file, flag, mode)
   File "/sw/lib/python2.3/dbhash.py", line 16, in open
     return bsddb.hashopen(file, flag, mode)
   File "/sw/lib/python2.3/bsddb/__init__.py", line 186, in hashopen
     d.set_flags(hflags)
bsddb._db.DBInvalidArgError: (22, 'Invalid argument')
Illegal instruction

This is on a MacOSX machine with python 2.3.3 and db 4.2

What's going on ?

And what can I do about it ?

-- Roland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2367 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20041130/30b74484/attachment.bin>


More information about the Python-list mailing list