[Mailman-Developers] Listing Lists Faster in 2.0?

Dan Mick dan.mick@West.Sun.COM
Mon, 03 Apr 2000 14:10:00 -0700


Dan Mick wrote:
> 
> Roberto Ullfig wrote:
> 
> > ImportError: No module named Mailman.mm_cfg
> > Content-type: text/html
> >
> > <head><title>Bug in Mailman version
> > &lt;undetermined&gt;</title></head>
> > <body><h2>Bug in Mailman version &lt;undetermined&gt;</h2>
> > <p><h3>We're sorry, we hit a bug!</h3>
> >
> > Looks like a I'm missing something fundamental here.
> 
> Python's library-search path has to be set to include /home/mailman/Mailman.
> I just discovered that bin/withlist doesn't do this recently; I'm guessing
> the driver script doesn't do it either.  For your purposes, I would
> think that augmenting PYTHONPATH in the environment should suffice.
> 
> Adding "PYTHONPATH=$PYTHONPATH:/home/mailman/Mailman" makes it work for
> me.  BTW, the chroot seems unnecessary (maybe you knew that, and were
> just trying for security or something).

BTW, "python -i /home/mailman/Mailman/Cgi/listinfo.py" gives the same
output, although again it needs the PYTHONPATH setting.