error at "import anydbm"

"Cédric V." enleverca-bknews at
Tue Jan 13 18:41:36 CET 2004


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 ="test", "rwc")
 >    db["test"] = "ok"

returns at execution:

 >cedric at dev _test $ python
 >Traceback (most recent call last):
 >  File "", line 2, in ?
 >    import anydbm
 >  File "/usr/lib/python2.3/", 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