[Python-bugs-list] [ python-Bugs-504305 ] python 2.2 shelve

noreply@sourceforge.net noreply@sourceforge.net
Wed, 16 Jan 2002 03:52:56 -0800


Bugs item #504305, was opened at 2002-01-16 02:34
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=504305&group_id=5470

Category: Extension Modules
Group: Python 2.2
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: tarski  (tarski9)
Assigned to: Nobody/Anonymous (nobody)
Summary: python 2.2 shelve

Initial Comment:
I've created a shelve 'db-test' under Red Hat Linux 7.1
and Python 2.1.1. When I want to open this shelve under
Win2k with Python 2.1.1 or Python 2.2, following occurs.


>>> db = shelve.open("C:\db-test")
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in ?
    db = shelve.open("C:\db-test")
  File "C:\PROGRAMS\PYTHON22\lib\shelve.py", line 158,
in open
    return DbfilenameShelf(filename, flag)
  File "C:\PROGRAMS\PYTHON22\lib\shelve.py", line 148,
in __init__
    Shelf.__init__(self, anydbm.open(filename, flag))
  File "C:\PROGRAMS\PYTHON22\lib\anydbm.py", line 86,
in open
    return mod.open(file, flag, mode)
  File "C:\PROGRAMS\PYTHON22\lib\dbhash.py", line 16,
in open
    return bsddb.hashopen(file, flag, mode)
error: (22, 'Invalid argument')


Is there a bug in the bsddb.lib under Windows? Is there
a solution to create shelves under Linux and to use
them under Windows?

Thanks

tarski

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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-01-16 03:52

Message:
Logged In: YES 
user_id=21627

Duplicate of #504282.

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

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