When will they fix Python _dbm?

Ian Kelly ian.g.kelly at gmail.com
Tue Dec 6 16:34:15 EST 2016


On Mon, Dec 5, 2016 at 7:45 AM, clvanwall <clvanwall at gmail.com> wrote:
> I have been a Perl programmer for 15+ years and decided to give Python a try.  My platform is windows and I installed the latest 3.5.2. Next I decided to convert a perl program that uses a ndbm database since according to the doc on python, it should be able to work with it.  Needless to say, I get: dbm.error: db type is dbm.ndbm, but the module is not available
> Searching on Python Bug Tracker shows _dbm missing back in 03-03-2012!  That's a long time for a bug to be left open.

Are you referring to http://bugs.python.org/issue14185? That's on
Linux platforms and it has to do with building Python, not using it.

The dbm.ndbm documentation specifically says that it provides an
interface to the *Unix* ndbm library:
https://docs.python.org/3/library/dbm.html#module-dbm.ndbm. I don't
think that this module is part of the standard Windows distribution of
Python. You might be able to find a third-party distribution of the
module using a Windows port of ndbm, or you could try to build it
yourself.


More information about the Python-list mailing list