Shelve problem with Python 2.3.4 on RHEL 3 AS

Marco Cassiano mcassiano at gmail.com
Tue Apr 26 12:06:24 EDT 2005


I installed python 2.3.4 on my system with configure/make/make altinstall in 
order to preserve the original python installation of RHEL3.
I have the following error entering these few python lines : 
Python 2.3.4 (#3, Apr 26 2005, 14:48:36)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-49)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import shelve

>>> fl='/tmp/test.shelve'

>>> dbase=shelve.open(fl)

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.3/shelve.py", line 231, in open
return DbfilenameShelf(filename, flag, protocol, writeback, binary)
File "/usr/local/lib/python2.3/shelve.py", line 212, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback, binar 
y)
File "/usr/local/lib/python2.3/anydbm.py", line 83, in open
return mod.open(file, flag, mode)
File "/usr/local/lib/python2.3/dbhash.py", line 16, in open
return bsddb.hashopen(file, flag, mode)
File "/usr/local/lib/python2.3/bsddb/__init__.py", line 192, in hashopen
d.open(file, db.DB_HASH, flags, mode)
bsddb._db.DBError: (38, 'Function not implemented -- DB_ENV->dbremove: 
method not permitted before open')
 And typing it again I get :

>>> dbase=shelve.open(fl)
Exception exceptions.AttributeError: "DbfilenameShelf instance has no 
attribute 'writeback'" in ignored
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.3/shelve.py", line 231, in open
return DbfilenameShelf(filename, flag, protocol, writeback, binary)
File "/usr/local/lib/python2.3/shelve.py", line 212, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback, 
binary)
File "/usr/local/lib/python2.3/anydbm.py", line 83, in open
return mod.open(file, flag, mode)
File "/usr/local/lib/python2.3/dbhash.py", line 16, in open
return bsddb.hashopen(file, flag, mode)
File "/usr/local/lib/python2.3/bsddb/__init__.py", line 192, in hashopen
d.open(file, db.DB_HASH, flags, mode)
bsddb._db.DBError: (38, 'Function not implemented -- process-private: unable 
to initialize environment lock: Function not implemented')

If I did it with the standard Python 2.2.3 it works perfectly . The problem 
is I need Python 2.3.4 on my system...
Could you give me any advice ?
Thank you

Marco Cassiano


-- 
Marco Cassiano
Italy
email : mcassiano at manord.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050426/05f1d781/attachment.html>


More information about the Python-list mailing list