This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: bsddb in Python 2.3 incompatible with SourceNav output
Type: Stage:
Components: Extension Modules Versions: Python 2.3
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: gregory.p.smith Nosy List: gdy999, gregory.p.smith, tim.peters
Priority: normal Keywords:

Created on 2004-06-15 07:55 by gdy999, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg21192 - (view) Author: gdy (gdy999) Date: 2004-06-15 07:55
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/)
msg21193 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2004-06-16 22:33
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.
msg21194 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2004-06-17 16:29
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.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40401
2004-06-15 07:55:28gdy999create