[Mattricks] Mac issues

Ragnar Ouchterlony ragnar at lysator.liu.se
Mon Jan 12 16:11:44 CET 2004


On Mon, 12 Jan 2004, Kent Karlsson wrote:

> I checked out the latest cvs and tried it out with the confusing error
> that bsddb wasnt there. It took me a while to figure out that it was
> the lib that was missing.
>
> If anyone want bsddb to work on MacOS X 10.3, do this (preceding every
> cmd with a # due to the linebreaks):
>
> # curl
> http://undefined.org/python/pimp/bsddb-4.1.6.darwin-6.6-
> Power_Macintosh.tar.gz > bsddb.tgz
> # tar xzvf bsddb.tgz
> # mv
> ./Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
> packages/_bsddb.so .
> # install_name_tool -change
> /Library/Frameworks/Python.framework/Versions/2.3/Python
> /System/Library/Frameworks/Python.framework/Versions/2.3/Python
> _bsddb.so
> # mv _bsddb.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
>
> Found the idea here:
> http://divmod.org/users/mailman.twistd/pipermail/divmod-dev/2003-
> November/000150.html

Seems like Apple forgot the _bsddb.so in their python-2.3 dist.

> Is the fetching of the fixtures supposed to work? I get this:
>
> Traceback (most recent call last):
> [..snip..]
> "/Users/kentk/Projects/OpenSource/Mattricks/Mattricks/Database.py",
> line 72, in get_all
>      data[key] = db.get(key)
> AttributeError: _DBWithCursor instance has no attribute 'get'

This should work, but since it is unnecessary to get the value again you
should change that row (72) in Database.py to read "data[key] = value".

/Ragnar



More information about the Mattricks mailing list