open shelve file
<p>I'm trying to lookup for a "key" in "my.db". I did the following:</p>

<pre><code>import shelve
db_file = os.path.join(self.path_data, 'my_directory', 'my.db')
s = shelve.open(db_file)
val = s["key"]
</code></pre>

<p>and I get this error:</p>

<pre><code> /opt/Python-2.4.3/lib/python2.4/shelve.py in open(filename='/path_here/dir/netmhcpan.db', flag='c', protocol=None, writeback=False, binary=None)
 /opt/Python-2.4.3/lib/python2.4/shelve.py in __init__(self=&lt;DbfilenameShelf instance&gt;, filename='/path_here/dir/netmhcpan.db', flag='c', protocol=None, writeback=False, binary=None)
 /opt/Python-2.4.3/lib/python2.4/anydbm.py in open(file='/path_here/dir/netmhcpan.db', flag='c', mode=438)
......
ImportError: No module named _bsddb
  args = ('No module named _bsddb',) 
</code></pre>

<p>Appreciate any help to solve this problem. Thanks.</p>
