Hello,
I have installed mailman and Python 1.5.1 per instructions. When
trying to access the subscribe program I get the following:
We're sorry, we hit a bug!
If you would like to help us identify the problem, please email a copy of this page to the webmaster for this site with a description of what happened. Thanks!
Traceback:
Traceback (innermost last): File "/u1/mailman/scripts/driver", line 97, in run_main main() File "../Mailman/Cgi/subscribe.py", line 30, in main path = os.environ['PATH_INFO'] File "/usr/local/lib/python1.5/UserDict.py", line 12, in __getitem__ def __getitem__(self, key): return self.data[key] KeyError: PATH_INFO
Environment variables:
Variable Value HTTP_CONNECTION Keep-Alive HTTP_ACCEPT_ENCODING gzip REMOTE_HOST valkyrie.marymount.edu GATEWAY_INTERFACE CGI/1.1 PATH /usr/sbin:/usr/bin SERVER_PROTOCOL HTTP/1.0 SERVER_PORT 80 HTTP_HOST phoenix.marymount.edu REQUEST_METHOD GET SCRIPT_NAME /mailman/subscribe SERVER_URL http://phoenix.marymount.edu SERVER_SOFTWARE Netscape-Enterprise/3.5.1G HTTP_ACCEPT_LANGUAGE en HTTPS OFF PYTHONPATH /u1/mailman REMOTE_ADDR 199.111.97.97 HTTP_COOKIE MajorCool_ListSorted=1; MajorCool_InfoWrap=1; MajorCool_Conf2Column=1; MajorCool_GenJavaScript=1; MajorCool_GenMenuMode=1; MajorCool_BrowseOwnerless=0; MajorCool_GenMenuStart=(no pref); MajorCool_GenFontIncr=+3; MajorCool_GenFontFace=Helvetica; MajorCool_GenSubmitImages=1; MajorCool_GenCache=1; MajorCool_ConfHelp=1; MajorCool_GenScreenWidth=550; MajorCool_ListMaxSize=25000; MajorCool_ConfAll=1 SERVER_NAME phoenix.marymount.edu TZ US/Eastern HTTP_USER_AGENT Mozilla/4.5 [en] (Win98; U) HTTP_ACCEPT_CHARSET iso-8859-1,*,utf-8 HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
--
Alvin Gunkel Systems Administrator Voice (703) 284-5950 Marymount University 2807 N. Glebe Rd. Internet gunkel@marymount.edu Arlington, VA 22207-4229
On Wed, 28 Oct 1998, Alvin Gunkel wrote:
I have installed mailman and Python 1.5.1 per instructions. When trying to access the subscribe program I get the following:
We're sorry, we hit a bug! [...] Traceback (innermost last): File "/u1/mailman/scripts/driver", line 97, in run_main main() File "../Mailman/Cgi/subscribe.py", line 30, in main path = os.environ['PATH_INFO'] File "/usr/local/lib/python1.5/UserDict.py", line 12, in __getitem__ def __getitem__(self, key): return self.data[key] KeyError: PATH_INFO
Environment variables: [...]
The environment variables listed, in fact, lack a PATH_INFO variable, which mailman depends upon. (What HTTP server are you using?) There is what may be an alternative:
SCRIPT_NAME /mailman/subscribe
which we could use as an alternative in our scripts for PATH_INFO, if it really is a substitute. Funny thing is, the variable either does not serve as i expect, or the value indicates that you entered an incorrect path, somewhere.
My question for you is, how you are trying to get at the subscribe script? It is not supposed to be visited directly - you should be coming to it from a listinfo page for the list to which you're trying to subscribe. E.g., when subscribing to mailman-users@python.org, one visits:
http://www.python.org/mailman/listinfo/mailman-users
and enters the subscription info, then they hit the 'Subscribe' button. A that point the 'subscribe' script is visited - and then PATH_INFO should be set. If not, we'll look for a fallback setting - but i expect i would have heard of this problem before if the PATH_INFO is at all commonly left out...
(In any case we may want to fix mailman so the script handle the situation better, directing the user to the right place instead of faulting.)
Ken Manheimer klm@python.org 703 620-8990 x268 (orporation for National Research |nitiatives
# If you appreciate Python, consider joining the PSA! #
# <http://www.python.org/psa/>. #
participants (2)
-
Alvin Gunkel -
Ken Manheimer