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

David Fraser davidf at sjsoft.com
Mon Aug 16 23:42:40 EDT 2004


Ryan Felder wrote:

>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.
>  
>
Surely you want a later mod_python version?
mod_python.Cookie is only available from 3.1.x I think, as as Session
Maybe you are using a more up-to-date version on Solaris

Regards
David


More information about the Mod_python mailing list