error at "import anydbm"

"Cédric V." enleverca-bknews at ifrance.com
Tue Jan 13 12:41:36 EST 2004


Hi,

I am unable to import anydbm without error under Python2.2 or 2.3 (Linux).

this script:
 >#!/usr/bin/env python
 >import anydbm
 >
 >if __name__ == "__main__":
 >    db = anydbm.open("test", "rwc")
 >    db["test"] = "ok"


returns at execution:

 >cedric at dev _test $ python dbm.py
 >Traceback (most recent call last):
 >  File "dbm.py", line 2, in ?
 >    import anydbm
 >  File "/usr/lib/python2.3/anydbm.py", line 59, in ?
 >    _errors.append(_mod.error)
 >AttributeError: 'module' object has no attribute 'error'


(the same with python2.2)


do I have forgotten something? or is it another problem?

thanks in advance,

-- CV




More information about the Python-list mailing list