dbm.open Blind?

Robin Friedrich (friedric@rose.rsoc.rockwell.com)
Tue, 29 Mar 94 19:02:42 CST

This is really getting on my nerves. I'm dabbling with dbm files for the first
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?!?!

drwxr-xr-x 2 friedric 512 Mar 29 18:52 ./
drwxr-xr-x 7 friedric 1024 Mar 29 17:14 ../
-rw-r--r-- 1 friedric 4096 Mar 29 17:14 Notebase.dir
-rw-r--r-- 1 friedric 16384 Mar 29 17:14 Notebase.pag
-rwxr-xr-x 1 friedric 91 Mar 29 17:15 canonical.pl*
-rwxr-xr-x 1 friedric 185 Mar 29 18:50 db.py*
-rwxr-xr-x 1 friedric 153 Mar 29 18:50 db.py%*
-rwxr-xr-x 1 friedric 3034 Mar 29 17:15 metanotes.pl*
darwin 39 % python
Python 1.0.1 (Mar 27 1994)
Copyright 1991-1994 Stichting Mathematisch Centrum, Amsterdam
>>> import dbm
>>> x = dbm.open('Notebase','r',0644)
Traceback (innermost last):
File "<stdin>", line 1
dbm.error: (2, 'No such file or directory')
>>> x = dbm.open('./Notebase','r',0644)
Traceback (innermost last):
File "<stdin>", line 1
dbm.error: (2, 'No such file or directory')
>>>

I give up. (Tried full path name too.)