[Mailman-Developers] New to mailman

Barry Warsaw barry at list.org
Fri Dec 21 13:41:58 CET 2012


On Dec 21, 2012, at 02:49 PM, Sandesh Agrawal wrote:

>from mailman.commands.tests.test_control import make_config
>
>i got the following error:
>
>-------------------------------------------------------------------------------------------
>Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "mailman/__init__.py", line 50, in <module>
>    from mailman.core.i18n import initialize
>  File "mailman/core/i18n.py", line 31, in <module>
>    from flufl.i18n import PackageStrategy, registry
>ImportError: No module named flufl.i18n
>
>-----------------------------------------------------------------------------------------------------
> flufl.i18n is present in "eggs" directory which is above the mailman
>directory in hierarchy , so just mentioning "from flufl.i18n" can not
>detect the required python module.
>
>How can this problem be fixed ?

Did you type this into the interpreter prompt?  If so, how did you start
Python?  Where exactly did you "run this"?

Note that the standard Python interpreter doesn't have its sys.path set up to
import from the eggs directory.  Use bin/py for that.

(If you're wondering what the difference is between `bin/py` and `bin/mailman
shell`, it's that the latter does all the Mailman initializations necessary to
operate Mailman.  E.g. it inits the log system, the ZCA, etc.)

Cheers,
-Barry



More information about the Mailman-Developers mailing list