Re: When will they fix Python _dbm?
On Dec 6, 2016 4:04 PM,wrote: On Tuesday, December 6, 2016 at 9:35:19 PM UTC, Ian wrote: > On Mon, Dec 5, 2016 at 7:45 AM, clvanwall 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. How about http://www.gnu.org/software/gdbm/gdbm.html Well, that would be for dbm.gnu, not dbm.ndbm. And I don't see any distribution of the Python module there in any case. -- https://mail.python.org/mailman/listinfo/python-list
Re: When will they fix Python _dbm?
On Tuesday, December 6, 2016 at 9:35:19 PM UTC, Ian wrote: > On Mon, Dec 5, 2016 at 7:45 AM, clvanwall 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. How about http://www.gnu.org/software/gdbm/gdbm.html Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list
Re: When will they fix Python _dbm?
On Mon, Dec 5, 2016 at 7:45 AM, clvanwallwrote: > 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. -- https://mail.python.org/mailman/listinfo/python-list
Re: When will they fix Python _dbm?
On Mon, Dec 5, 2016 at 5:06 PM, clvanwallwrote: > will thid do? John > Looks like you need to use dbm.ndbm.open() instead of just dbm.open(). See the docs here for more info: https://docs.python.org/3/library/dbm.html#module-dbm.ndbm -- https://mail.python.org/mailman/listinfo/python-list
Re: When will they fix Python _dbm?
will thid do? John Sent from my Galaxy Tab® A Original message From: justin walters <walters.justi...@gmail.com> Date: 12/5/16 11:13 AM (GMT-06:00) To: python-list@python.org Subject: Re: When will they fix Python _dbm? On Mon, Dec 5, 2016 at 6:45 AM, clvanwall <clvanw...@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. > John Van Walleghen > > > Sent from my Galaxy Tab® A > -- > https://mail.python.org/mailman/listinfo/python-list > Hi there, Could you please post code that is giving you an error? -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: When will they fix Python _dbm?
On Mon, Dec 5, 2016 at 6:45 AM, clvanwallwrote: > 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. > John Van Walleghen > > > Sent from my Galaxy Tab® A > -- > https://mail.python.org/mailman/listinfo/python-list > Hi there, Could you please post code that is giving you an error? -- https://mail.python.org/mailman/listinfo/python-list
Re: When will they fix Python _dbm?
What is your operating system, environment, and Python build? dbm is just a module that might not have been included into your Python build. It's not a bug but a deliberate choice of the package maker. Regards, Anton > On 5 Dec 2016, at 17:45, clvanwallwrote: > > 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. > John Van Walleghen > > > Sent from my Galaxy Tab® A > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list