problems with Python cgi web counter and (g)dbm
Fredrik Lundh
fredrik at pythonware.com
Sat May 15 12:00:27 EDT 1999
Stefan Harms <harmsPOST at mbnet.mb.ca> wrote:
> I have adapted the Python counter cgi script of Sabine Appelmans,
> http://www.ping.be/sabine-appelmans/home/python/index.html
>
> However when I try to make the database online, I get the following errors:
>
> Python 1.5 (#1, Nov 12 1998, 10:26:41) [GCC 2.8.1] on sunos5
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import dbm
> Traceback (innermost last):
> File "<stdin>", line 1, in ?
> ImportError: No module named dbm
> >>> import gdbm
> Traceback (innermost last):
> File "<stdin>", line 1, in ?
> ImportError: No module named gdbm
just guessing here, but before you give up, you could
try changing the "import dbm" to:
import anydbm
dbm = anydbm
http://www.python.org/doc/current/lib/module-anydbm.html
another alternative is to build your Python with dbm
support, of course. see the Modules/Setup file for
details.
</F>
More information about the Python-list
mailing list