New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing anydbm generates exception if _bsddb unavailable #38426
Comments
The anydbm module attempts to import the dbhash module, Relevant portion of backtrace: File "/diska/netsite-docs/cgi-bin/waisdb2.py", line Tests that explicitly use "import dbm" rather than |
Logged In: YES I think this is not a bug. open() has determined that this Or did you mean to suggest that opening the very same file |
Logged In: YES I believe the attached patch does what's necessary to get this to work again.
The last two changes avoid having to change dbhash.py in complicated Using this setup I was successfully able to open /etc/pwd.db on my Please give it a try. |
Logged In: YES I can't actually test the patch, but it looks good to me. |
Logged In: YES Actually, you probably need to check whether If you are uncertain whether this is the right library, I |
Logged In: YES Assigned to Fred for doc review - I added a couple notes to libbsddb.tex Library detection probably needs a little tweakage as well. |
Logged In: YES The doc changes look mostly fine to me (and I've changed I'm just amazed we're still spending time tweaking BSD DB; I |
Logged In: YES ancient history i just never closed |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: