[mod_python] Mod_python, Windows, and Cookies : cannot import name Cookie

Ryan Felder rfelder at globaltecsolutions.com
Mon Aug 16 15:11:32 EDT 2004

I am trying to bring a small web application I developed on
a solaris machine over to a mod_python 3.0.4 equipped apache
2.0 windows server 2003 machine. The code runs fine on Solaris,
however, when I try to run it on the Windows machine, I receive
an error. Trying from an interpreter, I get this error, which is
the same as the error in apache's error log.

IDLE 1.0.2      
>>> from mod_python import Cookie

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in -toplevel-
    from mod_python import Cookie
ImportError: cannot import name Cookie

Is the implimentation of cookies different on win32? 
Is it supported? I get similar errors with Session.
I can successfully import mod_python itself. The machine
is very clean, having been setup to run another mod_python
application, which does execute with no suprises.

- Ryan Felder

More information about the Mod_python mailing list