Pygr installation on Mac 10.5.6

32 views
Skip to first unread message

Alexander Alekseyenko

unread,
Feb 5, 2009, 2:23:28 PM2/5/09
to pygr-dev
Dear All,

I am looking for your advise on the Berkeley DB dependence of pygr on
Mac 10.5.6. It seems that default Framework installation of python
does not have proper Berkley DB libraries. I would get import errors
when trying to import bsddb, complaining that _bsddb was not present.
After installing my own bsddb3 and py-bsddb I am able to import to via
'import bsddb3', however pygr code tries to import bsddb which still
causes errors above. As a work around I edited all the import
statements in pygr and anydbm w/ this:
import bsddb3 as bsddb

This patched the problem for me, but I am looking to see if anyone
else experienced similar problems and if there's a cleaner solution.

Cheers,
Alex

Namshin Kim

unread,
Feb 5, 2009, 5:15:28 PM2/5/09
to pygr...@googlegroups.com
Hi Alex,

Instead, I edited ~/python2.5/site-packages/bsddb3

Rename ~/python2.5/site-packages/bsddb3 into ~/python2.5/site-packages/bsddb
Rename bsddb3-4.5.0-py2.5.egg-info into bsddb-4.5.0-py2.5.egg-info
Open bsddb-4.5.0-py2.5.egg-info and change bsddb3 into bsddb
Move to bsddb directory and *grep* bsddb3 and change *all* bsddb3 into bsddb

It's just one time job and it works for me. I am using MacBook Air 10.5.6 with Python 2.5.2 installation by source package.

Yours,
Namshin Kim
Reply all
Reply to author
Forward
0 new messages