[Mailman-Users] ImportError: No module named Mailman
Barry A. Warsaw
barry at zope.com
Fri Jan 11 17:52:52 CET 2002
>>>>> "DM" == Dan Mick <dmick at utopia.West.Sun.COM> writes:
DM> Hmm. It looks as though the
DM> from Mailman import <module>
DM> won't work as expected (i.e. "use the module search path to
DM> look for a path named Mailman and look for <module> in there")
DM> unless Mailman contains __init__.py. Does it? (It can be
DM> empty, but it must exist).
DM> (The "import" documentation is shady at best.)
That usually happens if the install was broken or you're trying to run
Mailman out of the unpack directory instead of the install directory.
Mailman has to "path-hack" to get all the right stuff onto sys.path,
which is why "make install" creates a paths.py file and Mailman always
imports that before any other Mailman specific modules. (Note that
"import paths" doesn't have to be in every file.)
-Barry
More information about the Mailman-Users
mailing list