[ZODB-Dev] weird errors...

Kendall Clark kendall@monkeyfist.com
Fri, 22 Nov 2002 17:22:47 -0600


Folks,

I'm using RH 7.3, a fresh build of Py 2.2.2 (from tarball), and ZODB
3.1, and I keep getting this:

[k@rosa rdflib-1.1.2]$ py222
Python 2.2.2 (#1, Nov 21 2002, 14:15:20)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-112)] on linux2

>>> from ZODB import DB
>>> from ZODB.FileStorage import FileStorage
>>> s = FileStorage("testing.fs")
>>> db = DB(s)
>>> conn = db.open()
>>> conn.root()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.2/site-packages/ZODB/Connection.py", line 510, in root
    return self['\0\0\0\0\0\0\0\0']
  File "/usr/local/lib/python2.2/site-packages/ZODB/Connection.py", line 142, in __getitem__
    object=klass.__basicnew__()
AttributeError: type object 'PersistentMapping' has no attribute '__basicnew__'

This came up when trying to use the ZODB FileStorage driver for
eikeon's RDF library, but, as you can see above, it happens with bare
ZODB, too.

ZODB built and installed with no errors, but when I run the "test.py"
included, I get this:

[root@rosa ZODB3-3.1]# /usr/local/bin/python2.2 setup.py -q build
[root@rosa ZODB3-3.1]# /usr/local/bin/python2.2 test.py
Traceback (most recent call last):
  File "lib.linux-i686-2.2/ZEO/start.py", line 251, in main
      storages['1'] = FileStorage(fs or env.fs)
        File "lib.linux-i686-2.2/ZODB/FileStorage.py", line 223, in
__init__
    f = open(file_name+'.lock', 'w+')
    IOError: [Errno 13] Permission denied: '/home/k/ZODB3-3.1/build/Data.fs.lock

At which point it hangs forever...

A weird IOError, since I'm running it as root and root has permissions
sufficient to open that file in w+ mode in that directory... I'm
stumped.

Thanks,
Kendall Clark