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 On Fri, Feb 6, 2009 at 4:23 AM, Alexander Alekseyenko < [email protected]> wrote: > > 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 > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pygr-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pygr-dev?hl=en -~----------~----~----~----~------~----~------~--~---
