Bugs item #1117761, was opened at 2005-02-07 01:24 Message generated for change (Comment added) made by greg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1117761&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Extension Modules Group: Python 2.4 >Status: Closed Resolution: None Priority: 5 Submitted By: Andrea Bolzonella (bolzonella) >Assigned to: Gregory P. Smith (greg) Summary: BSDDB openhash Initial Comment: Python 2.4 (#1, Dec 8 2004, 18:57:30) [GCC 3.3.3 (SuSE Linux)] on linux2 >>> import bsddb >>> h = bsddb.hashopen('test','c',cachesize=100) Traceback (most recent call last): File "<stdin>", line 1, in ? File "/home/alex/DLD/lib/python2.4/bsddb/__init__.py", line 288, in hashopen bsddb._db.DBInvalidArgError: (22, 'Invalid argument -- DB->set_cachesize: method not permitted in shared environment') I replace bsddb.hashopen with a 2.3.3 version and it works. ---------------------------------------------------------------------- >Comment By: Gregory P. Smith (greg) Date: 2006-04-12 13:39 Message: Logged In: YES user_id=413 fixed in python repository. commits 45319 and 45320 for 2.5 and 2.4. set_cachesize needed to be called on the DBEnv object prior to opening now instead of the DB object. ---------------------------------------------------------------------- Comment By: Martin v. Löwis (loewis) Date: 2005-02-09 16:33 Message: Logged In: YES user_id=21627 Apparently, this is caused by hashopen now allocated a DBEnv. This, in turn, is necessary to allow multiple threads to access the same database simultaneously. I'm unsure why bsddb does not support shared access and having a cache size simultaneously; it might be best to disallow the cachesize argument, and require users who want to specify it to use DB.open explicitly (with no environment). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1117761&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com