gdbm

Is dbm.gnu not supported on Python 3.7 Windows?

百般思念 提交于 2021-01-28 11:23:08
问题 When doing import dbm.gnu on a standard Python 3.7.6 (64) for Windows, I get: File "C:\Python37\lib\dbm\gnu.py", line 3, in from _gdbm import * ModuleNotFoundError: No module named '_gdbm' Isn't dbm.gnu supported out of the box on Windows? The same problem happens with: import dbm.ndbm File "C:\Python37\lib\dbm\ndbm.py", line 3, in from _dbm import * ModuleNotFoundError: No module named '_dbm' I tested on another Python 3.6.8, and it's the same. 来源: https://stackoverflow.com/questions

GDBM doesn't work with Python 3.6 and anaconda

自闭症网瘾萝莉.ら 提交于 2020-01-14 07:58:10
问题 I use Python 3.6 in an anaconda environment. I installed GDBM with conda install gdbm The installation went well, however I can't use dbm.gnu from Python: ModuleNotFoundError: No module named '_gdbm' It seams that Python doesn't include the _gdbm module, even if GDBM is actually installed. Is this a known problem? How can I fix it? Thanks! 回答1: I faced this issue as well. This is probably not the ideal way, but it works. I did the following to resolve this - sudo apt-get install python3-gdbm

Installing/configuring gdbm Python module for cvs2svn?

我的梦境 提交于 2019-12-24 00:43:37
问题 I am trying to install cvs2svn on a Solaris 10 machine. It has Python 2.4.4 on it. I don't have root access. When I downloaded cvs2svn and tried to run it, it said ERROR: cvs2svn uses the anydbm package, which depends on lower level dbm libraries. Your system has dbm, with which cvs2svn is known to have problems. To use cvs2svn, you must install a Python dbm library other than dumbdbm or dbm. See http://python.org/doc/current/lib/module-anydbm.html for more information. I downloaded gdbm,

Alternative to cvs2svn for performing cvs to svn migration

北战南征 提交于 2019-12-23 17:31:05
问题 I am trying to perform a migration from cvs to svn on my our new XServe server which is running OS X Server. There is a known conflict between the cvs2svn and dbm libraries that come pre-installed with OS X. The error is: ERROR: cvs2svn uses the anydbm package, which depends on lower level dbm libraries. Your system has dbm, with which cvs2svn is known to have problems. To use cvs2svn, you must install a Python dbm library other than dumbdbm or dbm. See http://python.org/doc/current/lib

Got gdbm error: (13, 'Permission denied') — Despite posix permissions seeming OK

房东的猫 提交于 2019-12-11 05:53:20
问题 I'm working with shelve in python 2.7.6 for caching calculations, and I've ran into the issue described HERE for shelve files produced by me and implemented the suggested solution in a function that merges a file other into the file target : ... # target and other are strings # Loads the gdbm module, as suggested mod = __import__("gdbm") # Open target for modifications tar = shelve.Shelf(mod.open(target, 'c', 0666)) # THROWS EXCEPTION # Open other for reading oth = shelve.Shelf(mod.open(other