[pybsddb] bsddb.db.DBNoSuchFileError on DBEnv.open
solsTiCe d'Hiver
solstice.dhiver at gmail.com
Sun Aug 29 23:41:44 CEST 2010
Le dimanche 29 août 2010 à 19:37 +0200, lasizoillo a écrit :
> Berkeley DB is hard to learn. I have been a lot of issues (at start
> mostly). But all I remember was my fault ;-)
>
I have already used Berkeley DB API in C, some time ago. Although C in
not very forgiving, I manage to do it with the very good documentation.
But now I find almost harder to do it in python, with the incorrect doc
or the code not working as I expect.
explain to me why a simple code like:
#include <db.h>
#include <stdlib.h>
int main(void) {
DB_ENV *env;
db_env_create(&env, 0);
env->open(env, ".db4", DB_INIT_MPOOL|DB_CREATE, 0);
env->close(env, 0);
return EXIT_SUCCESS;
}
works as expected.
I have 3 files __db.001 __db.002 __db.003 that are created in .db4
after I run the executable made with
gcc -ldb -o testdb testdb.c
how and why a simple thing as this does not work in python :-(
More information about the pybsddb
mailing list