Dan> import bsddb
Dan> bsddb.hashopen("access.db")
Dan> but I get:
Dan> bsddb._db.DBInvalidArgError: (22, 'Invalid argument -- access.db:
unexpected file type or format')
Dan> .... Any suggestions on how to read this file?
See if the bsddb185 module is available:
% python
Python 2.5a0 (#94, Oct 8 2005, 06:49:04)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1671)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
impo>>> import bsddb
>>> import bsddb185
>>> dir(bsddb185)
['__doc__', '__file__', '__name__', 'btopen', 'error', 'hashopen', 'open',
'rnopen']
>>> dir(bsddb)
['UserDict', '_DBWithCursor', '__builtins__', '__doc__', '__file__',
'__name__', '__path__', '__version__', '_bsddb', '_checkflag', '_db',
'_iter_mixin', '_openDBEnv', 'btopen', 'db', 'error', 'hashopen', 'os',
'ref', 'rnopen', 'sys']
If the old libdb.a stuff is available, the bsddb185 module should have been
built automagically.
Skip
--
http://mail.python.org/mailman/listinfo/python-list