Questions tagged [gdbm]

GNU dbm is a key-value database. It provides primitives for storing key/data pairs, searching and retrieving the data by its key and deleting a key along with its data.

41 questions
12
votes
3 answers

GDBM doesn't work with Python 3.6 and anaconda

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…
Picani
  • 169
  • 1
  • 8
5
votes
0 answers

Perl 5.32.1 GDBM_File is incredibly slow

I just upgraded 2 machines from Fedora 31 to 33, and with that upgrade, Perl went from 5.30.3 to 5.32.1. The first thing I noticed is that GDBM_File.pm is no longer included in the Perl Core, but that was no problem. The second thing I noticed is…
5
votes
1 answer

Python: How to Install gdbm for dbm.gnu

In the Python 3 docs, it states that the dbm module will use gdbm if it's installed. In my script I use from dbm.gnu import open as dbm_open to try and import the module. It always returns with the exception ImportError: No module named '_gdbm'.…
Tankobot
  • 1,492
  • 14
  • 21
4
votes
4 answers

Alternative or succesor to GDBM

We a have a GDBM key-value database as the backend to a load-balanced web-facing application that is in implemented in C++. The data served by the application has grown very large, so our admins have moved the GDBM files from "local" storage (on the…
Anon Gordon
  • 2,469
  • 4
  • 28
  • 34
3
votes
1 answer

Using dbm.gnu for Python 3.6.8 on macOS

I am having some problems using dbm.gnu for Python 3.6.8 on macOS. I have installed gdbm in my Python virtual environment with conda... but I got the following error message when trying to invoke…
Kris Stern
  • 1,192
  • 1
  • 15
  • 23
3
votes
5 answers

Alternative to cvs2svn for performing cvs to svn migration

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…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
2
votes
3 answers

Installing/configuring gdbm Python module for cvs2svn?

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.…
David I.
  • 4,747
  • 3
  • 26
  • 34
2
votes
1 answer

gdbm with python3.9 unable to open a file created by gdbm with python 3.6

I upgraded from python 3.6 to python 3.9 and now the existing gdbm file is not getting read. Following error is being thrown, is there any way to fix this? Platform: CentOS Linux release 7.9.2009 (Core) Python: 3.9.9 With Python 3.6 version I…
P K
  • 69
  • 7
2
votes
1 answer

Is dbm.gnu not supported on Python 3.7 Windows?

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…
Basj
  • 41,386
  • 99
  • 383
  • 673
2
votes
1 answer

gdbm error 22 when performing Python shelve open

Doing a simple shelve.open will give the following error: >>> shelve.open('foo') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.6/shelve.py", line 243, in open return DbfilenameShelf(filename,…
Helen Che
  • 1,951
  • 5
  • 29
  • 41
2
votes
3 answers

Convert struct in byte array and store in db. Read db and get byte array to recreate the struct in C

Hello everyone sorry for asking but I could find any appropriate solution. I am working on a file system where I save each file node as key-value pair in a GDBM database. I have a struct which has some attributes and I convert this to a byte…
Arnold Asllani
  • 155
  • 1
  • 12
2
votes
0 answers

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

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: ... #…
cnaak
  • 994
  • 9
  • 11
2
votes
2 answers

Can a GDBM database created in C be opened in Python?

I have a Python program in which I am trying to use this rhyming dictionary to look up rhymes. Part of the dictionary library setup works by a C program creating three gdbm .db files. The code that does this is publicly available here (from 'get…
Bill Cheatham
  • 11,396
  • 17
  • 69
  • 104
2
votes
1 answer

gdb/mi gdb server debugging

What is the difference between gdb mi and gdb server? Can both be used for local debugging? I have facing problem in troubleshooting the debugging with gdb server on Red Hat. The debugging launcher stops at 72 %.
Ashish Tanwer
  • 29
  • 1
  • 5
2
votes
1 answer

undefined reference to 'gdbm_open'

I have installed gdbm, command "man gdbm" is ok. Now I try to write a simple gdbm program. #include #include #include #include #include #include #define TEST_DB_FILE…
zzhouyy
  • 21
  • 3
1
2 3