[Mailman-Users] Dumb Me Tried to Update Mandriva (Again)

Mark Sapiro mark at msapiro.net
Wed May 2 15:48:41 CEST 2012


Dennis Putnam wrote:
>
>Of course I did not expect this to be easy. After restoring the Mailman
>directory as suggested, mailman will not start:
>
>Traceback (most recent call last):
>  File "/usr/sbin/mailmanctl", line 106, in <module>
>    from Mailman import mm_cfg
>ImportError: Bad magic number in /usr/lib/mailman/Mailman/mm_cfg.pyc


It appears your system Python is now different from the one that
compiled all the .pyc files. Just do


  rm -r /path/to/Mailman/*.pyc

This will remove all the compiled Python modules and they will be
recompiled as needed.

-- 
Mark Sapiro <mark at msapiro.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