Help! IIS and Python

Sunit Joshi sjoshi at ingr.com
Wed Feb 13 21:45:32 CET 2002


Hello
I'm trying to use IIS5.0 with Python 2.1 and whenever I try to import
modules I get an error. The test.asp and error are below.
thanks
Sunit
sjoshi at ingr.com

<%@ Language=Python %>
<%
import string
server = Request.ServerVariables("SERVER_NAME")
server = string.upper(server)
clientIP = Request.ServerVariables("REMOTE_ADDR")
%>
<HTML><HEAD><TITLE>Python Test Page</TITLE></HEAD>
<BODY>
<p>
<h3><font color="#990033">You are coming from <b><font
color="#669900"><%=clientIP%></font></b>
to <%=server%></font></h3>

<hr>
PythonAspTest
</BODY>
</HTML>
Error Type:
Python ActiveX Scripting Engine (0x80020009)
Traceback (innermost last): File "<Script Block >", line 3, in ?
server = string.upper(server) File "C:\Python21\lib\string.py", line
60, in upper return s.upper() File
"C:\Python21\win32com\client\dynamic.py", line 438, in __getattr__
raise AttributeError, "%s.%s" % (self._username_, attr)
AttributeError: <unknown>.upper



More information about the Python-list mailing list