I fixed it! I had omitted the cascade of exceptions, but the previous one to the one shown is: File "/usr/local/lib/python2.5/dbhash.py", line 5, in <module> import bsddb So I just went into dbhash.py and changed line 5 to import bsddb3 as bsddb. Then everything started working as planned. Excellent! But definitely a hack.