[ python-Bugs-973054 ] bsddb in Python 2.3 incompatible with SourceNav output

SourceForge.net noreply at sourceforge.net
Thu Jun 17 12:29:02 EDT 2004


Bugs item #973054, was opened at 2004-06-15 03:55
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=973054&group_id=5470

Category: Extension Modules
Group: Python 2.3
Status: Closed
Resolution: Wont Fix
Priority: 5
Submitted By: gdy (gdy999)
Assigned to: Gregory P. Smith (greg)
Summary: bsddb in Python 2.3 incompatible with SourceNav output

Initial Comment:
bsddb module in Python 2.3 cannot read 
SourceNavigator output (old btree format):

Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC 
v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more 
information.
>>> import bsddb
>>> a = bsddb.btopen('jEdit_14-12-2004.cl')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Program Files\Python23\lib\bsddb\__init__.py", 
line 209, in btopen
    d.open(file, db.DB_BTREE, flags, mode)
bsddb._db.DBInvalidArgError: (22, 'Invalid argument -- 
jEdit_14-12-2004.cl: unexpected file type or format')

With Python 2.2 the file is opened without problem.

SourceNavigator is an open source source code analyser 
(http://sourcenav.sourceforge.net/)

----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2004-06-17 12:29

Message:
Logged In: YES 
user_id=31435

Unfortunately, no:  the PSF Windows distro doesn't include 
any of the Sleepycat utilities.  That isn't a matter of policy, 
it's a matter of nobody volunteering to do it.

----------------------------------------------------------------------

Comment By: Gregory P. Smith (greg)
Date: 2004-06-16 18:33

Message:
Logged In: YES 
user_id=413

Yes python 2.3 ships with bsddb using BerkeleyDB 4.1; all
previous versions of python were used the old "BerkeleyDB"
1.85.  I highly recommend using the new database interface
rather than the old compatibility interface (pybsddb.sf.net
as well as sleepycat.com for docs).

Does the windows build of python include the BerkeleyDB
db_dump.exe and db_load.exe utilities?  i'd guess not, but
if so you can hopefully use those to dump your old format
database and load it into a new one.

If you need binaries for those and don't want to build them
yourself using BerkeleyDB source available from
sleepycat.com they are included in the win32 binary release
of pybsddb (http://sourceforge.net/projects/pybsddb/) for
python 2.1 and 2.2.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=973054&group_id=5470



More information about the Python-bugs-list mailing list