On 3/8/19 11:26 PM, Saswat Mishra wrote:
> Warning: This message has had one or more attachments removed
> Warning: (dpkg).
> Warning: Please read the "GPC-Attachment-Warning.txt" attachment(s) for more 
> information.
> 
> Hello all ,
> 
> Currently I have started getting an error :
> 
> File "/usr/lib/mailman/bin/update", line 50, in <module>
>     from Mailman import Utils
>   File "/var/lib/mailman/Mailman/Utils.py", line 407
>     return UserFriendly_MakeRandomPassword(length)
>     ^
> IndentationError: unexpected indent
> dpkg: error processing package mailman (--configure):
>  installed mailman package post-installation script subprocess returned
> error exit status 1
> Errors were encountered while processing:
>  mailman
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> 
> I don't know where I have messed up and  have been trying to get over this
> issue since yesterday.  So, please help. I am attaching both the files
> belolw.


You are installing Mailman 2.1 from a package. The package is broken.
You will need to contact the packager about that. See
<https://wiki.list.org/x/12812344>.

The actual error is in this code in Utils.py

def MakeRandomPassword(length=mm_cfg.MEMBER_PASSWORD_LENGTH):
    if mm_cfg.USER_FRIENDLY_PASSWORDS:10
        return UserFriendly_MakeRandomPassword(length)
    return Secure_MakeRandomPassword(length)

The line

    if mm_cfg.USER_FRIENDLY_PASSWORDS:10

should not have anything following the ':'.

However, none of this is relevant. Based on your prior posts to this
list, you are interested in GSOC and Mailman 3 and HyperKitty. The
package you are trying to install is for an older Mailman. Start at
<http://docs.list.org/en/latest/devsetup.html> to see how you should be
setting up your Mailman development environment.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
_______________________________________________
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9

Reply via email to