Questions tagged [bsddb]

bsddb is the Python interface to the Berkeley DB embedded database library.

It used to be shipped with Python (2.x), but as of Python 3 has been split off into a separate package.

The name comes about from the Berkeley Software Distribution (BSD) which contained the original Berkeley DB.

34 questions
9
votes
2 answers

Installing bsddb3 6.1.1 in Windows: FileNotFoundError: 'db/include\\db.h'

I'm running Windows 7 x64, with Python 3.4. When I run pip install bsddb3 I get: λ pip install bsddb3 Collecting bsddb3 Using cached bsddb3-6.1.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call…
Isaac
  • 137
  • 1
  • 1
  • 5
8
votes
5 answers

Where can I find examples of bsddb in use?

I've spent hours searching for examples of how to use the bsddb module and the only ones that I've found are these (from here): data = mydb.get(key) if data: doSomething(data) ##################### rec = cursor.first() while rec: print rec …
tgray
  • 8,826
  • 5
  • 36
  • 41
5
votes
1 answer

"ImportError: No module named _bsddb" when opening shelve in Docker container

I want to open a shelve inside a Docker container based in Python's official image, python:2.7.9-wheezy. But I get an import error. syncer/util.py:19: in get_from_shelve db =…
OrangeTux
  • 11,142
  • 7
  • 48
  • 73
5
votes
1 answer

sudo easy_install bsddb3 error :Can't find a local Berkeley DB installation

I tried to make a plugin on qgis with Python 2.7.3 and there is a error happend and I find a way to install bsddb3 to replace bsddb but when I try $sudo easy_install bsddb3 it's give me a error Can't find a local Berkeley DB installation I have…
blueman010112
  • 456
  • 1
  • 7
  • 19
4
votes
5 answers

How to Fix the Broken BSDDB Install in the Default Python Package on Mac OS X 10.5 Leopard?

Do the following on the default Python install on Mac OS X 10.5 (Leopard) w/ Developer Tools: noel ~ : python Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or…
Noel
  • 2,061
  • 4
  • 31
  • 47
3
votes
1 answer

Storing data in a Berkeley DB database with Python and bsddb3

I’m trying to write data to a Berkeley DB database using Python 3.5 and bsddb3. I don’t have any experience with Berkeley DB, but I like to use a time stamp as the key and some JSON data as the respective value. The following example leads to an…
laserbrain
  • 985
  • 3
  • 10
  • 20
3
votes
1 answer

Working with Berkeley DB( bsddb module ), Python

I'm using python 2.7.3 and and Berkeley DB to store data. I didn't find much information about that module, only in python docks. I saw there some function described, but I didn't see instruction on how to delete a record from database. Help please,…
user3370524
  • 33
  • 1
  • 3
2
votes
1 answer

bsddb3.db.DBRunRecoveryError

I am using Python 2.7.2 and the bsddb3 module I am just simple checking if the db contains an element, and if not then add it For specific keys when I do a .get(hashkey) , then I receive this error message: bsddb3.db.DBRunRecoveryError: (-30975,…
hu3b11b7
  • 169
  • 5
2
votes
1 answer

Python cannot install package berkeleydb, FileNotFoundError on Getting requirements to build wheel

Trying to install berkeleydb package for python on Windows. Python 3.9.10 Pip 21.3.1 d:\pip install berkeleydb Collecting berkeleydb Using cached berkeleydb-18.1.5.tar.gz (430 kB) Installing build dependencies ... done Getting…
Hasse
  • 383
  • 3
  • 11
2
votes
0 answers

Attempting to use Project Gutenberg in Python 3

I was using the Project Gutenberg API (I'm new, forgive me if this isn't actually the right term) with Python 2 just fine. But I needed to start using Python 3 for other reasons. I'm having a lot of difficulties getting Gutenberg to work with Python…
Will
  • 351
  • 4
  • 15
2
votes
1 answer

bsddb and reprepro (berkeley) database

I'm trying to read the database files created by reprepro. I don't have that much experience with bdb, so I might be confused here, but it looks like the database is layered in some way. If I simply do btopen('path/to/packages.db', 'r'), I get the…
viraptor
  • 33,322
  • 10
  • 107
  • 191
2
votes
1 answer

bsddb3-6.0.1 Windows7 bulid error: _bsddb.obj : error LNK2019: unresolved external symbol db_create referenced in function newDBObject

building bsddb3-6.0.1, Python 3.3.2, BerkeleyDB 5.3, Windows7. First linker asked for libdb53s.lib, but there's no such file, so I deleted 's' symbol (in setup3.py) and now linker can find libdb53.lib, but... _bsddb.obj : error LNK2019: unresolved…
sydcoder
  • 31
  • 4
2
votes
5 answers

How to give multiple values to a single key using a dictionary?

I have a html form which has Firstname, LastName, Age and Gender and a ADD button. I enter the data into the form and that gets into the Berkeelys db. What my code does is it prints only the last values. I want that it should show all the values…
Jeremy
  • 73
  • 1
  • 3
  • 10
1
vote
1 answer

bsddb.open additional arguments

The bsddb module has three ways to open a db-file: bsddb.hashopen(filename[, flag[, mode[, pgsize[, ffactor[, nelem[, cachesize[, lorder[, hflags]]]]]]]]) bsddb.btopen(filename[, flag[, mode[, btflags[, cachesize[, maxkeypage[, minkeypage[, pgsize[,…
juliomalegria
  • 24,229
  • 14
  • 73
  • 89
1
vote
3 answers

python bsddb doesnt flush when removing entries

I got a python BSDDB database. Obviously, it's stored on the hard drive. When I remove some entries, the file on the drive does not get any smaller (consequently - it grows quite fast...) utDelList = [] urlsDelList = [] for ut in…
ejndzel
  • 53
  • 6
1
2 3