This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: gdbm & ndbm support missing in Windows
Type: behavior Stage: resolved
Components: Windows Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: ArtVan, paul.moore, r.david.murray, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2017-01-15 19:03 by ArtVan, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg285517 - (view) Author: Arthur Vanwalleghen (ArtVan) Date: 2017-01-15 19:03
When I tried to work with GDBM and Ndbm files I saw that their supporting modules were not found.  This can be verified with Pydoc:

Pydoc\Python36-32\lib \dbm(package)\Package Contents\gnu|ndbm

ErrorDuringImport: problem in dbm.gnu - ModuleNotFoundError: No module named '_gdbm' 

ErrorDuringImport: problem in dbm.ndbm - ModuleNotFoundError: No module named '_dbm'

I first noticed this in 3.5 and waited to see if it was fixed in 3.6. I am running Win8.1.

I want to work with files created on Linux/Perl using GDBM or NDBM.  I cannot find any perl support for Python's dbm.dumb. I am looking for an out-of-the-box support for simple key/data files.
msg285641 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2017-01-17 14:01
This has always been the case (that gdbm and ndbm are not supported on windows).  See also issue 3769 for background and dbm and windows, and issue 3783 for something to work on if you want to contribute to making the dbm story on windows better.

Googling found a gdbm port to windows, so if you are trying to use source files from linux, that might help you.  We're open to suggestions on improving the situation here, but someone has to figure out what would make sense and champion it.  Bundling the gdbm windows port is probably not an option, but making it possible to install something via PIP that will work is, if there's anything in core preventing that currently.
History
Date User Action Args
2022-04-11 14:58:42adminsetgithub: 73466
2017-01-17 14:01:18r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg285641

resolution: not a bug
stage: resolved
2017-01-15 19:03:25ArtVancreate