[issue13007] gdbm 1.9 has new magic that whichdb does not recognize

Niklas Br report at bugs.python.org
Fri Mar 30 16:55:19 CEST 2012


Niklas Br <n.brunberg at gmail.com> added the comment:

This fix should be included in RC2, right? Because I can't get it to work.

Amarok:roller niklas$ ls
data.db		roller.py
Amarok:roller niklas$ python3-32 
Python 3.2.3rc2 (v3.2.3rc2:428f05cb7277, Mar 18 2012, 00:08:43) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import shelve
>>> file = shelve.open("data.db")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/shelve.py", line 232, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/shelve.py", line 216, in __init__
    Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/dbm/__init__.py", line 83, in open
    raise error[0]("db type could not be determined")
dbm.error: db type could not be determined

----------
nosy: +Niklas.Brunberg

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13007>
_______________________________________


More information about the Python-bugs-list mailing list