Re: dbm.open Blind?
Jack Jansen (Jack.Jansen@cwi.nl)
Wed, 30 Mar 1994 11:41:18 +0200
Recently, firstname.lastname@example.org (Robin Friedrich) said:
> This is really getting on my nerves. I'm dabbling with dbm files for the firs
> time(with python that is). I have an existing dbm database and I would like
> to access it from python. What am I doing wrong?!?!
> -rw-r--r-- 1 friedric 4096 Mar 29 17:14 Notebase.dir
> -rw-r--r-- 1 friedric 16384 Mar 29 17:14 Notebase.pag
> >>> x = dbm.open('Notebase','r',0644)
> Traceback (innermost last):
> File "<stdin>", line 1
> dbm.error: (2, 'No such file or directory')
The only thing I can imagine is that there has been some error in
building your dbm module. Even if the files were the wrong format
(i.e. because they were built with a different, incompatible, version
of dbm) the open should succeed (who knows what happens later, but the
open should succeed).
Jack Jansen | If I can't dance I don't want to be part of
Jack.Jansen@cwi.nl | your revolution -- Emma Goldman