[Mailman-Users] Error in crontab

Mark Sapiro msapiro at value.net
Tue Oct 17 00:55:01 CEST 2006


Lennart Svensson wrote:

>I got the following error (or warning):
>
>/var/lib/mailman/Mailman/Handlers/Scrubber.py:175: DeprecationWarning: get_type() deprecated; use get_content_type()
>  ctype = part.get_type(part.get_default_type())
>
>
>Using Mailman from Ubuntu distrubityion
>
>Mailman version 2.1.5
>Python 2.4.3 (#2, Oct  6 2006, 07:52:30)


A normal Mailman 2.1.5 installation incudes a pythonlib/ directory
which in turn contains the email 2.5.5 Python email package. The cron/
and bin/ directories contain a paths.py module which is imported by
the various scripts in those directories and which sets sys.path so
that the email package used is the one in pythonlib/.

The above warning indicates that something is missing from the above
scenario and you are getting the email 3.0.1 package from the Python
2.4.3 installation.

-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list