Note that there are some explanatory texts on larger screens.

plurals
  1. POPython 3.1 installed from Macports on 10.5.8 - shelve error (bug or not?)
    primarykey
    data
    text
    <p>I am running python 3.1.4 from macports and I am attempting to use the shelve module here. I can use it successfully on another dev. machine (different OS, etc.) so I am not sure what I may be doing incorrectly...</p> <p>Any thoughts or suggestions would be greatly appreciated!</p> <p>Here is the error "dbm.error: db type could not be determined" (I searched for the error message but found no info - I even tried to force the protocl=2 to see if that might help but it did not)</p> <p>Here's the interactive session:</p> <pre><code>Python 3.1.4 (default, Oct 7 2011, 15:58:53) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin &gt;&gt;&gt; import shelve &gt;&gt;&gt; a = [1, 2, 3] &gt;&gt;&gt; locker = shelve.open('myshelf',protocol=2) &gt;&gt;&gt; locker['a'] = a &gt;&gt;&gt; locker.close() &gt;&gt;&gt; exit() Python 3.1.4 (default, Oct 7 2011, 15:58:53) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin &gt;&gt;&gt; import shelve &gt;&gt;&gt; locker = shelve.open('myshelf',protocol=2) Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/shelve.py", line 231, in open return DbfilenameShelf(filename, flag, protocol, writeback) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/shelve.py", line 215, in __init__ Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/dbm/__init__.py", line 84, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload