[ spambayes-Bugs-810344 ] On Mac OS X,	should use 'dbm' instead of gdbm or bsddb Bugs item #810344, was opened at 2003-09-21 19:56
Message generated for change (Comment added) made by montanaro
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=810344&group_id=61702

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.1.x
Status: Closed
Resolution: Accepted
Priority: 5
Private: No
Submitted By: Timothy O'Malley (thisistimo)
Assigned to: Skip Montanaro (montanaro)
Summary: On Mac OS X, should use 'dbm' instead of gdbm or bsddb

Initial Comment:
The Mac OS X download for Python 2.3 does not have the 
gdbm, bsddb, or bsddb3 modules.

It does, however, have a 'dbm' module.  The dbmstorage.py 
file should be updated to fallback to the dbm module if there 
are no gdbm, bsddb, or bsddb3 modules as a way to support 
Mac OS X.

There is  patch attached to fix this.


----------------------------------------------------------------------

>Comment By: Skip Montanaro (montanaro)
Date: 2007-07-04 06:04

Message:
Logged In: YES 
user_id=44345
Originator: NO

I reverted this change.  All it does is sneak Berkeley DB 1.85 format
files into the system on Macs.  This file format should not be used.  In
any case, should people want to use it, since Python 2.3 the bsddb185
module exists which at least makes the use of this bad format explicit.


----------------------------------------------------------------------

Comment By: Skip Montanaro (montanaro)
Date: 2007-07-03 09:13

Message:
Logged In: YES 
user_id=44345
Originator: NO

Sorry to have ignored/forgotten about this for so long.  Checked in a
slight modification of this patch as dbmstorage.py 1.16.


----------------------------------------------------------------------

Comment By: Graham Ashton (ashtong)
Date: 2005-11-12 21:10

Message:
Logged In: YES 
user_id=263764

Hi Skip. This isn't out of date, it still occurs. This is on Tiger
(10.4.3):

% python
Python 2.3.5 (#1, Mar 20 2005, 20:38:20) 
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gdbm
Traceback (most recent call last):
  File "", line 1, in ?
ImportError: No module named gdbm
>>> import bsddb
Traceback (most recent call last):
  File "", line 1, in ?
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/bsddb/__init__.py", line 40, in ?
    import _bsddb
ImportError: No module named _bsddb
>>> import bsddb3
Traceback (most recent call last):
  File "", line 1, in ?
ImportError: No module named bsddb3

----------------------------------------------------------------------

Comment By: Skip Montanaro (montanaro)
Date: 2005-05-30 19:03

Message:
Logged In: YES 
user_id=44345

Closing - I think this is now out-of-date.  If not, let me know and
I'll look into it.


----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2005-01-20 21:38

Message:
Logged In: YES 
user_id=552329

Skip: assigning to you since you're the only developer that
I know has a mac :)

Is this correct?  Would this hurt?  If not, I don't see why
we couldn't add this (although people can always install
bsddb or use a pickle).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=810344&group_id=61702


