On Fri, Oct 1, 2021 at 10:03 PM Mark Sapiro <m...@msapiro.net> wrote:

> On 10/1/21 11:38 AM, Odhiambo Washington wrote:
> > When I try to access the web UI, I get this strange error:
> >
> > [Fri Oct 01 21:39:52.732148 2021] [cgi:error] [pid 7164] [client
> > 197.232.81.246:1025] AH01215:   File
> "/usr/local/mailman2/scripts/driver",
> > line 112: /usr/local/mailman2/cgi-bin/admin
> > [Fri Oct 01 21:39:52.732207 2021] [cgi:error] [pid 7164] [client
> > 197.232.81.246:1025] AH01215:     print 'Status: 405 Method not
> allowed':
> > /usr/local/mailman2/cgi-bin/admin
> > [Fri Oct 01 21:39:52.732217 2021] [cgi:error] [pid 7164] [client
> > 197.232.81.246:1025] AH01215:           ^:
> /usr/local/mailman2/cgi-bin/admin
> > [Fri Oct 01 21:39:52.732269 2021] [cgi:error] [pid 7164] [client
> > 197.232.81.246:1025] AH01215: SyntaxError: Missing parentheses in call
> to
> > 'print'. Did you mean print('Status: 405 Method not allowed')?:
> > /usr/local/mailman2/cgi-bin/admin
> > [Fri Oct 01 21:39:52.733570 2021] [cgi:error] [pid 7164] [client
> > 197.232.81.246:1025] End of script output before headers: admin
> >
> > I am a bit perplexed.
>
>
> The driver script is being invoked with python3 rather than python2.
>
> What does the command `python` invoke?
>
> What options did you give to configure?
>


Spot on!

./configure --with-python= /usr/local/bin/python2.7
--prefix=/usr/local/mailman2 --with-cgi-gid=80 --with-mail-gid=26

And I did not notice that there was a space between --with-python= and the
path to the interpreter, which technically rendered my
argument null and void :-)

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' :-)
------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
    https://mail.python.org/archives/list/mailman-users@python.org/

Reply via email to