70% [* SPAM *] shelve trying to import bsddb

Discussion in 'Python' started by DPalao, Feb 16, 2011.

  1. DPalao

    DPalao Guest

    Dear all,
    I'm trying to use shelve to store some data, but sheve itself tries to import
    bsddb, which results in:

    > File "/usr/lib64/python2.6/shelve.py", line 239, in open
    > return DbfilenameShelf(filename, flag, protocol, writeback)
    > File "/usr/lib64/python2.6/shelve.py", line 223, in __init__
    > Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
    > File "/usr/lib64/python2.6/anydbm.py", line 82, in open
    > mod = __import__(result)
    > File "/usr/lib64/python2.6/dbhash.py", line 8, in <module>
    > import bsddb
    > ImportError: No module named bsddb


    I know that the new bsddb3 should be used, so what can I do?
    TIA,

    D
    DPalao, Feb 16, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rene Pijlman
    Replies:
    22
    Views:
    698
    Fredrik Lundh
    Dec 10, 2003
  2. Glenn R Williams
    Replies:
    0
    Views:
    418
    Glenn R Williams
    Aug 14, 2004
  3. Neville C. Dempsey
    Replies:
    0
    Views:
    353
    Neville C. Dempsey
    Jun 12, 2005
  4. Skip Montanaro
    Replies:
    1
    Views:
    381
    Bengt Richter
    Jun 26, 2005
  5. Gabriel Rossetti
    Replies:
    0
    Views:
    699
    Gabriel Rossetti
    Oct 14, 2009
Loading...

Share This Page